View Full Version : Help with <if condition="$show......... statements
vb_guru
11-17-2004, 08:55 AM
How are the <if condition="$show......... statements in a template related to the the php code in the .php pages. For example I want to display some html in a template only if a certain condition is met. I think that I need to use some type of <if condition="$show statement but not sure how to get this to work. Any help woould be appreciated. Does Vbulletin explain this in a manual somewhere. Thanks in advance.
HiDeo
11-17-2004, 10:21 AM
You have to add in your .php:
if (condition)
{
$show['X'] = true;
}
else
{
$show['X'] = false;
}
Colin F
11-17-2004, 11:32 AM
You might be able to use this as well:
https://vborg.vbsupport.ru/showthread.php?t=71162&highlight=%24show
Zachery
11-17-2004, 11:42 AM
How are the <if condition="$show......... statements in a template related to the the php code in the .php pages. For example I want to display some html in a template only if a certain condition is met. I think that I need to use some type of <if condition="$show statement but not sure how to get this to work. Any help woould be appreciated. Does Vbulletin explain this in a manual somewhere. Thanks in advance.
might just want to use the varibles instead of trying to always use the predefined $show varibles, as some are defined globaly and others are defined per page.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.