I would like to modify a default Elgg behavior, but I do not know how to do it.
I want the main screen of my social network (the River or Activity) to be more complex. Something similar to what Facebook offers. For this I must understand better how the view 'River' works and that functions or checks are being done to display the contents. Could someone tell me where to find this information?
An example could be would not show all public content, just some. Since if many users create public content, they could quickly go to the bottom.
Thanks all
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.
- Stuart Naylor@stuartiannaylor
Stuart Naylor - 0 likes
- Jose Alemany Bordera@jalemany1
Jose Alemany Bordera - 0 likes
- Jose Alemany Bordera@jalemany1
Jose Alemany Bordera - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Jose Alemany Bordera@jalemany1
Jose Alemany Bordera - 0 likes
- Tommy@letom
Tommy - 0 likes
- Steve Clay@steve_clay
Steve Clay - 0 likes
You must log in to post replies.You need to have a look at the hypewall mods, really good and somewhere near what you want.
Yeah, I know this mods.
But my intention is more focused on controlling the privacy or visibility of the contents of the River. For example, do not show all the publications of the 'River' that are public, as much as friends of friends. Or change the privacy of the comments so that it is linked to the privacy of the publication containing them and not to friends as it is now by default, etc.
Please! Nobody can help me?
You won't have much luck with modifying river queries via existing API. You would have to clone elgg_get_river() and implement your custom "wanna-do-everything-like-facebook-does" logic there.
Ok. I did it. Now, how I replace the elgg_get_river() function by my_elgg_get_river() function? I want that it always is called my function when the old is requested, Is it possible? How?
Main elgg river functions exist in engine/lib/river.php, again what are the modules you are trying to add ?
Override the views the function is used in. "resources/index", "resources/river", and "resources/groups/activity" come to mind.