I'm sure this will help someone along the line with Darren's hack.
All credit goes to Boofo (thanks dude)
A huge Thanks goes to Darren and everyone whom got involved in this hack:
(Keyword search: referrer - refferer - nonvb - non-vb)
Question:
[code]
Marulatree wrote:
I'm using Darrin Lewis's Webwelcome login - nonvb script.
You know when you log out of a non vb page and it automatically goes to this page:
All cookies cleared! Please click here to etc...etc..
What code can I replace the following with in order to send the logged out visitor to the last non vb page he was on before logging out or even to my home page?
here's the original from template - error_cookieclear:
Code:
All cookies cleared! Click <a href="index.php?s=$session[sessionhash]">here</a> to return to the forums index.
Boofa's Answer:
Code:
Try this:
1) Open members.php and find
==========================
eval("standarderror(\"".gettemplate("error_cookieclear")."\");");
==========================
and replace it with
==========================
$url = $HTTP_REFERER;
eval("standardredirect(\"".gettemplate("redirect_logout")."\",\"$url\");");
==========================
2) Add a template called redirect_logout and put
==========================
<center>All cookies cleared. Please wait ...</center>