Can anyone make the friends page a two_sidebar page without touching the core codes?
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.
- John@Ermias
John - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- John@Ermias
John - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- John@Ermias
John - 0 likes
- John@Ermias
John - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- John@Ermias
John - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- John@Ermias
John - 0 likes
You must log in to post replies.The code to change the layout from one_sidebar to two_sidebar is found in the core file pages/friends/index.php. No plugin has tackled that. Even river_activity_3C and river_addon haven't made the friends page a two_sidebar page.
Copy the file
In to
Then edit it
I had tried that before. It didn't work. That's why I have put forward a challenge.
Did you overrided friends_page_handler function in your theme?
You need set:
elgg_register_page_handler('friends', 'friends_page_handler');
elgg_register_page_handler('friendsof', 'friends_page_handler');
In start.php
Then override function, e.g.:
I tried that but I got the following error: Fatal error: Cannot redeclare friends_page_handler() (previously declared in C:\xampp\htdocs\sites\elgg-1.8.13\engine\lib\users.php:1070)
I would have deactivated the friends functionality if it were a plugin. Elgg, please make the friends feauture a plugin!
You'll need to override this function with your own theme hook : your_theme_friends_page_handler
I did that, but again, there is no result. If you have time, can you create such a plugin?
Take it: Custom friends (dumbest Elgg *plugin*) - Just two sidebars on Elgg Friends pages, no more ;)
Thank you RvR. My admiration for you.