The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
anyone know how to edit register.php?
Hi,
I'm trying to figure out how to send the surfer to the page they came from after signing up but can't figure out which line to edit in register.php I have tried a few edits but the user still gets sent to the registration confirmation page. Anyone edited the file before? |
#2
|
|||
|
|||
I did this (got the code from this forum somwhere I think so cant take credit)
find and comment this block Code:
eval(standard_error(fetch_error('registration_complete', $username, $vbulletin->session->vars['sessionurl'], $vbulletin->options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php'), '', false)); Code:
// Send the User to another page on registration $vbulletin->url = "http://yoururl_here". $vbulletin->session->vars['sessionurl']; eval(print_standard_redirect('registration_complete')); |
#3
|
|||
|
|||
Refrain from editing files, they will cause all sorts of things to break if you end up replacing them during an upgrade. Anyway try this out: Redirect after Login
|
#4
|
|||
|
|||
Quote:
--------------- Added [DATE]1204119479[/DATE] at [TIME]1204119479[/TIME] --------------- Quote:
Thanks for your help everyone |
#5
|
|||
|
|||
They are logged in when I redirect them to specific thread ... I looked incase there was other code i had missed but could not see any.
I agree about editing scripts but unfortunetly if you want custom stuff to happen thats what you have to do. the problem comes when you upgrade like was mentioned. So what I have done is evrywhere i have made custom edits I comment the change just above and add a word that will never be used by vbulletin and you can always search templates and files for this word and see what edits you have done. Never had to do an update yet but hope this will at least help me when I do. Grant |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|