Allow only Mods & Admins to see Memberlist???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zaeolos
    New Member
    • Jan 2003
    • 22

    Allow only Mods & Admins to see Memberlist???

    As it stands, the Memberlist can be either turned on or off. I need to allow the mods and admins access while denying access to all other groups. Is there a quick way to do this?

    Thanks,

    Zaeolos
  • Snowy
    Senior Member
    • Jul 2003
    • 263
    • 3.8.x

    #2
    set it in the user groups
    sigpic
    SocialSpace.co.uk

    Comment

    • Zaeolos
      New Member
      • Jan 2003
      • 22

      #3
      Originally posted by Snowy
      set it in the user groups
      You can set a group not to see "Member Info" but they can still view the "Memberlist" and that is what I want to deny the registered users. If I turn the "Memberlist " off then nobody can see it. Not even Admins.

      Comment

      • merk
        Senior Member
        • Jul 2001
        • 4149

        #4
        Delete the file?

        Comment

        • Tim Wheatley
          Senior Member
          • Jan 2002
          • 310
          • 3.0.1

          #5
          Put a conditional in the template like that if have mod/admin permission show it, if not show something else...

          Comment

          • DarkDelight.net
            Senior Member
            • Jul 2003
            • 1358
            • 3.0.3

            #6
            Originally posted by Tim Wheatley
            Put a conditional in the template like that if have mod/admin permission show it, if not show something else...
            In

            memberlist.php

            Under:

            // #######################################################################
            // ######################## START MAIN SCRIPT ############################
            // #######################################################################

            Add:


            if (!can_moderate(0, '', $bbuserinfo['userid']))
            {
            eval(print_standard_error('error_nomemberlist'));
            }
            Last edited by DarkDelight.net; Thu 25 Sep '03, 7:55am.
            Sig? What sig?

            Comment

            • Tim Wheatley
              Senior Member
              • Jan 2002
              • 310
              • 3.0.1

              #7
              Or that would work.

              Comment

              • toolmanwill
                New Member
                • Feb 2005
                • 8
                • 3.0.6

                #8
                Can someone tell me what to change to allow access by usergroup id rather than just if can moderate?

                Thanx in advance!

                Will

                Comment

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