If you like the phpBB3 way administrators' and moderators' usernames are colored when viewing a post (viewtopic.php), you can get this same effect too in phpBB2 with this very simple MOD, the Aphrodite style, and the eXtreme Styles MOD. With this MOD, admins and mods names will be red and green respectively in the posts and other users' usernames will be the normal link color. This will only take about 2 minutes to install. Please be sure to keep a backup just in case.
Enjoy!
- Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_id,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
u.user_level,
#
#-----[ FIND ]------------------------------------------
#
'POSTER_NAME' => $poster,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
'USER_LEVEL' => $postrow[$i]['user_level'],
#
#-----[ OPEN ]------------------------------------------
#
templates/ca_aphrodite/xs/xs_topic.tpl
#
#-----[ FIND ]------------------------------------------
#
if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
$user_style = ( $postrow_item['USER_LEVEL'] == ADMIN ) ? ' style="color: #' . $theme['fontcolor3'] . '"' : ( ( $postrow_item['USER_LEVEL'] == MOD ) ? ' style="color: #' . $theme['fontcolor2'] . '"' : '' );
#
#-----[ FIND ]------------------------------------------
#
$replace = array($postrow_item['POSTER_NAME'], '<a class="post-name" ');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$replace = array($postrow_item['POSTER_NAME'], "<a class=\"post-name\"$user_style ");
BTW: if anyone needs it, I can try making instructions for the memberlist and view profile too.



