portal_body.tpl hat geschrieben:<!-- ##### BEST TOPICS START ##### -->
<!-- BEGIN switch_topposts_active -->
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" colspan="2" height="25"><span class="cattitle"><center><b>{IntroPortaltext16}:</b></center></span></td>
</tr>
<tr>
<td colspan="2" height="1" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td>
</tr>
<!-- END switch_topposts_active -->
<!-- BEGIN best_topics -->
<tr>
<td class="row1"> <span class="genmed"><a href="{best_topics.VIEWTOPIC}" class="genmed">{best_topics.TOPIC_TITLE}</a></span> </td>
<td align="center" nowrap="nowrap" class="row2"> <span class="genmed">{best_topics.REPLIES}</span> </td>
</tr>
<!-- END best_topics -->
<!-- BEGIN switch_topposts_active -->
</table>
<br>
<!-- END switch_topposts_active -->
<!-- ##### BEST TOPICS END ##### -->
portal.php hat geschrieben:// BEST TOPICS START
if( $introportalmod_config['topposts_active'] == "1" )
{
$beste_topics = $introportalmod_config['topposts_limit'];
$sql = "SELECT topic_id,topic_title,topic_replies
FROM " . TOPICS_TABLE . " t
LEFT JOIN " . FORUMS_TABLE . " f
ON t.forum_id=f.forum_id
WHERE f.auth_view < 2
ORDER BY topic_replies DESC
LIMIT $beste_topics";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online forums information', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$topic_id=$row['topic_id'];
if( $introportalmod_config['topposts_active'] == "1" )
{
$template->assign_block_vars("best_topics", array(
'TOPIC_TITLE' => $row['topic_title'],
'REPLIES' => $row['topic_replies'],
'VIEWTOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"))
);
}
}
$template->assign_block_vars('switch_topposts_active', array());
}
// BEST TOPICS END
ist doch korrekt so, oder? Hab da ja auch nix drin verändert..

Isch hab doch keene Ahnung
