View Full Version : User action is lost after registration
satorius99
08-01-2008, 05:46 PM
I’ve noticed that when I click on a New Thread button as an unregistered user, then go through the registration process, it doesn’t take me back to the place I originally clicked on. Is this the default behavior? I need the user to be taken to wherever they wanted to go prior to registering.
nexialys
08-01-2008, 05:52 PM
you can install the Quick Registration addon to make it happen, as it's the only active way to eliminate the long process of registration...
the system is safe if you are not redirected to your former location for some reasons... basically because most of the spam occurs on registration moment... unsafe connection and returning page would lead to more spam if everybody can just register new accounts and go back and spam again...
satorius99
08-01-2008, 06:45 PM
Thanks Nexialys - that's interesting that the behavior is an intentional spam blocking measure. I would think that the human verification tool would be security enough. Is this the add on you're referring to? If so, will this direct users to return to their last requested link upon registering
https://vborg.vbsupport.ru/showthread.php?t=114342&highlight=registration
Thanks again!
nexialys
08-01-2008, 07:24 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=181731" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=181731</a> this one is up to date and i suppose it redirect...
satorius99
08-01-2008, 11:48 PM
Unfortunately the Quick Register mod doesn't redirect the user either after registration. It just drops you to this page:
Thank you, newuser. Your registration is now complete.
You may now proceed to edit your Profile in order to fill in additional personal details about yourself, or you could modify your Options to customize your browsing experience of this site. If you would rather do these things later, you can do so by following the links around the site to your User Control Panel.
Alternatively, you can simply go back to the Forums and start posting in threads.
Any ideas on how to get it so that the user is redirected to where they wanted to go?
satorius99
08-03-2008, 06:10 AM
It appears this is not a straightforward thing to set up with out writing your own custom solution? I guess my plan is to just write a custom registration page which will then auto-login the user and post the thread to the forum. Seems like a lot of work but if there's no other way to do this then I'll start writing code...
Dismounted
08-03-2008, 07:45 AM
You can create a plugin at register_addmember_complete to run your own redirect, etc.
satorius99
08-04-2008, 02:12 PM
Thanks--that's what I was hoping to find out--what the "vb approach" would be to something like this. This will be a good way for me to ramp up with the whole vb coding model. The only thing left to determine will be if the initial user 'action' will be readily available via some variable after registering... I suppose there is a cookie that stores this?
Dismounted
08-05-2008, 12:14 PM
You will need to store the action yourself, vBulletin doesn't keep a history of user actions.
satorius99
08-06-2008, 12:56 PM
I think that's incorrect. When I clilck on 'New Thread' in a given forum as a guest, it takes me to a login page. Then when I login, it directs me to a "Thank you for logging in" page, and finally drops me back off at the "Post Thread" page that I originally requested.
Is this "original action" kept in a cookie or passed through form variables?
Dismounted
08-06-2008, 01:03 PM
My post still stands - vBulletin doesn't keep a history of actions. It does, however, pass the referring URL on in some special cases, like the one you have described. It does this through the use of a hidden form input field, you would have found this by looking at the HTML of the login form.
ddurazo
04-08-2009, 07:40 PM
this is exactly what i need!, any idea what the code required looks like?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.