Show Permission Name for pro members?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dizzynation
    Senior Member
    • Jun 2011
    • 354
    • 4.2.X

    [Forum] Show Permission Name for pro members?

    I want to create a tab for only pro members to see, but what do I put in this section "Show Permission Name"

    Ive used "guest" and "member" but what do I use for my Pro Member user groups?
    www.filmmakerforum.org
    www.digidistribution.com
  • Amaury
    Senior Member
    • Mar 2012
    • 1807
    • 4.2.X

    #2
    Have you tried promember or whatever the name of your pro members usergroup name is?
    Former vBulletin user

    Comment

    • TheLastSuperman
      Senior Member
      • Sep 2008
      • 1799

      #3
      ^ If that does not work then you can:

      Note the tabid, then using a plugin hide said CSS tabid based on usergroup .

      Edit: Example... here on vBulletin.com if you inspect the "Tracker" navigation tab up top using firebug you see this as the css id: tab_nzm4_246

      Our plugin would resemble (using the parse_templates hook location, execution order of 5 etc) :

      PHP Code:
      if(is_member_of($vbulletin->userinfoxyz)){
      $hidetabperugid '<style type="text/css">
      #tab_nzm4_246 {
      display:none !important;
      }
      </style>'
      ;
      $template_hook[headinclude_bottom_css] .= $hidetabperugid;

      Replace x y or z w/ the usergroup id's you want to hide this from or simply delete y + z and leave one usergroupid in to hide said tab from . Example:

      PHP Code:
      if(is_member_of($vbulletin->userinfo6)){
      $hidetabperugid '<style type="text/css">
      #tab_nzm4_246 {
      display:none !important;
      }
      </style>'
      ;
      $template_hook[headinclude_bottom_css] .= $hidetabperugid;

      That would hide the tab from the admin ^ usergroup since the usergroup id is 6 .
      Last edited by TheLastSuperman; Mon 18 Feb '13, 2:43pm.


      Former vBulletin Support Staff
      Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
      Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

      Comment

      Related Topics

      Collapse

      Working...