This plugin requires the First Time Events plugin to also be installed: http://community.elgg.org/pg/plugins/ejucovy/read/231490/first-time-events
First Login Redirector allows site administrators to configure a custom URL which new users will be sent to after they first log into your Elgg system. Configure this by viewing the plugin's settings in Tool Administration.
First Login Redirector was forked from the LoginRedirector 2.0 plugin by Jeroen Dalsem:
http://community.elgg.org/pg/plugins/jdalsem/read/163302/loginredirector
(I'm not sure what would happen if both were actively installed in the same Elgg environment.)
Please follow & contribute to this plugin's development on GitHub: http://github.com/ccnmtl/elgg-first-login-redirector/tree/master
Originally developed at Columbia University's Center for New Media Teaching & Learning.
View ejucovy's plugins
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.
@EJU
This might help a little..
You can register them using the following function.
Optionally, this can be called with a priority nominally from 0 to 1000,
where functions with lower priority values are called first (note that priorities CANNOT be negative):
register_elgg_event_handler($event, $object_type, $function_name [, $priority = 500]);
Thanks for the tip, I hadn't known about that parameter. That will be quite helpful & I should be able to release a compatible version before the weekend.
I wonder what would be needed for a system that deals with this event-prioritization sanely. Hardcoding a priority value in First Login Redirector (or any other functional plugin) doesn't seem like a viable solution in the long term, because the knowledge that needs to be maintained over time is the relative priorities of potentially conflicting plugins, rather than any given plugin's absolute priority value.
Interestingly, my intuition is that this question is related to my interest in managing plugin dependencies & yours in plugin conflicts -- which I agree are fundamentally related. Hmm .. well, I'll keep sleeping on it. :)
Yes fully tested on one of our live sites.
This is an enormous help and will improve the whole functionally of elgg. I have run this to direct first time login users to a help page on what to do first. Works like a charm I will keep you posted if anything crops up
Thanks It saves us a lot of time on the learning curve.
just activated this, worked a treat, thanks! :)
what a handy plugin, really nice job works like a charm...
There seems to be a problem. If I enable both of the plugins, an user cannot login after registering to the site.
However, if admin creats an user-profile, that works.
Could you please suggest any remedy ...!
Oh, I am on Elgg 1.7.1
I also tried manually, putting this in the start.php. But, no luck
<?php
function redirect_to_invite_friends() {
$_SESSION['last_forward_from'] = "http://elgg.ishouvik.tk/pg/importer";
}
register_elgg_event_handler('firstlogin','user','set_user_redirect');
?>
It seems it is not woking with 1.7.1.
It works.
@dozenhost Could you please tell me how you made it work? I tried for quite some time but couldn't achieve it.
Use uncaptcha and redirect works with that plugin , I am using that on 1.7.4 but I have changed some url part with original path to work properly. May be same thing need to do with this plugin too.
Hi Ghumanz, exactly what have you done to uncaptcha to make it work in 1.7.4 ?
Hi Ghumanz, again. As you think it has relevance for the First Login Redirector
you may post it here. If out of topic, please post it at: http://community.elgg.org/pg/plugins/project/384430/developer/brett.profitt/uncaptcha?annoff=25. You'll really safe the skin of a lot of us - that is in the other post-stream as well.
URLs in ../mod/uncaptcha/start tells me nothing:
Return md5($_SERVER['HTTP_USER_AGENT'] . $_SERVER['REMOTE_ADDR'] . date('Y-m-d'));
If here, please fill the line with a dummy-example. Is it analogue with the problem of First login Redirector?
Thanks for your comment!
hello
I want users to be directed to the profile editing page. I put this linkhttp://poppler.com.ar/beta/elgg-1.7.1/mod/profile/edit.php?username = "but it says theprofile is not specified.
and would have to be?
Thanks
hello
place.com would be the link to redirect users to your profile editing page??
@poppler - have you tested this with a new user logging in for the first time? This is the only way to test, and It should work. Points to note - you cannot test the url by just entering it into your browser and be brought to the profile edit page. Also, you need the brackets for the shortcut to work [username], this is also stipulated in the plugins settings page. Hope this helps.
Can this be made compatible with Facebook Connect users?