Announcement

Collapse
No announcement yet.

Usergroup Permission Issue

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

  • #16
    Please excuse my mis-communication. What I am seeking to know is when creating the plugin - what "HOOK LOCATION" do I need to add this to, to hide statistics. Word.
    Last edited by qubed; Wed 3 Feb '10, 6:59am.

    Comment


    • #17
      Plugins & Products -> Add New Plugin

      Product: vBulletin

      Hook Location: forumhome_loggedinuser

      Title: Hide Active Users from Specific Groups

      Execution Order: 5

      Plugin PHP Code:

      if ($vbulletin->userinfo['usergroupid'] != '6')
      {
      $loggedin = '';
      }

      Plugin is Active: Yes

      Then save it.

      This will hide the active users from anyone who is not an admin.

      As you will most likely hide it from most groups, just add AND..... to allow another group to see the list, eg Super Mods:

      if ($vbulletin->userinfo['usergroupid'] != '6' AND $vbulletin->userinfo['usergroupid'] != '5')
      {
      $loggedin = '';
      }

      See text in red...
      Vote for:

      - *Admin Settable Paid Subscription Reminder Timeframe*
      -
      *PM - Add ability to reply to originator only*
      - Add Admin ability to auto-subscribe users to specific channel(s)
      - "Quick Route" Interface...

      Comment


      • #18
        Originally posted by qubed View Post
        Please excuse my mis-communication. What I am seeking to know is when creating the plugin - what "HOOK LOCATION" do I need to add this to, to hide statistics. Word.
        Code:
        [B]Plugins & Products -> Add New Plugin[/B]
        
        [B]Product[/B]: vBulletin
        
        [COLOR=red][B]Hook Location[/B]: forumhome_loggedinuser
        [/COLOR]
        [B]Title[/B]:[B] [COLOR=Red]Hide Statistics[/COLOR][/B] from Specific Groups
        
        [B]Execution Order[/B]: 5
        
        [B]Plugin PHP Code[/B]:
        
        if ($vbulletin->userinfo['usergroupid'] != '6')
        {
        $loggedin = '';
        }
        
        [B]Plugin is Active[/B]: Yes
        
        Then save it.
        
        This will hide the active users from anyone who is not an admin.
        
        As you will most likely hide it from most groups, just add AND..... to  allow another group to see the list, eg Super Mods:
        
        if ($vbulletin->userinfo['usergroupid'] != '6' AND  $vbulletin->userinfo['usergroupid'] != '5')
        {
        $loggedin = '';
        }
        See additional text in red. please listen to me carefully, this is what I have been asking the WHOLE time since my initial followup. i am looking for a way to hide statistics for specific usergroups and i dont know what hook location to place them in, not how to hide currently available users as DoE's first response was perfect for that, but now I want to know how to hide statistics. thank you.
        Last edited by qubed; Wed 3 Feb '10, 9:09am.

        Comment


        • #19
          bump.

          Comment


          • #20
            How can I apply this Plugin only to the /forum/online.php in the vB 4.x ?

            Comment

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