Vbulletin plugin development tutorial
I searched for tutorials but i didn't found any useful tutorial. I want to create simple plugin which a开发者_StackOverflowdd "123" to header of every pages of forum.
I tried to go to admin panel -> create new plugin. But i don't know what hook i need to display "123" in header.
I will be very thankful for any help.
Assuming vBulletin 4 and above:
Create a Product
- Logon to your AdminCP
- Goto Plugins & Products -> Manage Products
- Click Add/Import Product
- On the following screen enter your product name etc in the Add New Product section (you can leave Product URL and Product Check URL blank)
Add a Plugin to your Product
- Goto Plugins & Products -> Add New Plugin
- Select your Product
- To add something to the header on every page select the global_bootstrap_init_complete hook location
In PHP code enter the following:
$template_hook['mycustommesage'] = 'hello world';
Update your header template to include the plugin output
- In ACP goto Styles & Templates -> Style Manager
- Select the style you want to edit and select edit templates
- Open the header template
Whereever you want you plugin output to appear add:
{vb:raw template_hook.mycustommesage}
精彩评论