The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
hook location for header footer (in thread) plugin?
What hook location for plugin which has to working in HEADER AND FOOTER template in each thread?
Which hook location have I to choose? I try with showthread_complete and showthread_getinfo but it doesn't work The plug-in generate correctly the variable: $testo_adv_header .= "$row_adv_header[adv_text]"; and I stamp it on site correctly: echo "$testo_adv_header"; But in the template the variable does not appear! <td>$testo_adv_header</td> </tr> </table> And for footer template? --------------- Added [DATE]1221900556[/DATE] at [TIME]1221900556[/TIME] --------------- Is it not possible to make a plugin for Header template? For example: in my plugin i create this var: $var1 = "<p>TEST PLUGIN</p>"; if I put in HEADER template this var: $var1 I not read "TEST PLUGIN" Which hook location Have I to use? |
#2
|
|||
|
|||
Global_start doesn't work
|
#3
|
|||
|
|||
The hook parse_templates is just before the header and footer templates are processed. But global_start is also before that so it should have worked. In your plugin, are you setting the variables in a function? If so, you may need a "global" statement to make it work.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|