The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Problems: <if condition="$show['field']">
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?
|
#2
|
||||
|
||||
Bumpizzle.
|
#3
|
||||
|
||||
Can you give an example of what you're thinking?
|
#4
|
||||
|
||||
This is an example from the memberinfo page that I'm trying to use.
Code:
<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> |
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
As Brad mentioned I don't see why the condition you have in your title wouldn't work across vB's templates.
|
#7
|
||||
|
||||
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
|
#8
|
||||
|
||||
Ahh. Keep us updated on your progress.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|