PDA

View Full Version : I have an extra coma in moderators box


Goat Boy
07-12-2003, 03:43 AM
I have installed a few hacks and all the sudden I noticed an extra coma at he beginning of the moderators, I have gone through some of the templates and php file but cannot seem to find were it is, here is a pic.

Can anyone help.

Thanks

Gary King
07-12-2003, 02:24 PM
Open forum/index.php and find:
reset($imodcache["$mval1"]);

Below it, it should be:
while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
if ( !isset($forum['moderators']) ) {
eval("\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
} else {
eval("\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
}
}
}

If it isn't, then try replacing it with this. You probably made some modifications to this that made it work like how it is right now.

Goat Boy
07-12-2003, 03:01 PM
Thanks for the reply but that is what I have there, I even copied and pasted what you had just incase, must be something else somewhere, I thought it might be in admin/forums.php.