View Full Version : 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...
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.
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: <img src="avatar.php?s=$session[sessionhash]&userid=$user[userid]" border=0> :)
[edit] - full avatar functionality is now included.
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!
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
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.
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:
<td valign=bottom><smallfont COLOR="#afa3c5"><B>Moderator</B></smallfont>
Under it add:
<!--- Veiw Mod List --->
| <b><a href="showmods.php?s=$session[sessionhash]" target="_blank"><smallfont COLOR="#FFFFFF">View List</a></smallfont>
<!--- /Veiw Mod List --->
snyx
(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?
Originally posted by upgrader
I'm getting this error
Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 72
any ideas?
find: if ($modforums[$user[userid]] == "")
eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
else {
eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumsplit")."\";");
eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
}
try change it to: if ($modforums[$user[userid]] == "") {
eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
} else {
eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumsplit")."\";");
eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
}
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???
Originally posted by jojo85
nice :)
what is the adress of your forums kier??? My forums are not currently open to the public. I'll post an announcement when the site opens.
Originally posted by Kier
How did you get hold of that version? The version downloadable above does not use the foreach() function at all.
my version is vb2 b2 upgraded from vb114, is htat possible to solve it? thanks you offer a nice hack
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).
Originally posted by jojo85
ok hurry up open your forums :) Erm... no ;).
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...
Originally posted by Kier
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).
Erm... no ;).
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...
do we need remove old templates before install new version?
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.
Originally posted by Kier
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).
Erm... no ;).
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...
Works fine now :D:D
thank you
Got another error with the new version:
Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 103
Originally posted by Ryan Little
I know it'll be great, but what exactly will your new site feature? Is it a new version of Alternate Perspective 3D's site or a new site altogether? Newayz, I know all of us can't wait. This is all I am going to say on the matter for now... ;)
Worked like a charm. The avatar's are great
Ok!
Thx very much!!
This version create auto. the bbcodes need?
Originally posted by jojo85
Ok!
Thx very much!!
This version create auto. the bbcodes need? Just run the install script and follow the simple instructions. It's a very easy hack to install.
hehe :)
Are you now in the dev team?
Originally posted by jojo85
hehe :)
Are you now in the dev team? If I am, I haven't heard about it. Wouldn't my user title show vBulletin Developer if I was on the dev team?
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 :)
Warning: Variable passed to each() is not an array or object in /home/hi/public_html/forums/showmods.php on line 110
Originally posted by pipi
Warning: Variable passed to each() is not an array or object in /home/hi/public_html/forums/showmods.php on line 110 I can only think of two possible reasons why this might happen:
1) you have no moderators
2) you are using the version of PHP that Noah used when he was building the ark...
Parker Clack
04-08-2001, 10:14 AM
Kier:
I you use a custom title for your admins and moderators they will not show as online. Anyway to add this option to the query on the user table in the database so they show as online?
Parker
Parker Clack
04-08-2001, 10:42 AM
Kier:
Nevermind I just changed:
if ($user[sessionuserid]>0 and $user[lastactivity]>$datecut) eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";");
to
if ($user[sessionuserid]>0 and $user[lastactivity]>$datecut and $user[customtitle]>0) eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";");
the_sisko
04-08-2001, 03:15 PM
After I upgraded to beta 4 it only shows the topics of the page but no admin, mods,..???
http://www.studenten-city.de/stf/showmods.php4
Great lill hack :)
Thanx for the hard work:)
TechTalk
04-14-2001, 09:12 PM
Kier please tell me since you are a developer that all of this will be added to vb 2.1?? I think this is a great feature and gives the users a little more info which is always good.
~Chris
zothip
04-15-2001, 06:33 PM
Parse error: parse error in /home/zothip2/squadpage-www/forums/showmods.php on line 30
:)
JJR512
04-17-2001, 04:16 AM
This hack is pretty neat. I just have two questions.
1. Can you please show me how to add an email button link below the PM button link?
2. Can you fix, in a future version of this hack, the appearance so that the columns line up a bit neater?
Thanks!
floleb7
04-21-2001, 11:37 AM
Originally posted by Zothip
Parse error: parse error in /home/zothip2/squadpage-www/forums/showmods.php on line 30
:)
same problem
Craig Antill
04-25-2001, 05:47 PM
Hidden forums are showing up in the list - any way to hide them ??
inetd
04-25-2001, 06:53 PM
Add please to this VB hack possibility of sending identical PM at once all Moderators/SuperModerators/Administrator
Craig Antill
04-26-2001, 04:56 PM
Any thoughts on the hidden forums thing ? I've agreed to put a list of admins and moderators together for our site, and really want to use this hack, but i've got to do it soon, so I might end up doing it by hand! :( Of course, if it's not possible to amend this hack to suit, i'll start working now... :)
Susan
04-26-2001, 05:34 PM
Craig, you could always just take the forums out of the templates. I know that's not ideal.... Seems that some of the "include" code that's used for pulling posts on a main page has something that checks the forums for specific forums...probably could be modified to work with this, but I'm not even to the stage in PHP where I could do that. Maybe someone else could.
Sorry I'm of no help. ;)
Craig Antill
04-26-2001, 05:37 PM
Yeah, I thought of that, but one of our hidden forums has a moderator who does not moderate any of the public forums... would cause huge confusion! :) Thanks anyway :)
Lorina
04-26-2001, 05:54 PM
Craig,
This might be a bit too much of a pain, but what if you have that moderator in his own usergroup (with all the mod privledges), so he wouldn't show in the listing?
ztsky
04-27-2001, 07:13 AM
\--------------------------------------------------------------------------------
Originally posted by Zothip
Parse error: parse error in /home/zothip2/squadpage-www/forums/showmods.php on line 30
--------------------------------------------------------------------------------
same problem
help!!
zothip
04-27-2001, 01:12 PM
It must be the version of php we have...
Craig Antill
04-27-2001, 05:37 PM
Originally posted by Lorina
Craig,
This might be a bit too much of a pain, but what if you have that moderator in his own usergroup (with all the mod privledges), so he wouldn't show in the listing?
Sadly not... good idea, tried it... but it doesn't work - I don't think this script uses the usergroup structure to determine who's a moderator :(
Any other thoughts, guys ?? :)
ff92k
04-27-2001, 07:18 PM
Works like a dream...nice 1
Joshs
04-28-2001, 06:45 PM
First, is there any way to add email under the pm button? Secondly the Location field is messed up if a user doesn't have a Location... Shouldnt there be a divider between it and the contact info (make a name for that last field)...??? Lastly, shoulnt there also be a divider between online and username? And call the first field online? Just thought it would be better that way! Thanks!
Blue2000
04-29-2001, 11:32 PM
this is a nice hack mate, but i have a problem with it
once you have made somone a mod and then removed there mod and set the permission back to a standed account, they still show on the list.
It maybe just me but as anyone else had this ?
Joshs
04-29-2001, 11:48 PM
Originally posted by Joshs
First, is there any way to add email under the pm button? Secondly the Location field is messed up if a user doesn't have a Location... Shouldnt there be a divider between it and the contact info (make a name for that last field)...??? Lastly, shoulnt there also be a divider between online and username? And call the first field online? Just thought it would be better that way! Thanks!
Yeah, is there a fix for that...??? Also can someone take a look at my above post.
ztsky
05-04-2001, 02:33 AM
Originally posted by ztsky
\--------------------------------------------------------------------------------
Originally posted by Zothip
Parse error: parse error in /home/zothip2/squadpage-www/forums/showmods.php on line 30
--------------------------------------------------------------------------------
same problem
help!!
help!!!!!!
can Anyone help me ?
Martz
05-07-2001, 10:12 AM
Works great! Thanks a lot. I'd like to change part of it slightly, instead of Super Moderators I would like to list all the members in another usergroup.
I've managed to do this, I looked up the usergroup ID of the group I want to display, and used it in place of Super Moderators. However I still get the supermoderators header title for the table . I've read through the code and concluded that it must be bringing the title through in a global variable? (please note my inability to unerstand php - but my ability to learn? :))
I'd also like to be able to show multiple user_id's in where the supermoderators list is - could anyone point me in the right direction please? :)
Thanks
ztsky
05-07-2001, 04:02 PM
Originally posted by ztsky
help!!!!!!
can Anyone help me ?
....................can Anyone help me ?
Mohamed
05-08-2001, 11:16 AM
hi boys I have in this hack in :
Warning: Variable passed to each() is not an array or object
vb/showmods.php on line 110
can any one help me ....!!!!!!! :confused: :(
Martz
05-08-2001, 03:55 PM
Originally posted by Martz
Works great! Thanks a lot. I'd like to change part of it slightly, instead of Super Moderators I would like to list all the members in another usergroup.
I'd also like to be able to show multiple user_id's in where the supermoderators list is - could anyone point me in the right direction please? :)
Sorry I can't answer any of the other guys questions, but I found a "solution" to my own problems, so I thought I may as well be able to share them. Anything which I say which is *obvious* please don't flame me for, I'm just starting out as I am sure many other people may be. :)
The install script included has all the data regarding layout, table title (usergroup titles) etc. This can be edited to change the names, however I wans't sure of the routine to actually grab this using the userid from the mySQL table.
Secondly, including other groups in the listings can be done by editing the showmods source as follows:
At the top where the usergroups are defined, such as:
$supermod_usergroup = 5;
add as many new groups as you want, or change the current group value
$myother_usergroup = 10;
$alsomyother_usergroup = 9;
Next find the "// get administrators & super moderators *************************" section of code.
where:
WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup)
change to:
WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup,$myother_u sergroup,$alsomyother_usergroup)
Next, further down find:
while ($user = $DB_site->fetch_array($users)) {
if ($user[usergroupid] == $admin_usergroup) {
if (($admincount++ % 2) == 0) $backcolor = "#EFEFEF";
else $backcolor = "#DEDEDE";
douserinfo();
eval("\$adminbits .= \"".gettemplate("showmods_adminbit")."\";");
}
else {
if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
else $backcolor = "#DEDEDE";
douserinfo();
eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
}
}
and change to:
while ($user = $DB_site->fetch_array($users)) {
if ($user[usergroupid] == $admin_usergroup) {
if (($admincount++ % 2) == 0) $backcolor = "#EFEFEF";
else $backcolor = "#DEDEDE";
douserinfo();
eval("\$adminbits .= \"".gettemplate("showmods_adminbit")."\";");
}
else if ($user[usergroupid] == $myother_usergroup) {
if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
else $backcolor = "#DEDEDE";
douserinfo();
eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
}
else if ($user[usergroupid] == $alsomyother_usergroup) {
if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
else $backcolor = "#DEDEDE";
douserinfo();
eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
}
else {
if (($smodcount++ % 2) == 0) $backcolor = "#EFEFEF";
else $backcolor = "#DEDEDE";
douserinfo();
eval("\$supermodbits .= \"".gettemplate("showmods_adminbit")."\";");
}
}
It works for me anyway! Hope this is of some help to someone, and not completely lame :)
Mohamed
05-10-2001, 05:24 PM
no body can't help me
so bad
:(
maverick1236
05-11-2001, 02:03 AM
sorry-im a newbie
everythings in the right place-but how EXACTLY do i link to that php file?
Martz
05-11-2001, 09:04 AM
Well, I created a new button called top_links.gif to go along with usercp, register, calendar etc etc
Edit your header template and find:
<!-- toplinks -->
<a href="usercp.php?s=$session[sessionhash]"><img width="67" height="25" src="images/top_profile.gif" alt="Edit your profile" border="0"></a
><a href="register.php?s=$session[sessionhash]&action=signup"><img width="67" height="25" src="images/top_register.gif" alt="Registration is free!" border="0"></a
><a href="calendar.php?s=$session[sessionhash]"><img width="67" height="25" src="images/top_calendar.gif" alt="Calendar" border="0"></a
><a href="memberlist.php?s=$session[sessionhash]"><img width="67" height="25" src="images/top_members.gif" alt="Find other members" border="0"></a
><a href="misc.php?s=$session[sessionhash]&action=faq"><img width="67" height="25" src="images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a
><a href="search.php?s=$session[sessionhash]"><img width="67" height="25" src="images/top_search.gif" alt="Search" border="0"></a
><a href="index.php?s=$session[sessionhash]"><img width="67" height="25" src="images/top_home.gif" alt="Home" border="0"></a
> <!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img width="67" height="25" src="images/top_logout.gif" alt="Logout" border="0"></a> -->
Add the following at the end to have it as the last button
<a href="links.php?s=$session[sessionhash]"><img width="67" height="25" src="images/top_links.gif" alt="Links Directory" border="0"></a>
Hope this works for you :)
Joshs
05-13-2001, 12:28 PM
First... is there any way to add email under the pm button? Secondly the Location field is messed up if a user doesn't have a Location... Shouldnt there be a divider between it and the contact info (make a name for that last field)...??? Lastly, shoulnt there also be a divider between online and username? And call the first field online? Just thought it would be better that way! Thanks!
Second... Since upgrading too RC3 I get an error in CGI application. Can someone please help me fix this?
Joshs
05-13-2001, 12:33 PM
Okay, I forgot to put the php file back, but now I am getting blank pages...
Dontom
05-14-2001, 06:31 PM
after upgrading to rc 3 showmods stopped working (groups are empty..)-
any idea why??
http://www.mtb-news.de/forum/showmods.php
Thanks
Tom
Martz
05-16-2001, 07:47 AM
Dontom - this is just a guess, but try and check in phpAdmin os similar what the values of your groupid's are - and make sure they are the same as the ones declared at the start of the script.
Joshs
05-16-2001, 11:22 AM
Anyone have any idea why I am getting a blank page?
Christian
05-16-2001, 08:49 PM
Don't forget that you have to run the install script again after you an upgrade!
Dontom
05-17-2001, 08:30 PM
Originally posted by Christian
Don't forget that you have to run the install script again after you an upgrade!
Dankesch?n!!
That was the solution!!
:D
inetd
05-21-2001, 08:33 PM
Make an opportunity of sending PM at once all Adminstators and/or Moderators and/or Super Moderators. How it is made in buddy list. :cool:
Dontom
05-21-2001, 08:40 PM
Don't forget that you have to run the install script again after you run an upgrade!
(install_showmods.php)
Joshs
05-21-2001, 08:53 PM
First... is there any way to add email under the pm button? Secondly the Location field is messed up if a user doesn't have a Location... Shouldnt there be a divider between it and the contact info (make a name for that last field)...??? Lastly, shoulnt there also be a divider between online and username? And call the first field online? Just thought it would be better that way! Thanks!
brady
05-21-2001, 10:06 PM
THANKS!
worked like a charm ;) at consoleboards.com
keep up the amazing work
Rogue
05-26-2001, 09:41 PM
Great hack!
One question though. If one of your super mods have a forum assigned to him he shows up in both the super mod list and the "regular" mod list. Is there a way to exclude him from the "regular" mod list?
scopeman
05-27-2001, 03:42 AM
I have this problem, please help!!!
Warning:
Variable passed to each() is not an array or object in /.........../..........showmods.php on line 110
thx
ThomasP
06-03-2001, 11:50 AM
Same error here:
Parse error: parse error in /home/usr/(...)/forum/showmods.php on line 31
Am using php3...
Any solution pleeaase? :o
-Tom
DEMOLiTiON
06-03-2001, 07:06 PM
Originally posted by upgrader
Got another error with the new version:
Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 103 me 2 :(
zarkov
06-04-2001, 08:58 AM
Kier, Well done this is a great hack, installed and working like a charm in less than 2 mins.
Cheers :)
ThomasP
06-09-2001, 05:55 PM
Please Kier,
don't let us parse-erroneous people down :(
Quite a few people in this thread -including me- would love to integrate your hack, but have those nasty parse errors.
It may has something to do with using PHP3 which may be outdated, but the only option for us - at least me.
So, please state if there's any chance to get it running under PHP3 or ...
Thanks,
-Tom
grant
06-10-2001, 10:58 PM
Warning: Variable passed to each() is not an array or object in c:\apache\htdocs\carlingfxp\showmods.php on line 110
sigh :)
not havin a good day thats usin latest php + apache on raq3.
corrected the error after a lil fiddlin thou :)
Nocturnal
06-24-2001, 07:48 PM
How would I edit this to say include one of my own user groups ? For Example I have a group called Mentors? how would i edit it to display this as well ?
rmusic
07-12-2001, 09:41 AM
im going to add my line 110 error :)
Warning: Variable passed to each() is not an array or object in /home/sites/site60/web/forums/showmods.php on line 110
i like this hack , except for that error that shows at the top of the page
rmusic
07-12-2001, 09:59 AM
ok i seen in an erlier post that if you have no moderators that you will get the 110 error so i figured that
now how can i get the tables to be wider than they are
http://www.r-music.net/forums/showmods.php
Marty
07-12-2001, 10:00 PM
test this :
search:
while(list($user) = each($moderator)) {
if (($modcount++ % 2) == 0) $backcolor = "{secondaltcolor}";
else $backcolor = "{firstaltcolor}";
$forumbits = $modforums[$user[userid]];
douserinfo();
eval("\$moderatorbits .= \"".gettemplate("showmods_bit")."\";");
}
replays with this:
if ($moderator != "") {
while(list($user) = each($moderator)) {
if (($modcount++ % 2) == 0) $backcolor = "{secondaltcolor}";
else $backcolor = "{firstaltcolor}";
$forumbits = $modforums[$user[userid]];
douserinfo();
eval("\$moderatorbits .= \"".gettemplate("showmods_bit")."\";");
}
}
DarkReaper
07-17-2001, 10:44 PM
Hidden forums are shown! How can it be made so it doesn't show the hidden forums, and if a moderator is only a moderator in hidden forums, they aren't shown at all??
Kengan
07-19-2001, 04:11 AM
Originally posted by Kier
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.
Good Hack ! Thanks !
:rolleyes:
ThomasP
07-28-2001, 10:58 PM
Originally posted by DarkReaper
Hidden forums are shown! How can it be made so it doesn't show the hidden forums, and if a moderator is only a moderator in hidden forums, they aren't shown at all??
Same over here, how to not show hidden forums?
Apart of that: Great hack that really rocks!
Especially the install func. is amazing.
thx,
-Tom
Got the hack to work, but when i click on the link on the very right that says click here to send PM, it brings up an error page. Also it doesnt seem like any of the graphics are working in my showmods panel.....the image can be found here (http://www.anabolic-advantage.com/images/showmods.jpg)
ThomasP
07-29-2001, 08:57 AM
[GB: please take the pic off or make it smaller, 1440055 bytes is way too big]
thanks :)
Had problems loading this thread on ISDN...
Tom
JJR512
08-06-2001, 01:00 AM
I'm still wondering how to add an email link. Actually now I'd like to add an email link, homepage link, findposts link, and also want to show the join date and post count. Yes: I'm trying to make it look very similar to the standard Memberlist.
I've got the formatting all worked out; that's a piece of cake. But I can't figure out how to actually get the guts in there.
Look: http://www.jjr512.com/forums/showmods.php?s=
great hack Kier .....
i wonder can anybody tell the way of adding custom user groups ... I noticed that Martz did it ...but the problem with his modification was .... the custom user groups adds up to the super moderator table which is not good
I hope somebody will tell me how to have the custom user group to a different table
Kengan
08-13-2001, 11:18 PM
Good Hack !!
Each time upgrade the Vb ! I need to reinstall showmod again !!
any idea ?
Panja
08-23-2001, 11:42 AM
tnx alot
working excellent
SirSteve
08-26-2001, 01:43 PM
Using 2.0.3. Worked fine before I added moderators and now we get these errors:
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 19
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 45
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 19
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 45
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 19
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 45
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 19
Warning: Cannot use a scalar value as an array in /forums/showmods.php on line 45
Help!
Does this hack work for 2.0.3 and is the file updated and complete?
DarkReaper
08-26-2001, 04:17 PM
Hidden forums are shown...shouldn't be....
almighty one
09-05-2001, 03:23 AM
well my problem is i make people moderators but they dont show on the list as mod? is there soemthing in here i need to edit? i would really like to use this hack i have noticred in the code it has about
while ($user = $DB_site->fetch_array($users)) {
$moderator[$user[userid]] = $user;
if ($modforums[$user[userid]] == "")
should the userid have a number for the mod like 5 in there or no? i dont know just guessing well please let me know how to fix this prob mine is the 110 error but if i ant gte it to list my mod then i cant fix it heh
almighty one
09-05-2001, 03:36 AM
ok i have noticed nowhere in this thing does it call for a mod deal it only has admin and super mods maybe ya could add the moderators to it and fix this 110 line error i tried but i know nothing of php thanx for fixin it in advance
DarkReaper
09-05-2001, 10:40 PM
Originally posted by DarkReaper
Hidden forums are shown! How can it be made so it doesn't show the hidden forums, and if a moderator is only a moderator in hidden forums, they aren't shown at all??
...
squawell
09-06-2001, 12:31 AM
CANN'T INSTALL~~~WHY??
SOMEBODY TELL ME!!
What happened to the demo pic?
Strife
09-06-2001, 07:10 PM
I installed it on my forums, but the avatars won't change even when I it reload on the page. :\ Could anyone help me out?
http://130.49.87.53/forum/showmods.php?s=
Goddess Washu
09-06-2001, 09:02 PM
Another thing is this hack doesn't hide forums (and consequently some moderators) of hidden forums. Hopefully that is something Kier can add. I just don't have the time to write that much code. (Yeah I know it's not much, but I am really busy lately). Thanks for all the help.
squawell
09-11-2001, 05:27 AM
Originally posted by pipi
Warning: Variable passed to each() is not an array or object in /home/hi/public_html/forums/showmods.php on line 110
sorry!!the problem clear!!
squawell
09-11-2001, 06:07 AM
another problem need someone help me~~~
Warning: Cannot use a scalar value as an array in /showmods.php on line 19
Warning: Cannot use a scalar value as an array in /showmods.php on line 45
Warning: Cannot use a scalar value as an array in /showmods.php on line 19
Warning: Cannot use a scalar value as an array in /showmods.php on line 45
Warning: Cannot use a scalar value as an array in /showmods.php on line 19
Warning: Cannot use a scalar value as an array in /showmods.php on line 45
Warning: Cannot use a scalar value as an array in /showmods.php on line 19
Warning: Cannot use a scalar value as an array in /showmods.php on line 45
what's wrong??
Thanks a lot ... works fine !
_v7_
numerodix
10-05-2001, 12:10 PM
Ok, suggestion here.
The mod hack shows mods based on their forums. How about changing it so that it shows all mods, regardless whether they have a forum or not?
Also, how do I change the hack so that forums are also displayed for the admins and supermods?
DarkReaper
10-05-2001, 06:42 PM
Originally posted by DarkReaper...In July
Hidden forums are shown! How can it be made so it doesn't show the hidden forums, and if a moderator is only a moderator in hidden forums, they aren't shown at all??
.....
dbdbdbdb
11-11-2001, 09:13 AM
Hi!
I installed the hack some days ago and everything worked fine. But at a given time the display of the team wasn't possible anymore.
It is so strange: in index.php all the moderators are shown correctly, but in showmods.php only the template is displayed.
My thought: Database could be corrupt. I didn't find any error in the table "moderator"...
Only thing that could cause the error: I added about 200 invisible forums with no moderators. Some of them are in fifth generation... Is the forumnumber a known problem to vbulletin?
I appreciate any ideas!
Thanks!
Madison
11-20-2001, 06:18 AM
Thanx a lot! Great hack!
VolsReport
12-04-2001, 08:54 PM
Where in da template do u add this ? "showmods.php?s=$session[sessionhash]" ?
VolsReport
12-04-2001, 10:06 PM
Can Somebody Post Da Instructions right here for me?
VolsReport
12-05-2001, 02:05 AM
Anybody?
Dark Blaze
12-05-2001, 03:25 AM
Great hack, good job Kier :)
Btw, I have a small request to make... Could you make the script so that you can have a second link to "Forum Leaders" which can be modified without the need of modifying the script, so that you can show another group of members?
Currently, you have it showing Admins, Super Mods, Mods. If it's not possible to have it show one or more groups extra, how could it be to create another "Forum Leaders" for another group?
Thank you for your time,
VolsReport
12-05-2001, 09:11 PM
Originally posted by VolsReport
Can Somebody Post Da Instructions right here for me?
Comin anybody?
Dark Blaze
12-06-2001, 03:46 AM
Originally posted by VolsReport
Comin anybody?
All the instructions are located in an attachment located in this thread which is first post of thread. To view the first post, I have posted you a link for ithere (https://vborg.vbsupport.ru/showthread.php?postid=77502#post77502).
You may only view the contents of the attachment if you are a licensed member and download it, otherwise you cannot.
This is done, so that if you are a pirate, you cannot download and use files created only for licensed members.
VolsReport
12-06-2001, 09:12 PM
Ight thanxx..I am a licensed member...
Dark Blaze
12-07-2001, 06:31 PM
Originally posted by VolsReport
Ight thanxx..I am a licensed member...
you're welcome :)
Psychdrone
12-22-2001, 05:42 AM
Well I am a paying customer
and Well how do I make it so that I could add another usergroup to there
I have created another user group and would wish for it to bee seen there?
I am sure this is not hard
could some please help me?
Arathorn
01-08-2002, 01:30 PM
Originally posted by almighty one
ok i have noticed nowhere in this thing does it call for a mod deal it only has admin and super mods maybe ya could add the moderators to it and fix this 110 line error i tried but i know nothing of php thanx for fixin it in advance
The 110 error only occurs when you have no mods. Mods must be attached to forums for it to display.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.