The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template varibales Problem
Hi,
i try to create my own mod using the HOWTO in "Articles", but nothing works. The "my_test" is cached (not red in debug mode) but the variables are empty or NULL or anything else which makes Problems . plugin1 (Hook: forumhome_start): PHP Code:
PHP Code:
Code:
{vb:raw test1} <br>{vb:raw test2} Code:
{vb:raw my_test} |
#2
|
|||
|
|||
It works for me. Where in FORUMHOME did you insert the code? Maybe it's there but not visible for some reason (check the page html source). Also make sure your plugins have "Plugin is Active" set to yes, and if you have multiple styles, make sure you're looking at a style that's using the template you modified.
|
Благодарность от: | ||
Lynne |
#3
|
|||
|
|||
Thank you,
i don't know why, but i only have to reboot the server. Another question about variables: are there any possibilites to print a complete array with only one entry? i mean somethink like: Code:
foreach (...) { {vb:raw myvar.key} } |
#4
|
||||
|
||||
See https://vborg.vbsupport.ru/showthread.php?t=221560.
You may want to have a look at other articles in that section, too. |
Благодарность от: | ||
Lynne |
#5
|
|||
|
|||
Quote:
you can mark this here as solved. Thanks to everyone |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|