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:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


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
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB