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.
Well, it looks like you've tweaked your CSS some way. At least I don't know any theme which comes with a green background of that element. So please provide more information. See
https://www.opensource-socialnetwork.org/wiki/view/1101/how-to-report-a-bug-error-issue
Why do I have this problem and the green bar is higher and the sections are not next to each other but in below? Where should I correct their sizes?
Rafael: You're right. that's for sure. I'm not a programmer, I don't know how to eat a condition.
@Tamás
It's possible add a default language using custom profile fields component. After that, it's possible to add one more condition to get posts from users with same default language.
Idea. OSSN monitors what language a user speaks in their profile. Those who speak English will only show the feed in English, if the account setup speaks Hungarian, only Hungarian users will see it. Good for a start.
@Tamas it will be huge work. Besides that you don't know which langauge the post is created.
I want users to come in more than one language. Is it possible to automatically show only entries for people whose language is the same as my language? It's good for friends in all languages to see your post. All user posts will only be available in the language I set. Can it be solved?
Works great, thank you for your work!
Rafael,
wouldn't it make sense to change the init to
if(ossn_isLoggedin() && !ossn_loggedin_user()->canModerate()) {
? I mean, if I'm logged in as admin and clicking these links doesn't make a difference - why should I see them at all? :)
Thanks for the update Rafael, tested and working fine, if i find any problem i will comment that asap.