![]() |
All Vb <if> conditions
Hi,
I would like to learn more about the conditions that I can use in VB templates. For example, I am aware of the following tests: <if condition="$show['guest']">You're a guest!</if> <if condition="$show['member']">You're a member, not a guest</if> How can I find out what other tests I can perform with the variable "$show" ? For example, can I use it to find out if the user browsing the page is an administrator ? If the answer is "yes", then how did you knew how to build the test condition ? Regards, Razvan |
Code:
<if condition="is_member_of($vbulletin->userinfo, 6)">This will show to admins</if> |
Where are these functions defined ? (show, is_member_of)
Can I get a list of these built-in functions ? Regards, Razvan |
$show is a variable, and is_member_of() is a function.
Here is a list of some common conditions you can use, http://www.vbulletinzone.com/t44 |
This is great resource !!! Thanks !!!
What about the variables, like $show ? Is there some VB documentation about what variables are available and where (in which templates) ? |
I want to be able to block ads by IP or a block of IP's. I don't want to move members into groups because some of the users I don't want to show ads to are not even members. The problem I am having is with users clicking on Google Ads that are on the same network, I don't want any issues with Google so I am trying to take care of the issue before I get the warning from them.
Is their a condition that does this, does anyone have a starting point that I could play around with and test? Thanks. |
Quote:
At anyrate - No - There is no condition for blocking IP address. A list of conditionals for vB 3.x can be found at http://tech6.com/f51/vbulletin-templ...als-list-t112/ -- I'm not familiar with vB4 conditionals - you might be able to find a list here or at http://vbulletin.com - use search :) HTH, Jacquii. |
<if condition="is_member_of($vbulletin->bf_ugp_forumpermissions['canview'])"> is this possible ?
|
Quote:
|
i try if the user have permisson view category can see lastpost title on the forum statics but if No have permission (see you dont have permission)
i use this Code:
<if condition="!in_array($bbuserinfo[usergroupid], array(5,6,9))"> |
All times are GMT. The time now is 02:19 AM. |
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:
|