Mod Request: Changi...
 
Notifications
Clear all

Mod Request: Changing Logout behavior

5 Posts
4 Users
0 Reactions
1,489 Views
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

I'd like

user.php?action=login

to be the result link upon clicking "logout" instead of

user.php?action=logout

.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 03/02/2008 6:34 pm
(@carissa)
Posts: 791
Member Moderator
 

What? You want the logout link to log people in? Surely I'm not understanding you correctly!


 
Posted : 03/02/2008 9:28 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

to show the login screen ^^


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 03/02/2008 11:06 pm
(@tammy)
Posts: 2577
Member Moderator
 

No. It's not possible.  The logging out actually happens at that result link. 
if you want that you'll have to MOD logout.php to display the login form.


 
Posted : 04/02/2008 10:33 am
(@Seiji)
Posts: 0
 

You can redirect the user... this should work:

1. BACKUP YOUR FILE: user/logout.php

2. OPEN user/logout.php AND FIND (around line 22):
require_once("header.php");

3. ADD BEFORE
header("Location: user.php");
exit( );

It should work but you will have more lines then you need since the script stops at the exit(); line.
If you want, you can delete all the lines from require_once("header.php"); and down. Just leave the "?>" at the end or it won't work.

Post if you have any problems.


 
Posted : 25/02/2008 4:31 pm
Share: