MyBB Community Forums

Full Version: Display moderators
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

How i can separate mods in the index with a <br /> instead of the comma? Confused
Open the file inc/functions_forumlist.php and find:
$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['uid'])."\">".htmlspecialchars_uni($moderator['username'])."</a>";
$comma = ', ';
Replace with:
$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['uid'])."\">".htmlspecialchars_uni($moderator['username'])."</a>";
$comma = '<br />';
thank you very much!
and.. how i can format the username of the mods?
Replace
$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['uid'])."\">".htmlspecialchars_uni($moderator['username'])."</a>";
with:
$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['uid'])."\">".format_name(htmlspecialchars_uni($moderator['username']), $moderator['usergroup'], $moderator['displaygroup'])."</a>";
thanks, thanks, thanks!!
It is useful information, it should be made a separate tutorial instead Smile