
03-23-2005, 08:33 PM
|
|
|
Join Date: Dec 2004
Location: CT
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Logik
Look for:
Code:
// get permissions to view forumhome
if (!($permissions['forumpermissions'] & CANVIEW))
{
print_no_permission();
}
And Below it add:
Code:
// 3 Newest Battles
$logik = $DB_site->query("SELECT replycount,title,threadid,lastpost,postusername,lastposter,views FROM thread WHERE forumid='X' ORDER BY lastpost DESC LIMIT 3");
while ($logiktop = mysql_fetch_array($logik)):
++$logiktopnbsp;
$logikthread .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$logiktop[threadid]>$logiktop[title]</a> <a href=showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$logiktop[threadid]&goto=lastpost><font size=1><b>[View Unread]</b></font></a><br>";
endwhile;
change X to the forum number
And then in your ForumHome template look for:
Now after that, add this:
Code:
<br>
<if condition="$bbuserinfo['userid']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" width="100%" valign="top">
<normalfont><b>Newest 3 Battles</b></normalfont></td>
</tr>
<tr><td>
$logikthread</td>
</tr>
</table>
</if>
<br>
Any problems, let me know.
|
i did everything and added ranks and it does not work
|