if ($data['forum_lastpost'] == 0) {
echo $locale['405']."</td>\n</tr>\n";
} else {
echo showdate("forumdate", $data['forum_lastpost'])."<br />\n";
echo "<span class='small'>".$locale['406'].profile_link($data['forum_lastuser'], $data['user_name'], $data['user_status'])."</span></td>\n";
echo "</tr>\n";
}
}
} else {
echo "<tr>\n<td colspan='5' class='tbl1'>".$locale['407']."</td>\n</tr>\n";
}
//vBulletin Style Last Post Info Mod Begin
if ($data['forum_lastpost'] == 0) {
echo $locale['405']."</td>\n</tr>\n";
} else {
$threadData = dbarray ( dbquery ( "select * from " . $db_prefix . "threads t
left join " . $db_prefix . "posts p on p.post_id=t.thread_lastpostid
where t.thread_lastpost='" . $data ['forum_lastpost'] . "'" ) );
echo "<b><a href='viewthread.php?thread_id=".$threadData['thread_id']."' title= '".$threadData['thread_subject']."' style='text-decoration:none;' > ".trimlink($threadData['thread_subject'], 20)."</a></b> <a href='".FORUM."viewthread.php?thread_id=".$threadData['thread_id']."&pid=".$threadData['thread_lastpostid']."#post_".$threadData['thread_lastpostid']."'>";
if ($data['forum_lastpost'] > $lastvisited) {
if (iMEMBER && preg_match("({$forum_match}\.|{$forum_match}$)", $userdata['user_threads'])) {
$fim = "<img src='".THEME."/forum/lastpost.gif' alt='' title='Last message' style='border:0px;' />";
} else {
$fim = "<img src='".THEME."/forum/lastpostnew.gif' alt='' title='Last message' style='border:0px;' />";
}
} else {
$fim = "<img src='".THEME."/forum/lastpost.gif' alt='' title='Last message' style='border:0px;' />";
}
echo "$fim\n";
echo "</a><br />";
echo "<span class='small'>".$locale['406']."<a href='".BASEDIR."profile.php?lookup=".$data['forum_lastuser']."'>".$data['user_name']."</a></span>\n";
echo"<div align='left'>";
echo " <span class='small'>".showdate("forumdate", $data['forum_lastpost'])."</span></div>\n";
echo "</td></tr>\n";
}
}
} else {
echo "<tr>\n<td colspan='5' class='tbl1'>".$locale['407']."</td>\n</tr>\n";
}
//vBulletin Style Last Post Info Mod End
echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".showdate("forumdate", $tdata['thread_lastpost'])."<br />\n";
echo "<span class='small'>".$locale['406'].profile_link($tdata['thread_lastuser'], $tdata['user_lastuser'], $tdata['status_lastuser'])."</span></td>\n";
echo "</tr>\n";
//vBulletin Style Last Post Info Mod Begin
echo "<td width='2%' class='tbl1' style='white-space:nowrap'>".showdate("forumdate", $tdata['thread_lastpost'])."<br />\n";
echo "<span class='small'>".$locale['406'].profile_link($tdata['thread_lastuser'], $tdata['user_lastuser'], $tdata['status_lastuser'])." <a href='".FORUM."viewthread.php?thread_id=".$tdata['thread_id']."&pid=".$tdata['thread_lastpostid']."#post_".$tdata['thread_lastpostid']."'>\n";
if (iMEMBER) {
if ($tdata['thread_locked']) {
echo "".$locale['413']."";
} elseif ($tdata['thread_sticky'] == 1) {
if (($tdata['thread_lastpost'] > $lastvisited) && (preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads']))) {
$lastpost = "<img src='".THEME."/forum/lastpostnew.gif' alt='' title='Last message' style='border:0px;' />\n";
} else {
$lastpost = "<img src='".THEME."/forum/lastpost.gif' alt='' title='Last message' style='border:0px;' />\n";
}
echo "$lastpost";
} else {
if ($tdata['thread_lastpost'] > $lastvisited) {
if (preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads'])) {
$lastpost = "<img src='".THEME."/forum/lastpost.gif' alt='' title='Last message' style='border:0px;' />\n";
} else {
$lastpost = "<img src='".THEME."/forum/lastpostnew.gif' alt='' title='Last message' style='border:0px;' />\n";
}
}
echo "$lastpost";
}
} else {
echo "<img src='".THEME."/forum/lastpost.gif' alt='' title='Last message' style='border:0px;' />\n";
}
echo "</a></span></td>\n";
echo "</tr>\n";
//vBulletin Style Last Post Info Mod End
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions