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.
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- R@robtotoreb
R - 0 likes
- 13net@_13net
13net - 0 likes
You must log in to post replies.http://community.elgg.org/pg/forum/topic/840665/plugin-to-change-default-landing-page/#annotation-4063762
Used this code to build a plugin and it worked perfect
elgg_register_event_handler('login', 'user', 'my_login_redirect');
function my_login_redirect($event, $type, $user) {
$url = elgg_get_site_url()."activity/".$user->username;
forward($url);
}
@rob: i think it'd be a good idea if you set the priority of your event handler so that it's the last one it the list and gets invoked at the end - this has to be done in order for other event handler (which also "subscribe" to the login event ) to be executed.
Have a nice day.