Hehe, die Stellen waren schon richtig, nur muss bissle mehr geändert werden!
SUCHE:
Code: Alles auswählen
// 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
ERSETZE MIT:
Code: Alles auswählen
// 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" )
{
$topic_url_best_topics=append_sid('viewtopic.' . $phpEx . '?t=' . $topic_id, '', $row['topic_title']);
$template->assign_block_vars("best_topics", array(
'TOPIC_TITLE' => $row['topic_title'],
'REPLIES' => $row['topic_replies'],
'VIEWTOPIC' => $topic_url_best_topics)
);
}
}
$template->assign_block_vars('switch_topposts_active', array());
}
// BEST TOPICS END
SUCHE:
Code: Alles auswählen
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $line[$i]['forum_id']);
ERSETZE MIT:
Code: Alles auswählen
// $forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $line[$i]['forum_id']);
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $line[$i]['forum_id'], '', $line[$i]['forum_name']);
Wegen den "Letzter Beitrag"-Links bin ich noch am suchen!
MfG
Maestro