How do you show links to only certain usergroups?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HUMMER
    Senior Member
    • Sep 2005
    • 323

    How do you show links to only certain usergroups?

    There is a link I want to show in the "navbar" so that only 2 usergroups can see it...everyone else won't be shown the links.

    What code do I need?

    thanks
    \
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    This can be done with template conditionals. Here is the online documentation for using template conditionals:



    vBulletin Conditionals Quick Tips:
    vBulletin Conditionals
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • HUMMER
      Senior Member
      • Sep 2005
      • 323

      #3
      I found the code I need but when I enter this code into my forum I receive an error message:

      <if condition="$bbuserinfo['userid'] == 0">
      <p>Welcome to the forum!<br />
      If this is your first visit, we hope you enjoy your stay!</p>
      </if>
      The following error occurred when attempting to evaluate this template:

      Parse error: parse error, unexpected ',' in /var/www/vhosts/mywebsites.com/httpdocs/forum/includes/adminfunctions_template.php(3716) : eval()'d code on line 10

      This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
      \

      Comment

      • HUMMER
        Senior Member
        • Sep 2005
        • 323

        #4
        okay its working now
        \

        Comment

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