The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
template parsing variable
This may be a weird question but how do I stop a vbulletin variable from parsing in templates?
I am trying to create a help page and every time I add $bbuserinfo[username] inside the template, it shows the users name instead of just displaying $bbuserinfo[username] as text. Thanks |
#2
|
|||
|
|||
Try adding a backslash (or maybe even 2 or 3, try it) in front of the $, so \$bbuserinfo....
|
#3
|
||||
|
||||
Quote:
bbcode does not parse inside template so that doesnt work.:erm: update: It will work only once by using ascii ie, $bbuserinfo[username] as $bbuserinfo[username] But as soon as you reopen template editor, all your ascii turns back to symbols. |
#4
|
||||
|
||||
Code:
<if condition="$text = '$bbuserinfo[username]'">$text</if> |
#5
|
||||
|
||||
That throws a parse error - unexpected T_STRING
|
#6
|
|||
|
|||
You could maybe post that as a bug on the bug tracker at vBulletin.com (assuming someone else hasn't already pointed it out) see if they can fix it.
|
#7
|
||||
|
||||
Try:
Code:
<if condition="$text = '\$bbuserinfo[username]'">$text</if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|