Home Page Posts Download 1.3

Breton Rafael Amorim 6 months ago

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:

  • HashTag
  • PopularPosts
    Thanks to Hugo for testing and reporting


  • Version 1.3

    • Fix Avoid caching the JS files. Thanks to Arsalan Shah to solve the issue and Tamás Varga for finding the glitch.
    • Added all OSSN supported languages. Except for EN, PT, and ES files, all others need to be translated



Hungarian Tamás Varga Replied 2 months ago

Rafael: You're right. that's for sure. I'm not a programmer, I don't know how to eat a condition.

Breton Rafael Amorim Replied 2 months ago


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.

Hungarian Tamás Varga Replied 2 months ago

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.

Indonesian Arsalan Shah Replied 2 months ago

@Tamas it will be huge work. Besides that you don't know which langauge the post is created.

Hungarian Tamás Varga Replied 2 months ago

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?

Hungarian Tamás Varga Replied 3 months ago

Works great, thank you for your work!

German Michael Zülsdorff Replied 3 months ago

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? :)

cl Hugo Cuellar Replied 4 months ago

Thanks for the update Rafael, tested and working fine, if i find any problem i will comment that asap.

German Michael Zülsdorff Replied 4 months ago

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.

Hungarian Tamás Varga Replied 4 months ago

There was a user error. The ingredient works nicely. The problem now is that red is always the friends caption. Nice work, congratulations!


Developer: Rafael
License ossnv4
Type: Uncategorized
Requires Ossn Version : 6.0
Latest Version: 1.3
Last Updated 4 months ago
Repository Url View Repository