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
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?
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.. 🙂
That could work :), I don’t see any reasons why it wouldn’t