miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Custom logout page

Author realitybytes
Registered
#1 | Posted: 11 Mar 2011 07:14 | Edited by: realitybytes 
I have managed to redirect users for registration, and passwords through the pluggins with simple redirects..

if(isset($_GET['action']) && $_GET['action'] == "registernew") {
header("Location: http://url.com/register.php");
}

if(isset($_GET['action']) && $_GET['action'] == "sendpass") {
header("Location: http://url.com/forgotpass.php");
}


however I also need the logout to redirect, the following is ignored..

if(isset($_GET['mode']) && $_GET['mode'] == "logout") {
header("Location: http://url.com/process.php");
}

Is it possible to achieve the redirection without changing the core of the functions which I have located and could do but would prefer not to.

Author Paul
Lead Developer
#2 | Posted: 11 Mar 2011 09:18 
Logout is executing faster than any of the plugins inclusion, so most likely you may try to paste your code under setup_options.php, or bb_specials.php.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Custom logout page Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB