Hello all,
I searched the foruns and plugins sections, but I didn't found a way to do it. I want to remove (or not to show) the activity page. When a user log in into the site I want just to display a static page with some informations.
Tks in advanced.
Regards, Fabio.
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.
Nobody answered but I figured how to do. One can unregister the page handler for the "activity" page, and remove the "activity" menu item with the code below:
elgg_unregister_page_handler('activity');
elgg_unregister_menu_item('site', 'activity');
elgg_register_page_handler('activity', 'core_twocan_page_handler');
Eventually one can register a new page handler for the "activity" URL, because somewhere in elgg core, still call for the activity page.
That's an excellent solution. I didn't reply because I wasn't sure what the right answer was. Cool!
Thanks for posting your solution
Can you tell me where is this line
elgg_register_page_handler('activity', 'core_twocan_page_handler');
Thanks
a little info about what you might be trying to accomplish would be beneficial to those who will try to help you Jorge.
Thanks, Costakisc. I'm tryng to hide the activity from public and logged-in users. I don't need it. There is not much posts with this topic.
Any comment for that?
do you still want the activity page available for the admins?
It's ok if its available for admins. Thanks.
well having some server issues, so i cant test anything, but i think an easy way would be to unregister the site menu and do a plugin hook for the river and just add an admin_gatekeeper()
- Previous
- 1
- 2
- Next
You must log in to post replies.