Is there a way to redirect after login (exp:member:login return…) without the loop to the ee-notification-page?
There is a plugin on devot-ee.com, but it seams not to work with EE 2.x
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
September 23, 2011 6:28am
Subscribe [4]#1 / Sep 23, 2011 6:28am
Is there a way to redirect after login (exp:member:login return…) without the loop to the ee-notification-page?
There is a plugin on devot-ee.com, but it seams not to work with EE 2.x
#2 / Sep 23, 2011 10:16am
Hi Stefan,
I’m going to move this one over to the Community Help forums as it will be a better fit over there.
That said I believe the 3rd party Custom System Messages add-on does what you need here.
Thanks,
Mark
#3 / Sep 23, 2011 10:24am
Hi there. CSM doesn’t have a direct method to handle redirects. It basically just intercepts/hijacks the default message output handler and lets you use a custom template. With that said though, you might be able to pull it off, but I haven’t tried this to be honest: You can define a global template to use for all messages, or a specific template for each message (based on the ACT value), so for a login, which is usually ACT=11, you can define a template for that, and put nothing but a {redirect} tag in the template, which I think would do what you’re looking for.
#4 / Sep 23, 2011 10:31am
thx,litzinger … hmm, so CMS is also globally to every login-form…
… what I need is to skip the notification-page entirely so that after the user click on «login» and sends the login-form he will instantly be directed to the template/page I’ve defined in the redirect-param of the login-form.
The thing is: I’m building Bookmarklets for several services on a plattform I’ve build with EE … I’m using LibrarEE to use «Custom System Messages»-Templates (sorry 😊 ) … but those are globaly — like yours with CSM — so I have way to much infos on this template if I want that for the Bookmarklet, where, in the end, should only be a redirect to the next form/page … and not the whole page with navigation, adds, etc. and the system-message itself.
Short: I don’t need it EVERYWHERE, I just need the direct-redirect on the login-forms on my bookmarklet-templates 😕
#5 / Sep 30, 2011 2:50pm
Check this repo out.
https://github.com/objectivehtml/User-Extension
I don’t have any documentation or examples yet, but this has several helper functions to make member interaction easier within templates. Unfortunately, I don’t even have a complete feature list. This repo has been privately used by me for a while now, and decided to make it public once seeing this thread.
In a nutshell, you can create a Safecracker like Member registration form. (It doesn’t support custom fieldtype, other add-ons do that.). You can also edit user profile (that aren’t your own) in the front end templates. You can even register users without a sequential login (so admin’s can create other non admin accounts and not get logged out in the front end). I will try to get some example out in the wild for people to check out. I always just reference the doc by re-reading my own code (good luck with that!).
This module comes in two parts, the module stuff, and the extension. The extension handles all the redirect stuff. The module handles all the template stuff. I will throw this project up on Devotee when I get chance. For now if you anyone has any questions, post back here or get my on Twitter @objectivehtml.
#6 / Oct 27, 2011 4:23pm
Stephan, it may be too late for you, but I’ve updated the redirect extension (today) to work properly with EE2. If you haven’t already come to another solution, this should do what you need.
http://devot-ee.com/add-ons/login-redirect
If you already had it installed, you should:
a) remove it
b) download the latest version from devot-ee
c) install it, using the (new) instructions in readme.txt
Hope that helps!
#7 / Nov 11, 2011 3:14am
hey corey
sorry, haven’t received a notification-email for your answer.
thank you! that’s great! It works — BUT is it possible to add the ability to redirect to the FULL url from the last visited page?
for example: I have developed a bookmarklet-functionality that uses URL-params to deliver infos to a safecracker-form … now I’m get the following url:
<a href="http://www.domain.com/_bm/entry?url=http://www.domain.com/title=domain.com">http://www.domain.com/_bm/entry?url=http://www.domain.com/;title=domain.com</a> — For youIf I now have to log-in first, your extension does me redirect directly — not via ee-loop — to the last-visited page, which is, in this case, only «http://www.domain.com/_bm/entry» instead of the whole url with all the params (which I need, otherwise its useless for this work 😕 )