need a special condition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mazinger
    Senior Member
    • Jul 2005
    • 2399
    • 3.7.x

    need a special condition

    I want a condition for whosonlinebit template that:

    1- An Admin is (usergroup 6) can view all bits.
    2- Other members can see the bits but not the one belongs to an admin (usergroup 6).

    Clarifation: An admin can see all online users & their location while other users can see other members but not administrators.

    Thanks in advance.
    $post[signature]
  • Zero Tolerance
    Member
    • Feb 2004
    • 95
    • 3.6.x

    #2
    Code:
    <if condition="(is_member_of($bbuserinfo, 6) || !is_member_of($userinfo, 6))">
    ...html...
    </if>
    Should work I imagine

    Comment

    • Mazinger
      Senior Member
      • Jul 2005
      • 2399
      • 3.7.x

      #3
      Perfect, thanks alot!
      $post[signature]

      Comment

      • Mazinger
        Senior Member
        • Jul 2005
        • 2399
        • 3.7.x

        #4
        EDIT: Working on memberinfo but not whosonlinebit.

        Could you check it, please?
        $post[signature]

        Comment

        • Zero Tolerance
          Member
          • Feb 2004
          • 95
          • 3.6.x

          #5
          I've not seen the whosonlinebit template for vB 3.8, could you see what variable they use inside the template for the userinfo? It was $userinfo but I guess they changed it.

          Comment

          • Mazinger
            Senior Member
            • Jul 2005
            • 2399
            • 3.7.x

            #6
            I'm using 3.7.4, does it differ?
            $post[signature]

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...