This component allows users to decide to see posts from all or friends only by showing two options below the new post block in NewsFeed.
Known issue
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:
Changes
Screenshot
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.
The problem now is that red is always the friends caption
That's what I wrote below: It's a caching issue. ;)
And I'm sure Rafael will fix it with the next release.
There was a user error. The ingredient works nicely. The problem now is that red is always the friends caption. Nice work, congratulations!