![]() |
|
|
Thread Tools |
|
#1
|
||||||||
|
||||||||
|
Problems With logout_process Hook
I'm looking for help and advice concerning the logout_process hook.
I have a plugin on this hook which calls a function, which updates the database. Oddly, this update will only go through when I die() at the end of the hook, otherwise the logout proceeds as if the plugin didn't exist. Is there a reason for this, maybe something to do with the logout redirect? The code of the plugin itself just includes the actual plugin file; i.e., include('modfolder/hooks/logout_process.php'). The contents of this file are below.
The update_status function is declared in the mymod_functions.php file, and its contents are below.
Helpz plox. No members have liked this post.
|
||||||||
|
#2
|
||||
|
||||
|
It seems to work for me. Are you sure there are no other plugins that could be resetting the status after logout_process?
__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread. No members have liked this post.
|
|
#3
|
|||
|
|||
|
Thank you for taking the time to test it, kh99. I really appreciate it!
Reading your post gave me an idea. While there were no other plugins resetting the status, there was a faulty line of javascript that would. Correcting that javascript error fixed my issue. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 02:04.


