fetch_hook(‘global_setup_complete’) to replace entire files…

As we know what will be displayed at the end of global.php, we will be able to switch to a complete different files from there instead of running into showthread and forumdisplay, when needed… why? less need of hooks usage.

forumdisplay need tons of hooking when we change anything to be displayed when reading a forum… so for a addon that require too much stuff to be edited or replaced, instead of running thru these files, we simply have to use a included file and end the process there…

i know that my classified engine, like the auctions are expensive in codes, and may require a lot of edits in showthread… we can spare some time by doing that technique…

am i right??

Views: 10

3 thoughts on “fetch_hook(‘global_setup_complete’) to replace entire files…”

  1. Drew dit :

    This is right except how would we, for example, change the template of the threadbit in forumdisplay becuase that variable is define after global_setup_complete?

  2. nexia dit :

    that is logic if we stick with the actual structure, but if we call an external file, that is where we will apply a str_replace($vbulletin->templatecache, blah, blah)… iff needed, because if we use a different file we can also call different templates.

    btw, this is for a major addon, i don’t think we’re there yet.. 🙂

  3. Drew dit :

    That could work :), I don’t see any reasons why it wouldn’t

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.

En savoir plus sur Un Papa Pro

Abonnez-vous pour poursuivre la lecture et avoir accès à l’ensemble des archives.

Continue reading