View Full Version : Problems: <if condition="$show['field']">
evenmonkeys
04-03-2006, 02:38 AM
Is it possible to use conditions like this on pages without plugins or php files? Like you can globally call for fields and stuff with $bbuserinfo[username] and whatnot... but how can you make similar commands for the $show thinger?
evenmonkeys
04-04-2006, 03:15 AM
Bumpizzle.
Freesteyelz
04-04-2006, 03:58 AM
Can you give an example of what you're thinking?
evenmonkeys
04-05-2006, 06:19 AM
This is an example from the memberinfo page that I'm trying to use. <if condition="$show['profilepic']">
<td valign="top" align="$stylevar[right]" rowspan="2">
<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
</td>
</if>Let's just pretend I wanted to make it work on a random template. How would I do that?
If it is not defined in the vBulletin .php files by default you'll have to use a plug-in or hack the files.
If you are checking something that is already defined as a global (like $vbulletin->userinfo) then just use it in the template instead and avoid an un-needed plug-in or file edit.
Freesteyelz
04-05-2006, 06:49 AM
As Brad mentioned I don't see why the condition you have in your title wouldn't work across vB's templates.
evenmonkeys
04-05-2006, 06:52 AM
Well, let's just say I put that in the calendar template. With the $show stuff, it's not showing. When I remove the condition, it shows. O_o Maybe it hates me? I might have found a new route though. =P
Freesteyelz
04-05-2006, 07:26 AM
Ahh. Keep us updated on your progress. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.