The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBuletin template variables for dummies
In vb3 I have some code in forumdisplay PHP within the while loop that displays threads
Code:
if($thread[forumid] = 98 ) { $forumname = "[WRC]"; } Of course in vb4 it's all different and I've followed about 5 different guides as to how to do it, and nothing is producing any results! Mostly because they all refer to custom templates and custom scripts. What I want to do is modify an existing file and output to an existing template. I've tried the $tempplater->register('forumname',$forumname); , doesn't work when I put {vb:raw forumname} into the template. Could anyone explain how to do it very simply - I've read the guides, they don't seem to work for me. Thanks |
#2
|
||||
|
||||
Let's say you want the template my_template to be modified with your variable.
PHP Code:
--------------- Added [DATE]1295180827[/DATE] at [TIME]1295180827[/TIME] --------------- Strike that "process_templates_complete" -- I meant "parse_templates" X3 |
#3
|
|||
|
|||
Aha! Works, many thanks for that. I knew it'd be simple!
|
#4
|
||||
|
||||
No prob, I was in the same situation when I switched to vB4. X3
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|