Thanks, i made the suggested changes and now is working.
As advice for anyone, Popular Posts is needed to be reinstalled and clic the Initialize button in the components page after to add the new line in the code, if anyone is currently running that.
So both component can works flawslessly.
Because popular posts overrides siteactivity.php file also what you can do is to add
$accesstype = hpage_posts_get_homepage_wall_access();
into popular posts site activity file
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