Problem mit dem Smilies Kategorie Mod

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
AngiWaters
Mitglied
Beiträge: 181
Registriert: 16.06.2006 21:01

Problem mit dem Smilies Kategorie Mod

Beitrag 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.
Benutzeravatar
Simlau
Mitglied
Beiträge: 279
Registriert: 18.02.2006 14:06
Wohnort: Bayreuth
Kontaktdaten:

Beitrag von Simlau »

Kannst du mal Zeile 161 und 5 bis 10 Zeilen darunter darüber posten? (viewtopic.php)
AngiWaters
Mitglied
Beiträge: 181
Registriert: 16.06.2006 21:01

Beitrag 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
AngiWaters
Mitglied
Beiträge: 181
Registriert: 16.06.2006 21:01

Beitrag 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*
AngiWaters
Mitglied
Beiträge: 181
Registriert: 16.06.2006 21:01

Beitrag 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.
Benutzeravatar
darkon
Mitglied
Beiträge: 1133
Registriert: 08.08.2003 15:07
Wohnort: Wölfersheim

Beitrag 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.
Antworten

Zurück zu „phpBB 2.0: Mod Support“