Announcement

Collapse
No announcement yet.

[RELEASE vb2.0] Show admin groups

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    EXCHANGE
    Senior Member

  • EXCHANGE
    replied
    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

    Leave a comment:

  • chrispadfield
    Senior Member

  • chrispadfield
    replied
    wow! another brilliant hack!

    Leave a comment:


  • pipi
    replied
    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

    Leave a comment:

  • The_Sisko
    Senior Member

  • The_Sisko
    replied
    YOU DA MAN!!

    Thanks for your help with this!

    Leave a comment:

  • jojo85
    Senior Member

  • jojo85
    replied
    Will install it tonight !

    Leave a comment:

  • EXCHANGE
    Senior Member

  • EXCHANGE
    replied
    Great Hack

    No problems to install it

    Leave a comment:

  • Kier
    Former Lead Developer, vBulletin

  • Kier
    replied
    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...
    Kier
    Former Lead Developer, vBulletin
    Last edited by Kier; Wed 14 Mar '01, 11:21pm.

    Leave a comment:

  • Sarge
    Senior Member

  • Sarge
    replied
    that didn't work

    Leave a comment:

  • Kier
    Former Lead Developer, vBulletin

  • Kier
    replied
    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.
    Kier
    Former Lead Developer, vBulletin
    Last edited by Kier; Thu 15 Mar '01, 10:25pm.

    Leave a comment:

  • Sarge
    Senior Member

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

    Great hack BTW

    Leave a comment:

  • Jake Bunce
    Senior Member

  • Jake Bunce
    replied
    *bows to Kier*

    Leave a comment:

  • Kier
    Former Lead Developer, vBulletin

  • Kier
    started a topic [RELEASE vb2.0] Show admin groups

    [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.
    Kier
    Former Lead Developer, vBulletin
    Last edited by Kier; Thu 15 Mar '01, 10:14pm.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X