Seite 1 von 1
Problem mit dem Smilies Kategorie Mod
Verfasst: 25.06.2006 18:41
von AngiWaters
Huhu!
Ich habe den Smilies Kategorien Mod eingebaut. Im Adminpanel stimmt auch soweit alles, das Menü wird angezeigt. Nur leider erhalte ich wenn ich in meinem Forum einen Beitrag aufrufen will folgende Meldung:
Could not obtain topic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' f.cat_id' at line 5
SELECT t.*, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_lock, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments FROM pb1topics t, pb1forums f WHERE t.topic_id = 45 AND f.forum_id = t.forum_id , f.cat_id
Line : 161
File : viewtopic.php
Was ist denn da falsch? Bei der Update.php datei kamen keine fehlermeldungen.
Verfasst: 25.06.2006 19:33
von Simlau
Kannst du mal Zeile 161 und 5 bis 10 Zeilen darunter darüber posten? (viewtopic.php)
Verfasst: 25.06.2006 19:41
von AngiWaters
Huhu!
Leider finde ich kein Programm was mir die Zeilennummern anzeigt... da es aber um den smilie mod geht denke ich mal es ist das hier gemeint:
// This rather complex gaggle of code handles querying for topics but
// also allows for direct linking to a post (and the calculation of which
// page the post is on and the correct display of viewtopic)
//
$join_sql_table = (!$post_id) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 ";
$join_sql = (!$post_id) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id";
$count_sql = (!$post_id) ? '' : ", COUNT(p2.post_id) AS prev_posts";
$order_sql = (!$post_id) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_lock, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC";
$sql = "SELECT t.*, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_lock, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
WHERE $join_sql
AND f.forum_id = t.forum_id
, f.cat_id
$order_sql";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql);
}
if ( !($forum_topic_data = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
$forum_id = intval($forum_topic_data['forum_id']);
// Start Smiley Categories MOD
$forum_cat_id = intval($forum_topic_data['cat_id']);
// End Smiley Categories MOD
Verfasst: 25.06.2006 20:02
von AngiWaters
Wahnsinn ich glaub ich habs gefunden... testen muss... die cat_id ist falsch eingefügt glaub ich... scheiß easymod... *g*
Hu es geht wirklich wieder. Und das nur durch eine halbe stunde lang wie hypnotisiert auf die viewtopic datei und abwechselnd die originale zu starren *bg*
Verfasst: 25.06.2006 20:23
von AngiWaters
Aaaalso ich kann nur warnen: Smilie Mod niemals mit Eaysmod installieren. Der schmeißt bei der search.php, viewtopic.php und topic_review.php alles durcheinander.
Verfasst: 25.06.2006 21:05
von darkon
Ganz im Ernst... Den Easymod würde ich komplett vergessen
Sobald du mehr als einen Mod eingebaut hast wird der immer unzuverlässiger.