The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using postbit variables in new template
Hello,
I made a new template and I want to use postbit variables in it , for example If I put "$post[title]" in the new template it doesn't work note: I edited the global.php with the new template and put $template_name in showthread above $postbit Thanks in advance |
#2
|
|||
|
|||
You need to eval your template in a place where the $post variable is available. Also, if it's something that you want to appear above each postbit, you can't put it in SHOWTHREAD, you would need to put it in the postbit template.
You could just put your changes in the postbit (or postbit_legacy_template, but if you want to use a separate template you could try creating a plugin using hook postbit_display_complete and put your template code in there, then insert your variable in the postbit template. (Or use $template_hook[postbit_start] if you want it right at the beginning). |
Благодарность от: | ||
I.Talaat |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|