The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
IF ELSE Condition to hide and show something
hello,
i need help if someone click from file test.php tick on hide images . it doesn't show otherwise it shows as normal . so what will be the condition code for this i search on net but i am little confused about how to use it . if someone could help me in this thanks best regards waiting for reply |
#2
|
|||
|
|||
If you're using an external php file then you can just use regular php syntax.
|
#3
|
|||
|
|||
any example please ? like
<if condition="file.php",show=yes > else= Hide> something like that thanks --------------- Added [DATE]1315674741[/DATE] at [TIME]1315674741[/TIME] --------------- anyone please ? |
#4
|
|||
|
|||
php code is:
if ($randomvariable == true) { do this... } else { do this } |
#5
|
|||
|
|||
thanks but i need template code for this .
--------------- Added [DATE]1315699643[/DATE] at [TIME]1315699643[/TIME] --------------- like : If someone click from usercp panel that there is option hide the image or show the image : <if condition="$myusercp-setting-hide-image-variable"> hide ( should i have to write only " hide" or something else ?) <else /> show (should i have to write only "show" or something else ? ) </if> Is this correct ? thanks waiting for reply --------------- Added [DATE]1315766232[/DATE] at [TIME]1315766232[/TIME] --------------- any help please ? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|