![]() |
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... http://kier.3dfrontier.com/vbhacks/showmods_v2.gif 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. |
*bows to Kier*
|
Ok if I want to include the moderaters avatar next to their name how would I do that?
Great hack BTW |
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. |
that didn't work :(
|
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... ;) |
No problems to install it
|
Will install it tonight ! :)
|
YOU DA MAN!!
Thanks for your help with this! |
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 |
wow! another brilliant hack!
|
Quote:
|
cool :D
|
Quote:
|
Got same prob with admin = mod and listing all forums x times.....
and would also like the avatar thing and the title + posts :D |
Just incase anyone wants it, I took 2 mins and make a View List link next to my Moderator column. It underlines on mouseover like the categories.
Open FORUMHOME Template. Find: PHP Code:
PHP Code:
(i just wanna help) |
I'm getting this error
Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 72 any ideas? |
Quote:
Code:
if ($modforums[$user[userid]] == "") Code:
if ($modforums[$user[userid]] == "") { |
Not putting the brackets around a one line if/else is valid. I would guess (without looking at the code) that your problem is that you need to change eval("$modforums to eval("\$modforums
|
<font color="red">DO NOT</font> copy the code in The Sisko's post above.
The vB PHP parsing feature has a problem with some escaped characters, so if you put \$ into a [ PHP ] block, it will be printed out as $. The code in showmods.php already has those $ symbols escaped. [edit] - now that The Sisko has changed hos post to use [ code ] tags instead of [ php ] tags, go ahead and try the modification if you like... although I can't see that it would make a difference, as leaving out the braces for a single statement in a loop is perfectly legal syntax in PHP |
Didn't know that the: The vB PHP parsing funktion
has an error...sorry for that! |
Well sisco's code change actually cured my problem
|
nice :)
what is the adress of your forums kier??? |
Quote:
|
Quote:
|
Hey kier that was an excellent hack...
YOU simply ROCK |
I just fixed it...
I can't believe how stupid the problem was...:rolleyes: the reason I couldn't reproduce the error on my board was because I was using a completely different version of the code. Somehow I managed to zip up an old version of the code for the attachment. I'm just adding the requested avatar functionality, and I'll upload the new version. ::hides face in shame:: ;) |
ok hurry up open your forums :)
|
Updated - check the first post in this thread
The new version fixes the administrative-moderator bug, and adds full avatar support (can be turned off easily if you don't want it). Quote:
My current hosting arrangement is about to go belly-up, and I'm trying to raise the cash to organise a new server... which is not easy for a site as large and complex as that which I've built... |
Quote:
|
The install script will update all the global templates.
If you have customized any templates, you should delete showmods_pm, as it's no longer used, and then add $user[avatar] somewhere in showmods_bit and showmods_adminbit. |
Quote:
thank you |
Got another error with the new version:
Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 103 |
Quote:
|
Worked like a charm. The avatar's are great
|
Ok!
Thx very much!! This version create auto. the bbcodes need? |
Quote:
|
hehe :)
Are you now in the dev team? |
Quote:
|
Bah, If I keep installing Kier hacks at this rate I will have almost as much of your coding as vB code. Another great hack Kier :)
|
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|