2011-11-04, 02:41 AM
This tutorial will explain you how to add a Moderator Column on Index, Forumdisplay pages.
First of all, make sure that "display the forum moderators on index" setting is set to ON. You can find this setting in: ACP > Configurations > Settings > Forum Home Options > Forums' Moderator Listing > ON.
Go to: ACP > Templates > Your theme's templates > Forumbit Templates > forumbit_depth1_cat > and find;
Within the same template, find;
Save template.
Now Open "forumbit_depth2_forum" template, and find the following and Remove;
Now within the same template, Find
Save template.
Now Open "forumbit_moderators" template and find the following and Remove;
Now Open "forumdisplay_subforums" template and find;
Within the same template, find;
At this point it'll be shown like this;
[attachment=24594]
You can see that the usernames on moderator column is plane, no formatting, so here I'll tell you how to format these moderator usernames.
Open ./inc/functions_forumlist.php and find;
Now it'll show like this;
[attachment=24595]
First of all, make sure that "display the forum moderators on index" setting is set to ON. You can find this setting in: ACP > Configurations > Settings > Forum Home Options > Forums' Moderator Listing > ON.
Go to: ACP > Templates > Your theme's templates > Forumbit Templates > forumbit_depth1_cat > and find;
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
and Add the following code just After that;<td class="tcat" width="85" align="center"><span class="smalltext"><strong>{$lang->forumbit_moderated_by}</strong></span></td>
Within the same template, find;
<td class="thead" colspan="5">
and Change 5 to 6 like that;<td class="thead" colspan="6">
Save template.
Now Open "forumbit_depth2_forum" template, and find the following and Remove;
{$modlist}
Now within the same template, Find
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
and Add the following code just After that;<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$modlist}</td>
Save template.
Now Open "forumbit_moderators" template and find the following and Remove;
<br />{$lang->forumbit_moderated_by}
Now Open "forumdisplay_subforums" template and find;
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
and Add the following code just After that;<td class="tcat" width="7%" align="center"><span class="smalltext"><strong>{$lang->forumbit_moderated_by}</strong></span></td>
Within the same template, find;
<td class="thead" colspan="5"
and Change 5 to 6 like this;<td class="thead" colspan="6"
At this point it'll be shown like this;
[attachment=24594]
You can see that the usernames on moderator column is plane, no formatting, so here I'll tell you how to format these moderator usernames.
Open ./inc/functions_forumlist.php and find;
$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['id'])."\">".htmlspecialchars_uni($moderator['username'])."</a>";
and Change it into;$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['id'])."\">".format_name(htmlspecialchars_uni($moderator['username']),$moderator['usergroup'],$moderator['displaygroup'])."</a>";
Now it'll show like this;
[attachment=24595]