How can I make the custom index only for logged out users but once logged in, they are directed to the activity page? In other words activity page becomes their default index page as it is when you do not have custom index activated.
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.
- iionly@iionly
iionly - 0 likes
- v06@new_hero
v06 - 0 likes
- Valentine Masina@ValentineMasina
Valentine Masina - 0 likes
- v06@new_hero
v06 - 0 likes
You must log in to post replies.Use the LoginRedirector plugin (http://community.elgg.org/plugins/384766/3.0/loginredirector) to redirect users to the activity page after login. Then you don't have to disable or modify the custom_index plugin and users land on the activity page by default but still can access the index page if they want to afterwards even when logged in.
if (elgg_is_logged_in())
{
forward('activity');
}
?>
add this code your custom_index.php
Thanks iionly. I see that plugin works fine for me only on social login it has its limitations.
@v06 I am getting a fatal error on that. Maybe I am on the wrong thing b ut i went to index.php of the custom index plugin. I would be very interested to hear you say on that. Thank man
<?php
if (elgg_is_logged_in())
{
forward('activity');
}
?>
add this code to
theme/views/layout/custom_index.php