@iionly told me how to remove tabs and @tunist gave few suggestions on what I want to achieve. I want to combine "mine" and "following" tabs into 1 tab. I am not using friends functionality. I have installed followers plugin. I am using elgg 1.11.2. A rookie (non-developer) like me will say ok why not paste the code from the file responsible for "following" tab to "mine" tab. I do not know. Looking for help from the community. @tunist gave following suggestions.
if i were going to code a solution for this i would:
- find the part in the elgg code that draws the activity page
- identify the parts of the code that add the various tabs into that page
- create a view/page that produces the river list with the required data (mine + followed)
- find a way to remove the other tabs that are not wanted
- add the new river view/tab to the activity page
i imagine this might be done most effectively using plugin hooks, but i don't have a lot of experience with these so that's why my suggestion is to ask in the community ;)
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.
Ordering achieved finally with:
This function (you must add it in your plugin lib path)
This code in river.php
BUT I´ve an issue, activity pagination doesn´t work, I tryed changing some of these parameters but without results
Any idea about the reason??
no idea. Sorry for replying late.
This is my last code, but pagination still doesn´t work (all activity items are displayed at the same time) Please help!
Finally I think I´ve achieved it!!!
- Previous
- 1
- 2
- Next
You must log in to post replies.