Seite 1 von 1

Problem mit NewsMod 1.2.1 + phpBB 2.0.5

Verfasst: 19.06.2003 12:05
von dkreuzer
Hallo!

Habe den NewsMod nach Anleitung installiert. Wenn ich im Adminbereich auf News settings klicke, steht dort nur Installation (nur Text, kein Link) und darunter einfach nichts. Rufe ich einfach mal direkt ../forum/news.php auf, erhalte ich die Meldung Couldn't obtain news data

DEBUG MODE

SQL Error : 1054 Unknown column 'f.forum_news' in 'where clause'

SELECT t.topic_id, t.forum_id, t.topic_title, t.topic_time, t.topic_replies, t.topic_last_post_id, t.topic_views, t.topic_vote, u.username, u.user_id, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid FROM phpbb_forums f, phpbb_topics t, phpbb_posts p, phpbb_users u, phpbb_posts_text pt WHERE f.forum_news = '1' AND t.forum_id = f.forum_id AND p.topic_id = t.topic_id AND p.post_id = t.topic_first_post_id AND pt.post_id = p.post_id AND u.user_id = p.poster_id AND (( f.forum_news_post = '1' AND t.topic_type = '0' ) OR ( f.forum_news_sticky = '1' AND t.topic_type = '1' ) OR ( f.forum_news_announce = '1' AND ( t.topic_type = '2' OR t.topic_type = '3' ) ) ) ORDER BY topic_time DESC

Line : 115
File : /var/www/htdocs/forum/includes/news.php

Es scheint also irgendwas in der Datenbank zu fehlen. Habe aber keine Ahnung, was ich da verändern muss... Das Forum findet ihr auf www.moltke-forum.de.vu

Achja, nutze das Helius Theme anstatt SubSilver. Habe die Sachen für den subSIlver-Ordner einfach in den Helius Ordner kopiert.

--
Gruß
Daniel

Verfasst: 19.06.2003 13:30
von Acid
Link zum Hack? Du musst sicherlich noch´n paar Queries ausführen, um die Datenbank anzupassen.

Verfasst: 19.06.2003 14:01
von dkreuzer

Verfasst: 20.06.2003 15:41
von Stelter
Willkomen im Club ich habe genau das selbe Problem .

http://www.h2o-computer.com/h2o-forum/news.php

In der tat fehlen die DB daten Struckturen aber die sind bei dem Mod nicht dabei :cry:

Wenn man in der Admin News settings aufruft wird die dem entsprechende Tpl auch nicht angeziegt.....

Hoffe Acid bekommt das in den griff :roll:

Verfasst: 20.06.2003 16:24
von Stelter
Also die Variabeln habe ich in einem PHPBB noch nie gesehen.

Auszug aus /includes/news.php ab Line 85

Code: Alles auswählen

// Here we have the (*very* simplified) sql statement ;)
// I knew there was an easy way :roll:
// 
$sql = "SELECT t.topic_id, t.forum_id, t.topic_title, t.topic_time, t.topic_replies, t.topic_last_post_id, t.topic_views, t.topic_vote, u.username, u.user_id, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_allowsmile, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
	FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE  . " t, " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt 
	WHERE f.forum_news = '" . TRUE . "' 
		AND t.forum_id = f.forum_id 
		AND p.topic_id = t.topic_id 
		AND p.post_id = t.topic_first_post_id 
		AND pt.post_id = p.post_id 
		AND u.user_id = p.poster_id 
		AND ((
				f.forum_news_post = '" . TRUE . "' 
				AND t.topic_type = '" . POST_NORMAL . "' 
			)
			OR (
				f.forum_news_sticky = '" . TRUE . "' 
				AND t.topic_type = '" . POST_STICKY . "' 
			)
			OR (
				f.forum_news_announce = '" . TRUE . "' 
				AND (
					t.topic_type = '" . POST_ANNOUNCE . "' 
					OR t.topic_type = '" . POST_GLOBAL_ANNOUNCE . "' 
				)
			)
		)
	ORDER BY topic_time DESC";

if( !$result = $db->sql_query($sql) )
{
	message_die(GENERAL_ERROR, "Couldn't obtain news data", "", __LINE__, __FILE__, $sql);

Verfasst: 20.06.2003 17:39
von Stelter
Ich habe mal bischen geforscht hier kommt der Mod her http://sj26.bur.st und da gibt es auch ein 10 seiten langen terader http://sj26.bur.st/forums/viewtopic.php ... sc&start=0

naja ich glaube das wird nix mit dem Mod in dem 2.0.5 außer die Cracks bewschäftigen sich mal damit weiß ja nicht ob das der Selbe News Mod ist wie AWSW ihn benutzt.