The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding data to page after page execution
OK hard to find a title here...
I want to include some kind of profiling, logging execution time of certain processes to give the admin some info about what's going on and what's taking too much time. This info gets collected throughout the page execution and should be placed into or below the footer. Problem is, that apparently all templates are generated before the script execution stops. I'm looking for a hook which is called after all important templates like showthread and forumhome are processed or all is finished and parsed but I can't find one. The last hook which is called is showthread_complete but that's useless since my functions are called potentially everywhere. I tried to register a global shutdown function in php to simply print my profiling data but this seems to mess with vbulletin css and js scripts... help? |
#2
|
|||
|
|||
You can use global_complete or global_shutdown
|
#3
|
||||
|
||||
When I print something from those hooks, the text appears above the opening <html> tag.
Any way to append the output after the page or inside a certain template? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|