![]() |
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?
|
Bumpizzle.
|
Can you give an example of what you're thinking?
|
This is an example from the memberinfo page that I'm trying to use.
Code:
<if condition="$show['profilepic']"> |
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. |
As Brad mentioned I don't see why the condition you have in your title wouldn't work across vB's templates.
|
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
|
Ahh. Keep us updated on your progress. :)
|
All times are GMT. The time now is 03:08 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|