vBulletin 4 Template Conditionals List

本帖由 Xiao.T2010-11-25 发布。版面名称:vBulletin 4.0.X 模板修改

  1. Xiao.T

    Xiao.T 管理员 技术员

    Here is a list of some new vBulletin 4 Template Conditionals that I have found going through vb.org. I hope you find them useful.

    Show only members:

    代码:
    Show this to members only


    Show only guest
    :

    代码:
    Show this to guest only
    Show specific user groups :

    代码:
    Show this to user group 1, 2, and 3
    Show one member:

    代码:
    Show this only to the member with the user id of 318713
    Show every one but one member:

    代码:
    Show this to every one but the member with the user id of 318713
    Show only moderators of any forum:

    代码:
    Show this to all moderators
    Show Moderator of one forum: Remember to change x

    代码:
    Show this if moderator is moderator of the forum with the id of x
    Show Moderator of current forum:

    代码:
    Show this to the moderator of the current forum
    Show in one forum: Remember to change x

    代码:
    Show this if forum id is x
    Show is every forum but one: Remember to change x

    代码:
      Show this if forum id is not x
    Show in several forums:

    代码:
    Show this to forum 1, 2 and 3
    Show in only one file: Look for define('THIS_SCRIPT', 'calendar'); in the top of the php file you want it to show in.

    代码:
    Show this only on calendar.php
    Show in every file but one: Look for define('THIS_SCRIPT', 'calendar'); in the top of the php file you do not want it to show in.

    代码:
    Show this only on calendar.php
    If $customvar is set:

    代码:
    Show this if $customvar is set
    If $customvar equals:

    代码:
    Show this if $customvar equals blah
    If $customvar does not equal:

    代码:
    Show this if $customvar does not equal blah
    vBulletin else statement:

    代码:
    Show this to only guest.
    
    Show this to all registered users
    
    vBulletin else if statement:
    代码:
    
    Show this to only guest.
    
    
    Show this to user group 5 and 6 which is  mods and admins
    
    
    Show this to all registered users
    
    
    If you find more please let me know as I like to try and keep the most up to date and informative list.:have a nice day:

    vB4模板-可见条件使用技巧.
     
    已获得 nardinodouble76xiazaidalei1 的点赞。
  2. xiazaidalei1

    xiazaidalei1 普通会员

    呵呵 看看 感谢了