The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
API Extensions (The New Plugin/Hook System) Question
How can we intercept the methods we're extending, instead of having our extension methods invoke after the parent methods?
I.e. PHP Code:
|
#2
|
|||
|
|||
Both are not possible for the moment.
|
#3
|
|||
|
|||
... then how are we supposed to make mods without butchering the core software and making it difficult to install a mod?
|
#4
|
|||
|
|||
Well, for the moment, you need to find a way (workaround) to do what you want.
Maybe you can extend another method that is called before save() finishes. Maybe, you can create another controller to do what you want. If you explain what you want to do, we will able to be more help. Limitations to modifying vB5
If you have any others, please post them |
#5
|
|||
|
|||
Quote:
Thanks for this list, though. We just aren't developing any more vB5 mods until these things are taken care of. |
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
Hi,
i am pretty new to vBulletin as we got a customer who insists on using vB 5 Connect.... Having a quick look at the vB Code (horrible!), i came to the same conclusion: There is no good way of modifing specific behaviors in vB without making changes to the core files thus losing the possibility to upgrade. Sadly vB missed to implement some kind of event/hook system (sorry but these Template hooks just don't give enough flexibility for big changes). I went to make use of the existing autoloader and modified both - index.php and api.php to always look (following name convention) if there is a custom implementation of the loaded Class. Now I can easily override every Frontend Controller and API Class to integrate my own logic. Its not the best way, but as far as i can see its the only way to go right now. Anyone here tried something like this before? |
#8
|
||||
|
||||
Can you share/explain this in detail?
|
#9
|
||||
|
||||
You realise that post is a year old ?
|
#10
|
||||
|
||||
Yes, but even this would help more than the non-existing vb5 documentation...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|