Back to vBulletin 3 Articles

Easy Plugin developement
by Andreas 02 Oct 2005

You are developing Plugins on localhost and don't like the Plugin Manager too much because of it's limited editing capabilites and would rather like to use your favourite editor?

Then you might find the following useful:

1) Create a directory hooks in your includes directory
2) In File class_hook.php find
PHP Code:
return $this->pluginlist["$hookname"]; 
Replace that with
PHP Code:
return @file_get_contents(DIR "/includes/hooks/hook_$hookname.php"); 
Then write your Plugin Codes as normal Files in directory hooks.
Example: hook_global_start.php for a Plugin on global_start

Note: Don't use <?php and ?>-Tags or your code won't work!

vblts.ru supports vBulletin®, 2022-2024