The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Anyone have any ideas on how I can automatically redirect someone into their CP upon registration after their email is activated? I have a community where you have to be in particular secondary groups to get the full benefit and want them to be redirected to this first thing.
|
|
#2
|
||||
|
||||
|
I did it on my forum for a while, but it required a code edit.
In register.php, find Code:
eval(standard_error(fetch_error('registration_complete', $userinfo['username'], $vbulletin->session->vars['sessionurl'], $vbulletin->options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php'), '', false));
Comment it out and replace it with something along these lines.: Code:
// Send the User to their usercp
$vbulletin->url = "usercp.php". $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect('registration_complete'));
|
|
#3
|
||||
|
||||
|
Can also be implemented as a Pugin.
Hook: register_activate_process PHP Code:
|
|
#4
|
||||
|
||||
|
And how do you make it the last one run on the hook? That's why I didn't do mine as a plugin
|
|
#5
|
||||
|
||||
|
Thanks.. without an order number for processing hooks, wondering the same issue.
|
|
#6
|
||||
|
||||
|
Well, i've got a neat Form "Set Execution Order" to ensure that
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
||||
|
||||
|
That's part of APM
|
|
#9
|
||||
|
||||
|
Ok, you got me. What is APM?
|
|
#10
|
|||
|
|||
|
Is it possible to do the same thing right after user registers (not activates)?
if i change hook location to register_addmember_process it does redirect but the user is not logged in so instead of usercp it shows error login page... buuump |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|