Seite 1 von 2

recent_more fehlermeldung!

Verfasst: 29.12.2005 02:59
von Paradise
ich hab recent_more eingebaut. Aber wenn ich die recent.php aufrufe bekomm ich nur

Code: Alles auswählen

SQL Error : 1054 Unknown column 't.topic_first_post_id' in 'on clause'

SELECT t.*, p.poster_id, p.post_username AS last_poster_name, p.post_id, p.post_time, f.forum_name, f.forum_id, u.username AS last_poster, u.user_id AS last_poster_id, u2.username AS first_poster, u2.user_id AS first_poster_id, p2.post_username AS first_poster_name FROM phpbb_topics t, phpbb_posts p LEFT OUTER JOIN phpbb_posts p2 ON p2.post_id = t.topic_first_post_id LEFT OUTER JOIN phpbb_forums f ON p.forum_id = f.forum_id LEFT OUTER JOIN phpbb_users u ON p.poster_id = u.user_id LEFT OUTER JOIN phpbb_users u2 ON u2.user_id = t.topic_poster WHERE t.forum_id NOT IN (1,2,3,4) AND p.post_id = t.topic_last_post_id AND FROM_UNIXTIME(p.post_time,'%Y%m%d') - FROM_UNIXTIME(unix_timestamp(NOW()),'%Y%m%d') = 0 ORDER BY t.topic_last_post_id DESC LIMIT 0, 10

Line : 127
File : recent.php

Verfasst: 29.12.2005 23:44
von Gumfuzi
Fehlt bei Dir die "topic_first_post_id" in der Tabelle phpbb_topics ?
(wobei die ja standardmäßig dabei ist...)

Hast Du ev. vergessen das DB-Update dieses Mods zu machen?

Weiss nicht, welche Version Du hast, bei mir die die SQL-Abfrage dort so aus:

Code: Alles auswählen

$sql_start = "SELECT t.*, p.poster_id, p.post_username AS last_poster_name, p.post_id, p.post_time, f.forum_name, f.forum_id, u.username AS last_poster, u.user_id AS last_poster_id, u2.username AS first_poster, u2.user_id AS first_poster_id, p2.post_username AS first_poster_name
	        FROM ". TOPICS_TABLE ." t, ". POSTS_TABLE ." p
		LEFT OUTER JOIN ". POSTS_TABLE ." p2 ON p2.post_id = t.topic_first_post_id
		LEFT OUTER JOIN ". FORUMS_TABLE ." f ON p.forum_id = f.forum_id
		LEFT OUTER JOIN ". USERS_TABLE ." u ON p.poster_id = u.user_id
		LEFT OUTER JOIN ". USERS_TABLE ." u2 ON u2.user_id = t.topic_poster
	        WHERE $where_forums AND p.post_id = t.topic_last_post_id AND ";
$sql_end = "  ORDER BY t.topic_last_post_id DESC LIMIT $start, $topic_limit";

Verfasst: 30.12.2005 09:54
von Paradise
topic_first_post_id ist vorhanden und in der recent.php steht das selbe wie bei dir.

aber DB-Update? welches update? :oops:

Verfasst: 30.12.2005 11:57
von Seimon
Bei mir ists dasselbe!

Interessanterweise ist vorher alles gegangen (mysql4) und seit dem update auf mysql5 kommt obiger fehler!

Verfasst: 30.12.2005 18:39
von Gumfuzi
Seimon hat geschrieben:Bei mir ists dasselbe!

Interessanterweise ist vorher alles gegangen (mysql4) und seit dem update auf mysql5 kommt obiger fehler!
@Paradise: hast Du auch MySQL5?

Verfasst: 31.12.2005 02:10
von Paradise
ich habe gerade bei meinem provider geschaut und da ist 4.x.x drauf und nachdems auf meinem pc nicht gelaufen ist hatte ichs da garnicht versucht, aber da lässt sich die recent aufrufen. Auf meinem pc läuft 5.x.x und da gehts nicht.

Aber jetzt hab ich ein anderes problem. Es werden keine themen gelistet...

Verfasst: 31.12.2005 11:35
von Gumfuzi
Hast Du am Anfang der Datei recent.php die nötigen Einstellungen eingetragen?

Code: Alles auswählen

<?php
// ############         Edit below         ########################################
$topic_length = '40';	// length of topic title
$topic_limit = '25';	// limit of displayed topics per page
$special_forums = '0';	// specify forums ('0' = no; '1' = yes)
$forum_ids = '';		// IDs of forums; separate them with a comma
$set_mode = 'today';	// set default mode ('today', 'yesterday', 'last24', 'lastweek', 'lastXdays')
$set_days = '3';		// set default days (used for lastXdays mode)
// ############         Edit above         ########################################
(musst halt durch Deine gewünschten Werte ergänzen)

Verfasst: 31.12.2005 16:59
von Seimon
Irgendjemand eine Ahnung woran es liegt, dass das Ding mit mysql5 nicht hinhaut?

Verfasst: 31.12.2005 17:18
von Paradise
// ############ Edit below ########################################
$topic_length = '40'; // length of topic title
$topic_limit = '10'; // limit of displayed topics per page
$special_forums = '0'; // specify forums ('0' = no; '1' = yes)
$forum_ids = '3,1,4,9,10,11,13'; // IDs of forums; separate them with a comma
$set_mode = 'today'; // set default mode ('today', 'yesterday', 'last24', 'lastweek', 'lastXdays')
$set_days = '3'; // set default days (used for lastXdays mode)
// ############ Edit above ########################################

das sollte doch gehen.
Aber was sind die special_forums? Und kann man irgentwo alle forum id's ablesen. Oder muss man immer mit der maus über die foren und sich die nummer anzeigen lassen?

Verfasst: 31.12.2005 18:18
von Seimon
Paradise hat geschrieben: $special_forums = '0'; // specify forums ('0' = no; '1' = yes)
$forum_ids = '3,1,4,9,10,11,13'; // IDs of forums; separate them with a comma
wenn du $special_forums = '0'; setzt hat $forum_ids = '3,1,4,9,10,11,13'; keine wirkung!

wenn du die beiträge nur aus bestimmten foren anzeigen willst musst du $special_forums = '1'; setzen!


Die Forum-IDs findest in der DB unter prefix_forums oder eben wenn du dir die links anschaust wie du beschrieben hast!