The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to eval template vB4
PHP Code:
Could somebody turn that code into vb4-acceptable syntax? EDIT: So far I have: PHP Code:
|
#2
|
||||
|
||||
You register any variable you plan to use in the template - usually not also stylevars, or vboptions or session - the common ones. But, if you use them, and don't register them and they don't work, then add them in.
|
#3
|
|||
|
|||
I register all variables except stylevars, vboptions and sessions? Does sessions include the session URL? Do I need to register the session URL?
Also, what about $vbcollapse? The template is already created (with variables) I just need to call the template for a custom URL and register all variables, however i'm not sure which ones don't need to be registered. Thanks in advance. EDIT: Old code: PHP Code:
PHP Code:
|
#4
|
||||
|
||||
It doesn't hurt to register a variable that isn't needed (like a stylevar or session). So, if you aren't sure if you need to register them or not, just put them in anyway.
|
#5
|
|||
|
|||
Hey Lynne,
Does the above code mimic the old code, just in the new syntax? Old: PHP Code:
|
#6
|
||||
|
||||
Yeah, it looks fine to me. But then, I've always been one who just jumps in and tries it out - thank God for test sites!
|
#7
|
|||
|
|||
I'm trying to output this to a ?do=archive and it won't show anything currently, thanks for your help though, i'm sure i'll figure something out!
|
#8
|
||||
|
||||
And is $HTML registered to be used in whatever template used in do=archive? (I have no idea where that page is).
|
#9
|
|||
|
|||
do=archive is an archive for my shoutbox.
So if I assign the template to variable $HTML, that variable has to be registered also? I'll fix that little error. |
#10
|
||||
|
||||
Yep, all variables must be registered for use in a template now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|