The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
it's somehow similar but not exact.
I'll try again to explain what I'm looking for. I have a variable in one of my product. it's not an array. this variable called $vbulletin->options['rtrf_xxx_yyy'] as it has only one value. not many values as in array. so, I tried to use this variable in a template, in order to do that I did the following: PHP Code:
HTML Code:
<if condition="$test != 0">show something</if> then I tried using the following code: HTML Code:
<if condition="$vbulletin->options['rtrf_xxx_yyy'] != 0"> show something</if> then I tried to put only $test variable in the template to see if it gonna show up. but it didn't. I -then- put $vbulletin->options['rtrf_xxx_yyy'] and it shows me Array['rtrf_xxx_yyy'] then I put {} around the variable like this {$vbulletin->options['rtrf_xxx_yyy']} and it works fine and showes me what I want. I'm just wondering why it did not work when I use $test but work fine when I use {$vbulletin->options['rtrf_xxx_yyy']} although I already set $test value as I mentioned above. $test=$vbulletin->options['rtrf_xxx_yyy']; what I want exactly is to use $test in the template instead of $vbulletin->options['rtrf_xxx_yyy']. but I couldn't make it work or show up. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|