![]() |
What function in vB 3.7.0 can I hack right before the page is output?
I recently upgraded an old 2.3.0 board to the latest 3.7.0.
I am now trying to recreate some of my old hacks. In the old code, there was a function named dooutput(...) (in admin/functions.php) that essentially was the last thing called before the php-prepared HTML was spit out to the browser page. I was using a hack inside this function to parse the finished HTML and substitute some words for other words for a specific purpose. Can anyone tell me where the corresponding function would be in 3.7? I'm not having much success in finding it, everything is so different now.... |
Use one of the global hook locations in a plugin.
|
Quote:
|
I'd suggest you have a look at this.
|
Quote:
So how do I find out where the hooks are - is there a list of where they appear? Do I just manually browse all of the source files (that could be quite time-consuming), and try to figure out what the functions they appear in are doing, or is there some more organized approach, like a list? As I mentioned, I'd like to find one that will allow me to search and replace the formatted HTML before it is spit out to the browser page and displayed - something sort of at the end of the whole procedure of displaying a forum page. Thanks! |
Most hooks are logically named, so its relatively easy to guess at where they're located. ie. newpost_process, forumhome_start, global_complete, etc.
In answer to your question, I would look at the global_complete hook to run your function. |
All times are GMT. The time now is 08:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|