Announcement

Collapse
No announcement yet.

if condition hide from guest, banned, users awaiting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • if condition hide from guest, banned, users awaiting

    Hi,

    I am wanting to hide a link from the following
    Guest (Unregistered / Not Logged In)
    Users Awaiting Email Confirmation
    Banned Users
    (COPPA) Users Awaiting Moderation

    Could someone tell me the: if condition I need to be using.
    The link is in the It is in the Navigation bar at the top.
    Last edited by DolphinEcho; Sat 24 Oct '09, 4:58am.

  • #2
    More specific please...

    Is this link inside a post in a thread, on the navigation bar?

    If the link occurs somewhere outside if the normal posting area, such as a forum, thread or post... then this would require a custom modification to accomplish your task.
    To be updated...

    Comment


    • #3
      Sorry forgot that bit.
      It is in the Navigation bar at the top.

      Comment


      • #4
        You'll need to make a custom modification to accomplish what you are asking.

        I can't provide the code here to do it, but the folks over vbulletin.org can probably assist you with the modification.
        To be updated...

        Comment


        • #5
          Just did some Google'ing and found: http://forum.vbulletinsetup.com/f18/...list-2185.html
          So I am currently using the following code:

          Code:
          <if condition="is_member_of($vbulletin->userinfo, 1, 3, 4, 8)">
          <else />
          <td class="vbmenu_control"><a href="XXXXXXXXXXXXX">XXX</a></td>
          </if>
          If anyone can come up with a better way please lete me know

          Comment


          • #6
            That method is the best.
            It might be recommended to put:
            Code:
            <if condition="!is_member_of($vbulletin->userinfo, 1, 3, 4, 8)">
            <td class="vbmenu_control"><a href="XXXXXXXXXXXXX">XXX</a></td>
            </if>
            That basically says "If not in usergroup(s) 1, 3, 4, 8 - show link"

            Comment

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