![]() |
|
Article Options |
[HOW-TO] Easy way of finding executed hook locations
by
![]() 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:
Below it add:
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. The following members like this post: BCP Hung
|
||||||||
Views: 4882
|
Comments |
#2
|
|||
|
|||
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 No members have liked this post.
Last edited by Marco van Herwaarden; 15 Aug 2005 at 14:40. |
#3
|
|||
|
|||
Originally Posted by MarcoH64
Can you post how you did that?
No members have liked this post.
|
#4
|
||||
|
||||
Just surrounded the JavaScript part of the STANDARD_REDIRECT template with:
i think
__________________
Marco van Herwaarden Ex vBulletin.org Coordinator No members have liked this post.
|
#5
|
||||||||
|
||||||||
Originally Posted by MarcoH64
Hmmm. This doesn't seem to be working for me. Im not seeing any of the hooks show up...
No members have liked this post.
|
#6
|
||||
|
||||
It does work for sure.
Do you have Debug Mode enabled? No members have liked this post.
|
#7
|
|||
|
|||
Originally Posted by KirbyDE
Yeah, I do. Where would I see these hooks then? It's obviously a simple change, what am I missing?
No members have liked this post.
|
#8
|
||||
|
||||
It's in the Debug-Dropdown at the Bottom of the Page, right above the Template Usage Table.
No members have liked this post.
|
#9
|
|||
|
|||
I couldn't get my admin panel redirect to not redirect. Any other ideas?
Thanks, Tim No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:13.