Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Mar 2012, 23:39
nitroviper_work nitroviper_work is offline
 
Join Date: Jul 2009
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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The update_status function is declared in the mymod_functions.php file, and its contents are below.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Helpz plox.
Reply With Quote
  #2  
Old 03 Mar 2012, 12:46
kh99's Avatar
kh99 kh99 is online now
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
  #3  
Old 05 Mar 2012, 20:02
nitroviper_work nitroviper_work is offline
 
Join Date: Jul 2009
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 02:04.

Layout Options | Width: Wide Color: