My english is not very good, so i hope you understand my question.
I use Elgg 1.11.2.
Thank you.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- gfontaniere@gfontaniere

gfontaniere - 0 likes
- iionly@iionly

iionly - 0 likes
- Umair Ali@ugintl

Umair Ali - 0 likes
- gfontaniere@gfontaniere

gfontaniere - 0 likes
- iionly@iionly

iionly - 0 likes
- gfontaniere@gfontaniere

gfontaniere - 0 likes
- gfontaniere@gfontaniere

gfontaniere - 0 likes
You must log in to post replies.Any idea ? It would be nice to hide non-friends contents...
Thank you.
This can be done by using the 'creating', 'river' plugin hook. Register a function for this hook in the init function of a plugin (e.g. add the code to start.php of your theme or create a new plugin that only needs to consist of manifest.xml and start.php):
and add the callback function also in start.php outside of the init function:
How to disable likes update?
I tried your code. I created a plugin "Hide some river entries", but now every posts are hidden : avatar update, friending, message, ...
Please, help !!!
Thank you.
@gfontaniere Sorry. Two (!) bugs in the code. The following should work (tested this time):
@Umair Ali: I'm not aware that the bundled Likes plugin adds any river entries by default, so I can't say what would have to be added to suppress river entries on likes. I guess you are using a 3rd party plugin that adds these kind of entries in the river for likes. You would have to find out which plugin it is and then find the 'view' and 'action' used in the corresponding elgg_create_river() function call within this plugin. If you know these two parameters, you can add another if-clause in the above code to suppress the corresponding river entries.
Thank you very much. It works perfectly.
Great job !!!
I post the plugin on github :
https://github.com/gfontaniere/elgg_hide_river_entries
Thank you again.