I would like to add extra tab in riverdasboard to display logged in user's groups activity.
Anyone knows or has code for this?
Thanks.
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.
sure, there you go:
http://community.elgg.org/pg/plugins/project/698971/developer/tunist/auto-riverdash-with-group-selector-dropdown
to clarify, i was refering to the limit that is set in this code:
elgg_get_entities_from_relationship(array('relationship'=> 'member', 'relationship_guid'=> $owner->getGUID(), 'inverse_relationship'=> FALSE, 'type'=> 'group', 'limit'=> 1));
maybe the mods i have uploaded will do what you need.. at least you will be able to read the code.
Yes I removed that limit and changed to 99 but the code below that is displaying only activity from one group.
I will test your code. Thanks a milion.
Tunist,
It looks great, thanks. But It still displays all site's groups in filter dropdown tho (nav.php). How can I alter code to display just page owner's groups? thus only his/hers groups and activity.
Thank you.
Is the " owner_guid' => 0 " in nav.php maybe?
What should owner_guid' => be for page owner?
Thanks.
you will need to locate the SQL query building code in /mod/autodash/index.php
and then alter the 'WHERE' clause to include a clause that refines the query such that it returns only those river entries which are relevant to the current page_owner.
i don't have the DB structure in front of me.. i imagine though, that the clause will be something like:
'AND river.owner_guid = page_owner_entity()->guid'
- Previous
- 1
- 2
- Next
You must log in to post replies.