Info

Category: uncategorized
Licence: GNU General Public License (GPL) version 3
Updated: 231 days ago
Downloaded: 653

Releases

Latest: 0.1

Previous releases:
None
More projects by ejucovy:

0

Recommendations

Summary:

Configure custom location to send users after their first login only

Full description:

First Login Redirector

(Edit your project's description!)

Release notes:

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.

@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]);

 

DhrupDeScoop 379 days ago

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. :)

ejucovy 379 days ago

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.

Malaga Jack 374 days ago

just activated this, worked a treat, thanks! :)

Nicholas Morss 359 days ago

what a handy plugin, really nice job works like a charm...

Imoutofhere 218 days ago

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 ...!

Shouvik Mukherjee 43 days ago

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');

?>

Shouvik Mukherjee 43 days ago

It seems it is not woking with 1.7.1.

dozenhost 21 days ago