Updated for Elgg 1.8
View Jeroen Dalsem'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.
Nice update. keep up the good work.
Really a nice plugin.. I was just expecting this plugin... Thank you so much Jeroen :)
Strange enough on my elgg 1.8.4 even without this plugin, you end up on the homepage. Either I did something wrong or the default behaviour changed in 1.8.
In any case, this is potentially a very useful plug-in. Especially the option to redirect users to a custom page can have very useful implementations as well as to be able the differenciate between the first login and general logins.
Goede Werk!
regards.
@Burada where you end up after login depends on plugins like custom_index, your theme, a dashboard plugin, maybe widget manager (with a custom index configured). This plugins allows you to override default behaviour.
the basic redirect is working in 1.8.8 elgg here.. the plugin redirects me to the profile page when i configure it to.
when i first setup a general custom redirect, the address bar points to site.com/custom_redirect/
and then i see a page not found message.
i then reset all the settings and moved the plugin to the top of the plugin list and now i can login with the custom setting set (no page not found message is displayed), however, i always go to the index page on login (Which is not what i chose via the custom redirect plugin)..
i looked in widget manager and am not seeing any settings that i can change that make a difference and i have the plugin 'homepage_cms' running as my index page, so not the widget manager homepage.
i also moved login_redirector to the top of the list of plugins, still no change.
any idea why this might be occurring? thanks
Do you allow users to have their own redirect? Those redirects go before the sites configuration.
nice update. but how to use costom redirect.
@Jeroen - i just came back to this plugin..
i have the per user redirects disabled.. still the same behaviour..
redirects to profile pages work. custom does not.
i got this to work by hacking the start.php file to hardcode the custom link to point where i need it to (which is, on my site, the activity stream that i have renamed using pagehandler hijack).
@ura soul & @Jeroen:
I think I have found the reason why custom redirects are not working. In start.php line 128 seems to be the error. Instead of
this line must be
I guess a little copy+paste issue (for the first login this line is correct but not for the redirect on all following logins).
P.S.: it seems this bug is already fixed on github. Maybe it would be good to have the fixed version available here, too.
ah thanks, yes, that's the cause.. i missed that. :)
Thankyou iionly, I was able to change that line of code and get the custom redirect to work...
Perfect, tried the above edit and it works a treat.
another issue is that i am using pagehandler hijack and have changed the name of the activity page.
the name change is reflected in the options available in the dropdown for the redirect destination, however it is surrounded by slashes and most relevantly, does not function. when i set the option to redirect to that page, i see a 'page not found' message and am at the /custom-redirect page.
i can manually enter the path in to the admin settings, but then it appears twice in the list; one that works and one that doesn't.
If I get an email notification from a event (eg. new page, calendar) with a direct URL to the object. It seems the loginredirector overrides the URL and takes me at the landing page set in the plugin (in my case the user dashboard) and not the forwarding URL.
Is this the design? Any thoughts on how to change ?
Thanks in advance
B
how to Change Landing Page before login??
@kevin you can control the index page with http://docs.elgg.org/wiki/Tutorials/Indexpage
interesting plugi sounds confusing to a newbie like me lol, so i can set it so when users login they go to a specific url i want? when logged out visitors go to my site it goes to the activity page, how can i change what page it goes to would be nice if i could set a welcome page! ^_^ i am sure you can do this as i said i am a newbie so be basic if you reply to me : )
plugin i ment, ah wish i could edit posts save me from posting twice lol
how to redirect to edit profile, instead of profile page?
@SekolahBola use: [wwwroot]profile/[username]/edit
@gerard kanters, thanks. If I logged in with Facebook or Twitter, for the first time, will this redirect to edit profile as well?
@SekolahBola, no it will not work for Facebook or Twitter. Which plugin are you using for that ? If you use my plugin, I can tell you how to do that. But take that discussion over to http://community.elgg.org/plugins/1440827/1.13/social-login
at one point i thought i saw that logins did not change the page at all - so that if i login when viewing a blog or video, i stay on that blog/video after logging in.. that is how i would like my site to be. now though i notice that i don't know how to achieve that without writing code. does anyone know of a simple way?