[RELEASE vb2.0] Show admin groups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kier
    Former Lead Developer, vBulletin
    • Sep 2000
    • 8179

    [RELEASE vb2.0] Show admin groups

    Updated to Version 2.0 16-3-2001
    (v2 includes bug fixes and full avatar support)

    This is a complete rewrite of my super-moderators listing hack for Me2Be...



    This new version shows all members of the Administrators, Super-Moderators and Moderators groups. Note that moderators do not have to be placed in a new usergroup for this hack to work.

    Users have their online status and location displayed, along with a PM link. Moderators also have the forums they moderate displayed. There is an option in the script to enable avatar support.

    Installation is almost completely automatic, through an install script (supplied). Upload showmods.php to your forums directory, and install_showmods.php to your forums/admin folder.

    If you want to disable avatars, open the showmods.php script and set $showavatars to "no". (If you have disabled avatars in the control panel, they will not be shown anyway).

    Then run the install script (admin/install_showmods.php) each time you upgrade your board to a new version of vbulletin, in order to add the necessary templates to the master template set.

    You should run the install script if you are upgrading from the previous version too, it will perform the necessary steps to upgrade the global templates.

    You can then add a link to "showmods.php?s=$session[sessionhash]" to any of your other templates.
    Last edited by Kier; Thu 15 Mar '01, 9:14pm.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    *bows to Kier*

    Comment

    • Sarge
      Senior Member
      • Oct 2000
      • 312

      #3
      Ok if I want to include the moderaters avatar next to their name how would I do that?

      Great hack BTW

      Comment

      • Kier
        Former Lead Developer, vBulletin
        • Sep 2000
        • 8179

        #4
        Simply add this somewhere in the showmods_bit template:
        Code:
        <img src="avatar.php?s=$session[sessionhash]&userid=$user[userid]" border=0>


        [edit] - full avatar functionality is now included.
        Last edited by Kier; Thu 15 Mar '01, 9:25pm.

        Comment

        • Sarge
          Senior Member
          • Oct 2000
          • 312

          #5
          that didn't work

          Comment

          • Kier
            Former Lead Developer, vBulletin
            • Sep 2000
            • 8179

            #6
            That code will only work with custom avatars...

            I'll post a code snippet later for full avatar support, but now I gotta go to bed... PHP gets much more tricky to write after you've been up for 48 hours...
            Last edited by Kier; Wed 14 Mar '01, 10:21pm.

            Comment

            • EXCHANGE
              Senior Member
              • Feb 2001
              • 129

              #7
              Great Hack

              No problems to install it

              Comment

              • jojo85
                Senior Member
                • Jan 2001
                • 915

                #8
                Will install it tonight !

                Comment

                • The_Sisko
                  Senior Member
                  • Jun 2000
                  • 384

                  #9
                  YOU DA MAN!!

                  Thanks for your help with this!
                  The Sisko
                  SciFi-Forum.de

                  Comment

                  • pipi
                    Member
                    • Jan 2001
                    • 31

                    #10
                    i got problem is as below.
                    Fatal error: Call to unsupported or undefined function foreach() in /web1/users/909090/docs/forums/showmods.php on line 78

                    Comment

                    • chrispadfield
                      Senior Member
                      • Aug 2000
                      • 5366

                      #11
                      wow! another brilliant hack!
                      Christopher Padfield
                      Web Based Helpdesk
                      DeskPRO v3.0.3 Released - Download Demo Now!

                      Comment

                      • EXCHANGE
                        Senior Member
                        • Feb 2001
                        • 129

                        #12
                        Originally posted by Ryan Little
                        Forums that have administrative moderators are shown more than once under the moderators table. This could become very annoying if an administrator moderated more than one forum.

                        Is there any way to prevent this from happening? See attachment.
                        Got the same Problem

                        Comment

                        • John Harrison
                          Senior Member
                          • Oct 2000
                          • 1080

                          #13
                          cool

                          Comment

                          • Kier
                            Former Lead Developer, vBulletin
                            • Sep 2000
                            • 8179

                            #14
                            Originally posted by pipi
                            i got problem is as below.
                            Fatal error: Call to unsupported or undefined function foreach() in /web1/users/909090/docs/forums/showmods.php on line 78
                            How did you get hold of that version? The version downloadable above does not use the foreach() function at all.

                            Comment

                            • The_Sisko
                              Senior Member
                              • Jun 2000
                              • 384

                              #15
                              Got same prob with admin = mod and listing all forums x times.....

                              and would also like the avatar thing and the title + posts
                              The Sisko
                              SciFi-Forum.de

                              Comment

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