This component allows users to decide to see posts from all or friends only by showing two options below the new post block in News Feed.
If you want to help me to make more components, click on the button down bellow and buy me a coffee. It's up to you how much coffee I'll drink :-)
If any other component uses the ossngethomepagewallaccess() function it is necessary to change it to hpagepostsgethomepagewall_access() for everything to work correctly. As far as I know, this function is used in the following components:
Thanks to Hugo for testing and reporting
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Sorry for the bump or third comment, but i think is important.
Version 1.0 : is compatible with Popular Posts (commenting the line from OssnWall).
Version 1.1 : for some reason Popular Posts doesnt work with this version. (without commenting the line from OssnWall)
it seems if the site cache are enabled, the color stays in the old selection. The only way to verify what option is selected, is cleaning the cache in administration dashboard, so for now the workaround is to put an empty ' ' space in the 'text-danger' to avoid confusion.
Hi, very nice component, i tested in a virtual machine with Popular post component and seems fine, but i not tested in my production environment, so i will do a backup first to test with real users.
Custom color tip: you can change the red color selection in the js\homepageposts.php "text-danger" with another bootstrap color, like "text-primary" for example to get blue color selector.
I have sent you a pull request which will allow you to run your component without replacing or commenting out any line https://github.com/rafaelmamorim/OSSN-HomePagePosts/pull/1
Working version https://github.com/lianglee/HomePagePosts