PDA

View Full Version : vBulletin Conditionals [Complete List] - Help me/us/you!


Mr Pink
03-14-2007, 05:32 PM
vB Conditionals [Complete List]
Help me/us/you!



Hi, I've seen there is not a complete list of the vBulletin conditionals. So, why do't you, coders, help us posting here all the ones you know?


I will upgrade this post!

------------------------------------
Occurrence of '$show' in every vBulletin file included in the root and /includes/ directory - by Brad - [Download it Now! (https://vborg.vbsupport.ru/attachment.php?attachmentid=61878&d=1173956441)].

PayBas
03-14-2007, 11:03 PM
Not all conditionals can be used in every template. I'm not sure where you can lookup which conditionals are available for each template though.

Dismounted
03-15-2007, 04:38 AM
Find where the template is used (search within files) and look for variables set.

Mr Pink
03-15-2007, 08:33 AM
Find where the template is used (search within files) and look for variables set.

How can I do this?
Should I search for templates names in all the vBulletin files? o_0


For example, wich is the conditional for announcements?
I've try <if condition="$show['announcements']>, but it doesn't work!

Oh, I've found it.

<if condition="$announcebits">

Dismounted
03-15-2007, 09:41 AM
How can I do this?
Should I search for templates names in all the vBulletin files? o_0
Yes, then you see the code above it and see the variables set.

Brad
03-15-2007, 09:59 AM
You may find the attached file helpful. It lists every occurrence of '$show' in every vBulletin file included in the root and /includes/ directory.

It did pick up on some unrelated junk, and $show[] is not used for everything..however it is nice to know where these things are in the code.

Hope this file is helpful to someone.

Mr Pink
03-15-2007, 10:26 AM
Really thanks, Brad!
One question. What these means: "(280,3), etc"?

Brad
03-15-2007, 12:41 PM
Really thanks, Brad!
One question. What these means: "(280,3), etc"?
The first number is the line number the code resides at in the file. The second number is the postition of "$show" on the line in question.

Mr Pink
03-15-2007, 12:46 PM
I understand. Thanks again, Brad!