![]() |
Problems with an "old" Plugin
I code a Plugin a few month ago, and after servercrach i have to reinstall everything. But, one of my plugins, i cant use, becourse, i don't know, how to include it, into the template.
this is the plugin-code-snipped: PHP Code:
PHP Code:
i hope, anybody can help me. greetings Pirate |
It looks like your plugin tries to add it to the navbar template. It sets $template_hook['navtab_done'], but that template hook doesn't appear to exist. So, you can insert $template_hook['navtab_done'] in any template, or use {vb:raw treuhand} in the navbar template.
|
if i would add it to the forum-home?
what should i change. the plugin-hook is "global_start", if i see the lpugin-list. greetings |
If you want to add it to the FORUMHOME template, then you could use hook forumhome_complete. If you want it to be in the navbar template but only appear on the forum home page, then use hook parse_template, and enclose your plugin code in an if statement like:
Code:
if (THIS_SCRIPT == 'index') |
oay, everythinks works perfect.
Thank you very much for your quick and helpful answers. where can i find some infos about acp-plugins and how to code plugins for acp? greetings |
All times are GMT. The time now is 01:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|