I noticed when trying to logout using Opera or Firefox you get a blank page with some text saying Click here to logout or something like that, but it doesn't go anywhere.
To fix it go to login.php and replace the following on line 32:
// if user requests to logout
if(isset($_GET["op"])){
if($_GET["op"] === 'logout') {
//$current_user->Logout($_REQUEST['return']);
$current_user->Logout(header("Location: index.php"));
}
}
Pligg 9.7 is here! Nice!
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| [SOLVED] LogOut Error Fixed
__________________ High Quality Club/Trance/DJ Tees @ www.MyClubTees.com |
| The Following 3 Users Say Thank You to vAx For This Useful Post: | ||
| ||||
|
this saves alot of hassle with admin pages. for example if an admin logs out it redirects them to the admin page where they get "some error message" and people will think it's a bug not letting them logout but it simply redirecting to the admin page as a anonymous user.
__________________ Anatomy of the Pligg template Help needed |
| |||
|
I just installed 9.7 and I can't log out of my admin account using IE7. I tried the fix above and not only did it not fix the problem, but when using Firefox and a normal account it just went to a blank page. I'm assuming the fix above must be for 9.6, so I removed it. Anyone else having a problem logging out of the admin account with 9.7 using IE7? I might be having the same problem with regular accounts, but I can't log out to test it (haven't tried deleting my cookies yet). |
| ||||
| Please help us help you. Post a link to your site!!!
__________________ - Ash |
| ||||
|
I encountered the same problem with redirect after logout using Firefox (stuck in a loop on blank page). This worked for me, but I only installed Pligg today, so ignore me if this solution is off the mark. libs/html1.php line 416 and line 487 change Code: If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=".$var1;}
Code: If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=index.php";}
![]() beta 9.8 win XP + IIS PHP 4.3.11 MySQL 3.23.58 |
| The Following 3 Users Say Thank You to TobiParrot For This Useful Post: | ||
| |||
|
TobiParrot, thanks a lot... I waited looong for this answer.... It fixed my BIG problem. No i can go live with my website. ![]() Quote:
|
| The Following User Says Thank You to chawra For This Useful Post: | ||
| ||||
|
Thank you very much TobiParrot
__________________ Mozilla Daily, News site dedicated to everything Mozilla |
| ||||
|
This sure helped me a lot |
| ||||
|
for 9.9 I just changed line 424 and it works If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=" . $var1;} to If ($x == "logout") {return my_pligg_base."/login.php?op=logout&return=" . index.php;}
__________________ Mozilla Daily, News site dedicated to everything Mozilla |
| The Following User Says Thank You to graphicsguru For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Logout on profile page | grimusm | General Help | 2 | 12-04-2007 04:40 PM |
| [SOLVED] How to modify the return path url after logout? | new_newbie | General Help | 1 | 08-26-2007 04:57 PM |
| Logout Problem | ozo | General Help | 2 | 05-24-2007 02:37 PM |
| Login / Logout problem | aliveshecried | Bug Report | 5 | 04-11-2007 05:45 PM |
| Pligg [Build 693] - Can't Logout | Daniel | Bug Report | 3 | 02-12-2007 08:55 PM |







Linear Mode

