Vbulletin plugin development tutorial

爱⌒轻易说出口 提交于 2019-11-30 21:59:17

Assuming vBulletin 4 and above:

Create a Product

  1. Logon to your AdminCP
  2. Goto Plugins & Products -> Manage Products
  3. Click Add/Import Product
  4. 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

  1. Goto Plugins & Products -> Add New Plugin
  2. Select your Product
  3. To add something to the header on every page select the global_bootstrap_init_complete hook location
  4. In PHP code enter the following:

    $template_hook['mycustommesage'] = 'hello world';

Update your header template to include the plugin output

  1. In ACP goto Styles & Templates -> Style Manager
  2. Select the style you want to edit and select edit templates
  3. Open the header template
  4. Whereever you want you plugin output to appear add:

    {vb:raw template_hook.mycustommesage}

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!