Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
[HOW-TO] Easy way of finding executed hook locations
Marco van Herwaarden
Join Date: Jul 2004
Posts: 25,415

by Marco van Herwaarden Marco van Herwaarden is offline 15 Aug 2005

If you are developing a new hack, you are sometimes lost on which hooks are executed and in which order. You could ofcourse go check teh source files, but there is also another way:

open your includes/class_hook.php, and find:

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

Below it add:

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

While you are in debug mode, it will show you the list of all hooks executed. When you are saving data and are returned to another page, this will ofcourse not work, since you will not be able to see the information.
Views: 4604
Reply With Quote
Comments
  #2  
Old 15 Aug 2005, 14:35
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
PS on my Dev-Board, i have redirection message enabled, and i edited the STANDARD_REDIRECT template. I added a condition to disable the redirect script from being executed if running in debug mode, so i have all time to look at the DEVDEBUG information. To proceed to the next (redirected) page, simply click on proceed.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator

Last edited by Marco van Herwaarden; 15 Aug 2005 at 14:40.
Reply With Quote
  #3  
Old 07 Sep 2005, 02:08
fly fly is offline
 
Join Date: Oct 2003
Originally Posted by MarcoH64
PS on my Dev-Board, i have redirection message enabled, and i edited the STANDARD_REDIRECT template. I added a condition to disable the redirect script from being executed if running in debug mode, so i have all time to look at the DEVDEBUG information. To proceed to the next (redirected) page, simply click on proceed.
Can you post how you did that?
Reply With Quote
  #4  
Old 07 Sep 2005, 06:02
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Just surrounded the JavaScript part of the STANDARD_REDIRECT template with:

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

i think
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #5  
Old 14 Sep 2005, 00:37
fly fly is offline
 
Join Date: Oct 2003
Originally Posted by MarcoH64
If you are developing a new hack, you are sometimes lost on which hooks are executed and in which order. You could ofcourse go check teh source files, but there is also another way:

open your includes/class_hook.php, and find:

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

Below it add:

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

While you are in debug mode, it will show you the list of all hooks executed. When you are saving data and are returned to another page, this will ofcourse not work, since you will not be able to see the information.
Hmmm. This doesn't seem to be working for me. Im not seeing any of the hooks show up...
Reply With Quote
  #6  
Old 14 Sep 2005, 00:41
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
It does work for sure.
Do you have Debug Mode enabled?
Reply With Quote
  #7  
Old 14 Sep 2005, 13:29
fly fly is offline
 
Join Date: Oct 2003
Originally Posted by KirbyDE
It does work for sure.
Do you have Debug Mode enabled?
Yeah, I do. Where would I see these hooks then? It's obviously a simple change, what am I missing?
Reply With Quote
  #8  
Old 14 Sep 2005, 13:32
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
It's in the Debug-Dropdown at the Bottom of the Page, right above the Template Usage Table.
Reply With Quote
  #9  
Old 25 Jul 2006, 20:52
bigtime bigtime is offline
 
Join Date: Jun 2002
I couldn't get my admin panel redirect to not redirect. Any other ideas?

Thanks,

Tim
Reply With Quote
Reply



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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:01.

Layout Options | Width: Wide Color: