The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
variable = conditional
how would i go about making sure that a variable shows the results of a conditional?
something like this, i remember being old i couldn't it in such a way before, just don't remember how i was taught to do it. PHP Code:
|
#2
|
||||
|
||||
i'd suggest that way:
PHP Code:
|
#3
|
||||
|
||||
thanks that code seems to do it, however how would i then call the code?
in my templates it's set as $rate but i'm not sure what to put in the file for it call to the template i thought i would be able to just put $show_project below the other template calls for that page but i that don't work |
#4
|
||||
|
||||
add $show_project into your template, that should do it.
but i'm not sure, about the output, i think it's TRUE or FALSE, but i may bewrong |
#5
|
|||
|
|||
PHP Code:
|
#6
|
||||
|
||||
or use iif as it's the vb pendant
|
#7
|
||||
|
||||
well i managed to get the code working bar this last bit i guess that's what i was trying to do in the first place
but i was gonna ask PHP Code:
|
#8
|
||||
|
||||
ok i'm at a total loss, it's still not working
PHP Code:
|
#9
|
||||
|
||||
Try:
PHP Code:
|
#10
|
||||
|
||||
:w00t: it worked, i'm so greatful, thank you so so so so so so much
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|