The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Multiple Plugins with Hook bbcode_fetch_tags
I wrote a plugin which changes some URLs. URLs are handeled in the callback function handle_bbcode_url(). With the hook "bbcode_fetch_tags" this function can be replaced by another one:
PHP Code:
The problem is now that I want to create another plugin which also modifies the links. So I would need some sort of chaining. Of course not all plugins would work together when they all modify the links. But some would if the chaining can be done. I have not tried it yet, but I assume I could check if an external callback is already set. If it's already set I save this function and call it in my hook instead of bbcode_fetch_tags. Is there some sort of best practice? Because I think most of the plugins which changes the callback functions should do something like this that they could work together. |
#2
|
||||
|
||||
There is no "chaining" feature. Modifications that modify the same BB code definition will not be compatible.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|