![]() |
Redirect after submit
On the edit profile page there are buttons
HTML Code:
<input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" /> I would like to go to a custom page, newthread.php?do=hpde. One site I found recommended HTML Code:
onclick="document.location = '/index.php';" Any hints? |
In profile.php, find and change the following lines:
PHP Code:
PHP Code:
|
To continue from last post.
Thank you. Editing profile.php worked just fine. Although if the person is on the edit password page they will be redirected to the wrong page otherwise the redirect is exactly what I am looking for. In the statement. PHP Code:
If $vbulletin->url = 'profile.php?do=editdereg' . $vbulletin->session->vars['sessionurl_q']; Then goto $vbulletin->url = 'newthread.php?do=hpde' . $vbulletin->session->vars['sessionurl_q']; So I can retain the original function of the statement. Is that possible? Thanks again. |
All times are GMT. The time now is 01:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|