timtamboy63
Active Member
I was wondering how to do this, and I understand how I'd get it to dynamically add addons, etc. I was wondering if anyone could maybe post the basic logic of a hook system, and addon system similiar to that of vBulletin?
class Hooks
{
public function run($hooks)
{
//each hooks should be in the directory called hooks and asub folder
/*
Hooks
- startup
- before_db
*/
//$Hooks->run('before_db') would run threw all the php files on the startup_db folder and include them, all you have to do is run the specific folder at the specific time in your system.
}
}
Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.
Contact us