Hya readerz here!
Bha! my morning useless feedback...
Fine stuff to navigate faster discover members reading posts (for nubees onto teh board)
###################################
## MOD Title: Direct user link
## MOD Author: Niels < ncr@db9.dk > (Niels Chr. R?d) http://mods.db9.dk
## MOD Description: Makes the users name as a link when viewing
## topic's - that whay more intuitive to get users
## profile. If the viewing user have admin rigths
## then the link is to the administration profile
## MOD Version: 1.0.6
## MOD Compatibility: 2.0.18 (&older version)
###################################
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
$sql = "SELECT u.username,
FROM " . POSTS_TABLE . "
WHERE p.topic_id
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, u.user_allowsmile
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, u.user_level
#
#-----[ FIND ]------------------------------------------------
#
$template->assign_block_vars('postrow', array(
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// Start add - Direct user link MOD
switch ($postrow[$i]['user_level'])
{
case ADMIN :
$poster = "<b>$poster</b>";
$poster_style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
break;
case MOD :
$poster = "<b>$poster</b>";
$poster_style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
break;
default : $poster_style_color = '';
}
// End add - Direct user link MOD
#
#-----[ FIND ]------------------------------------------------
#
'U_MINI_POST' =>
#
#-----[ AFTER, ADD ]------------------------------------------
# ONLY !!! For users who have phpBB 2.0.7 or a older version.
#
// Start add - Direct user link MOD
'U_VIEW_POSTER_PROFILE' => ($userdata['user_level'] != ADMIN)? append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $poster_id) : append_sid("admin/admin_users.$phpEx?mode=edit&u=" . $poster_id) ,
'POSTER_STYLE' => $poster_style_color,
// End add - Direct user link MOD
#
#-----[ AFTER, ADD ]------------------------------------------
# ONLY !!! For users who have phpBB 2.0.8 or a new version.
#
// Start add - Direct user link MOD
'U_VIEW_POSTER_PROFILE' => ($userdata['user_level'] != ADMIN)? append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $poster_id) : append_sid("admin/admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $poster_id . "&sid=" . $userdata['session_id'] ) ,
'POSTER_STYLE' => $poster_style_color,
// End add - Direct user link MOD
#
#-----[ OPEN ]------------------------------------------------
#
# Note -- Make sure to edit this file for every theme your board uses
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<b>{postrow.POSTER_NAME}</b>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
<b>{postrow.POSTER_NAME}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
<a href="{postrow.U_VIEW_POSTER_PROFILE}" class="name" {postrow.POSTER_STYLE}>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
{postrow.POSTER_NAME}</b>
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
</a>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM