if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$src = IMAGES."avatars/".$data['user_avatar'];
} else {
$src = IMAGES."avatars/noavatar50.png";
}
echo "<td width='1%' class='".$row_color."' style='white-space:nowrap'><a href='".BASEDIR."profile.php?lookup=".$data."' class='profile-link flleft'><span class='user-avatar'><img class='avatar' width='30' src='".$src."' alt='".$src."' /></span></a><a href='".BASEDIR."profile.php?lookup=".$data."' class='profile-link'>".$data."</a>".profile_link($tdata['thread_author'], $tdata['user_author'], $tdata['status_author'])."</td>\n";
$result = dbquery(
"SELECT tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost, user_avatar,
tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_name,
tu.user_status
FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('tf.forum_access')." AND tt.thread_lastpost >= ".$timeframe." AND tt.thread_hidden='0'
ORDER BY tt.thread_lastpost DESC LIMIT 0,".$settings['numofthreads']
);
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$src = IMAGES."avatars/".$data['user_avatar'];
} else {
$src = IMAGES."avatars/noavatar50.png";
}
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' '/><span class='user-avatar'><img class='avatar' width='30' src='".$src."' alt='".$src."' title='".trimlink($data['user_name'],30)."' '/></span></a>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions