Im CBack Orion Forum wird die Anzahl der Letzten Beiträge über die portal.php geregelt:
Code: Alles auswählen
// Number of Recent Topics (not Forum ID)
$CFG['number_recent_topics'] = '6';
In der Anleitung des EZPortal_admin_v1.0.5 Mods soll man in der Portal lediglich folgendes ändern.
Den obigen Code gegen das hier ersetzen:
Code: Alles auswählen
// Number of Recent Topics (not Forum ID)
//$CFG['number_recent_topics'] = '6';
Lediglich erhalte ich im Portal folgende Fehlermeldung:
Der besagt Bereich ist folgender:Could not query recent topics information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near '' at line 8
SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username FROM orion_topics AS t, orion_posts AS p, orion_users AS u WHERE t.forum_id NOT IN ('start') AND t.topic_status <> 2 AND p.post_id = t.topic_last_post_id AND p.poster_id = u.user_id ORDER BY p.post_id DESC LIMIT
Line : 239
File : portal.php
Code: Alles auswählen
$sql = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
FROM " . TOPICS_TABLE . " AS t, " . POSTS_TABLE . " AS p, " . USERS_TABLE . " AS u
WHERE t.forum_id NOT IN (" . $except_forum_id . ")
AND t.topic_status <> 2
AND p.post_id = t.topic_last_post_id
AND p.poster_id = u.user_id
ORDER BY p.post_id DESC
LIMIT " . $CFG['number_recent_topics'];
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not query recent topics information', '', __LINE__, __FILE__, $sql);
}
Code: Alles auswählen
message_die(GENERAL_ERROR, 'Could not query recent topics information', '', __LINE__, __FILE__, $sql);
Danke schonmal im voraus.
Udo