The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
what are the {vb raw xyz}? and how to use them?
Hi,
I see a lot of {vb raw totalpost} in the template but can't figure out how to print it out. For example, I see {vb raw totalpost} in one template and I would like to use that in another template, can I do that? I have tried several instances but with no luck. It always returns empty. |
#2
|
||||
|
||||
Those are just new ways to writing the variables. {vb:raw totalpost} used to be $totalpost in vB3 and is probably more recognizable.
You cannot always just move a variable from one template to another. All variables must be registered for use in a template (Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide) and, if you are moving it to another page, then you need to also take the php code and move it to that page or else the variable won't exist for use. |
Благодарность от: | ||
Fready |
#3
|
|||
|
|||
thanks I will check out the article.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|