Seite 1 von 2

Split Topic MOD

Verfasst: 23.06.2005 12:35
von FiRE2k
Hiho wieder mal ein problem ^^

Habe den Split Topic MOD installiert und nun kommt das hier

Could not obtain topic information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id AND p.po' at line 4

SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username FROM phpbb_topics t, phpbb_users u, phpbb_posts p, phpbb_users u2 WHERE AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id AND p.poster_id = u2.user_id ORDER BY t.topic_last_post_id DESC

Line : 303
File : viewforum.php

Code: Alles auswählen

//
// All announcement data, this keeps announcements
// on each viewforum page ...
//
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username
	FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2
	WHERE $sql_global_topics 
		AND t.topic_poster = u.user_id
		AND p.post_id = t.topic_last_post_id
		AND p.poster_id = u2.user_id
		$limit_topics_time 
	ORDER BY t.topic_last_post_id DESC ";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}

Verfasst: 23.06.2005 12:58
von Markus67
Hi ...

Verlinke mal bitte die komplette viewforum.php als txt-Datei.
KB:datei
Wo hast du den MOD runtergeladen?

Markus

Verfasst: 23.06.2005 13:01
von FiRE2k
http://trekkiefan.de/abi/viewforum.txt

Bitte

http://rpgnet.clanmckeen.com/mod/mod-sp ... c_type.zip

daher hab ich den MOD

Des weiteren ist noch der Global Topic MOD, der ebenfalls hier in der Datenbank ist, installiert

Verfasst: 23.06.2005 13:15
von Markus67
Hi ...

suche:

Code: Alles auswählen

	//-- fin mod : split topic type --------------------------------------------------------------------
	$topics_count -= $total_announcements;
ersetze mit:

Code: Alles auswählen

	*/
	//-- fin mod : split topic type --------------------------------------------------------------------
	$topics_count -= $total_announcements;
suche:

Code: Alles auswählen

	//-- mod : split topic type ------------------------------------------------------------------------
//-- delete
ersetze mit:

Code: Alles auswählen

//-- mod : split topic type ------------------------------------------------------------------------
//-- delete
/*
Markus

Verfasst: 23.06.2005 13:20
von FiRE2k
neuer fehler

Parse error: parse error, unexpected '*' in /var/www/web571/html/abi/forum/viewforum.php on line 734

:(

*edit*

# NOTE :
# ------
# /!\ Important : I strongly recommand to mute all the lines between the nexts
# --------- /* and */
# by adding // in front of each lines or by deleting all.
#
# ie: // if( $total_topics )

was soll das denn heissen? das steht in der txt von dem MOD

Verfasst: 23.06.2005 13:24
von Markus67
Hi ...

sorry ... mach das erstmal wieder rückgängig ... der obige Fehler liegt am Global Topic ... du hast die Version eingebaut die ohne den Split Topic Type nötig ist ...

suche

Code: Alles auswählen

ORDER BY t.topic_type = " . POST_STICKY . ", t.topic_last_post_id DESC
ersetze mit:

Code: Alles auswählen

ORDER BY t.topic_last_post_id DESC
Markus

Verfasst: 23.06.2005 13:27
von FiRE2k
hm jetzt kommt wieder der fehler

Could not obtain topic information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id AND p.po' at line 4

SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username FROM phpbb_topics t, phpbb_users u, phpbb_posts p, phpbb_users u2 WHERE AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id AND p.poster_id = u2.user_id ORDER BY t.topic_last_post_id DESC

Line : 303
File : viewforum.php

Verfasst: 23.06.2005 13:32
von Markus67
Hi ...

hast du die 2. Änderung schon gemacht ?

Markus

Verfasst: 23.06.2005 13:53
von FiRE2k
ja hab ich

Verfasst: 23.06.2005 13:58
von Markus67
Hi ...

Hast du noch irgendwelche anderen Sachen in die viewforum.php eingebaut ausser den 2 MOD's ?

Markus