我搜索了教程,但是没有找到任何有用的教程.我想创建一个简单的插件,将"123"添加到论坛每页的标题.
I searched for tutorials but i didn't found any useful tutorial. I want to create simple plugin which add "123" to header of every pages of forum.
我试图进入管理面板->创建新插件.但是我不知道我需要在标题中显示"123"的钩子.
I tried to go to admin panel -> create new plugin. But i don't know what hook i need to display "123" in header.
非常感谢您的帮助.
推荐答案假定vBulletin 4及更高版本:
Assuming vBulletin 4 and above:
创建产品
向产品添加插件
在PHP代码中输入以下内容:
In PHP code enter the following:
$ template_hook ['mycustommesage'] ='hello world';
$template_hook['mycustommesage'] = 'hello world';
更新标题模板以包含插件输出
要在任何地方显示插件输出,请添加:
Whereever you want you plugin output to appear add:
{vb:raw template_hook.mycustommesage}
{vb:raw template_hook.mycustommesage}
更多推荐
Vbulletin插件开发教程
发布评论