![]() |
Hook System
I've been researching on google for some time now, I found 1 out of a thousand results for php auto updater which was useful for one of my projects, now I'm looking for a hook system for plugins and what not. Does anyone know how to make a basic PHP -> XML plugin hook system?
|
Could you be a bit more specific as to which part of this "hook" system you don't understand? Also, how does XML play a part in all this - I have a vague idea, but could you elaborate?
|
I think he wants something like the plugin system vBulletin has, where you import a XML-file :p
|
That doesn't actually have anything to do with the hook system (well, besides it contains the hooks related to the product that the XML file represents). The XML files simply provide a way to tie togehter all the pieces of a vBulletin product, that is, the tempaltes, hooks, stylevars, etc.
The actual hook system itself has nothing to do with XML (as far as I know anyway, I may be wrong?) |
I really don't no nothing, I want to know how the actual hook system would be set up.
|
Okay using your basic concept, say I got a forum software(Working on a new PHP 5 OOP one), My Hook class would be basically a get hooks, check if hook is availible(login,etc.), then execute the hook.
Code:
class HookSystemregistration -> form registration -> header registration -> captcha ) It would ask what type of hook it is, then check if the hook is available based on something basic like my example say form, hook would be something similar to add a new field to the form with ease. Code:
$page = htmlspecialchars($_GET['page']); |
| All times are GMT. The time now is 12:14 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0