View Full Version : A Change with moderating forums
I have something on my forums called "Buy a Forum" in which any user can buy and mod a forum for a certain amount of points. However, whenever I make them mod of that forum, they show up as Moderators in the Forum Leaders page and bold (as in a part of the staff) in the Who's Online page. Is there anyway to prevent that? I already tried making a seperate user group, and it works somewhat because the User Mods show up in the Forum Leaders page under that group, but they also show up as moderators.
Can anyone help me find a way for the User Mods to NOT show up as moderators in the Forum Leaders page and Who's Online??
MGM out
Gary King
10-03-2003, 10:03 PM
You can use one of my hacks to stop them from showing up in the forum leaders page.
Gary King
10-03-2003, 10:08 PM
For who's online, open index.php, and find the two instances of } else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
Replace both with } else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin and $loggedin['usergroupid'] != XX) {Replace XX with the usergroupid of the usergroup.
kind of a problem with your second code:
} else if (($mod["$userid"] || ($loggedin['usergroupid']==5 || $loggedin['usergroupid']==7)) && $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
where exactly would i put != 7 :P
(btw, 7 = mod group)
can i just put:
if (usergroupid == 12);
$userid = $loggedin['userid'];
usergroup 12 = my User Mods
EDIT:
well, i think i got it working for Who's Online! however, I was wondering if u could help me add this to the "Number of Online Users Today" hack?
Here's the code I have:
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
eval("\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
} else if ((($mod["$userid"] || ($loggedin['usergroupid']==5 || $loggedin['usergroupid']==7)) && $highlightadmin) && $loggedin['usergroupid'] != 12) {
$username = "<b>$loggedin[username]</b>";
eval("\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
} else {
$username = $loggedin['username'];
eval("\$nu_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
}
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6 and $getperms['canseeinvisible']!=1) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
eval("\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
} else if ((($mod["$userid"] || ($loggedin['usergroupid']==5 || $loggedin['usergroupid']==7)) && $highlightadmin) && $loggedin['usergroupid'] != 12) {
$username = "<b>$loggedin[username]</b>";
eval("\$su_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
} else {
$username = $loggedin['username'];
eval("\$nu_r[] = \"".gettemplate('forumhome_loggedinuser')."\";");
}
}
where would i add it so that User Mods don't show up as bolded??
thanks for your help so far!
MGM out
Gary King
10-04-2003, 01:01 AM
Just modify this line:
} else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin and $todayuser['usergroupid'] != XX) {
Don't forget to replace XX.
wait, where exactly do i place that???
MGM out
Gary King
10-04-2003, 02:53 PM
Replace this:
} else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin) {
nevermind! it works now after i modded the crap outta it! thanks!!!
MGM out
Gary King
10-04-2003, 08:37 PM
np :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.