No announcement yet.

[RELEASE vb2.0] Show admin groups

  • Filter
  • Time
  • Show
Clear All
new posts

  • [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, 10:14pm.

  • #2
    *bows to Kier*


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

      Great hack BTW


      • #4
        Simply add this somewhere in the showmods_bit template:
        <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, 10:25pm.


        • #5
          that didn't work


          • #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, 11:21pm.


            • #7
              Great Hack

              No problems to install it


              • #8
                Will install it tonight !


                • #9
                  YOU DA MAN!!

                  Thanks for your help with this!
                  The Sisko


                  • #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


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


                      • #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


                        • #13


                          • #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.


                            • #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


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