Seite 1 von 2

Problem mit Neue Beiträge anzeigen lassen

Verfasst: 19.11.2005 11:40
von sternenreise
Hallo!

Wenn ich in meinem Forum "Beiträge seit dem letzten Besuch anzeigen" anzeigen lasse, zeigt er mir freilich alle meine ungelesenen Beiträge.
Allerdings wenn ich das Topic anklicke bekomme ich folgende Fehlermeldung: "Das gewählte Thema oder der Beitrag existiert nicht."

Habe den verdacht, dass es an der "Highlight-Option" liegt - weil wenn ich in den Link (z.B. "forumsadresse/viewtopic.php?t=467&highlight=") hinten noch was anfüge, zeigt er mir die Seite ohne Probleme an.
Weiß da jemand rat?


Gruß
Thomas

Verfasst: 19.11.2005 12:46
von Sorro
Hallo Thomas,

also bei mir steht hinter dem highlight= auch nix und funkt ohne Probleme. Kann Dir zwar nicht helfen, aber das kann es wohl nicht sein. Bi mal gespannt, ob sich jemand meldet.

Viele Grüße,
Sorro

Verfasst: 02.12.2005 22:52
von RAD0N
Ich habe das selbe Problem und würde mich ebenfalls auf hilfe freuen =(

wenn man auf das kleine Beitragssymbol klickt, kommt man auch zum post. Aber nicht wenn man auf den Postnamen klickt.


Was ich noch rausgefunden habe: wenn beim highlight= was hintendran steht (egal was) dann gehts. Aber wenn nix da steht dann gibts den fehler.

Verfasst: 02.12.2005 23:58
von Markus67
Hi ...

Welche phpBB Version wird denn verwendet?
Hast du irgendwelche MOD's eingebaut?

Markus

Verfasst: 03.12.2005 00:45
von RAD0N
Ich benutze seit heute die neuste, 2.0.18 mit dem Attachmentmod, dem Upload-mod und diesem gelbe und rote karten Verwarnungsmod.

Verfasst: 03.12.2005 00:46
von Markus67
Hi ...

verlinke mal bitte die viewtopic.php als txt-Datei
KB:datei

Markus

Verfasst: 03.12.2005 01:01
von RAD0N
Klar doch.

viewtopic.txt

Verfasst: 03.12.2005 15:46
von Markus67
Hi ...

na dann wollen wir mal :D

suche:

Code: Alles auswählen

if ( !isset($topic_id) && !isset($post_id) )
ersetze mit:

Code: Alles auswählen

if (!$topic_id && !$post_id)
suche:

Code: Alles auswählen

				t2.topic_id = $topic_id
				AND t.forum_id = t2.forum_id
ersetze mit:

Code: Alles auswählen

				t2.topic_id = $topic_id
				AND t.forum_id = t2.forum_id
				AND t.topic_moved_id = 0
suche:

Code: Alles auswählen

$join_sql_table = ( empty($post_id) ) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 ";
$join_sql = ( empty($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 = ( empty($post_id) ) ? '' : ", COUNT(p2.post_id) AS prev_posts";

$order_sql = ( empty($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_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_ban, f.auth_greencard, f.auth_bluecard ORDER BY p.post_id ASC";
ersetze mit:

Code: Alles auswählen

$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_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_ban, f.auth_greencard, f.auth_bluecard ORDER BY p.post_id ASC";
suche:

Code: Alles auswählen

		$redirect = ( isset($post_id) ) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id";
		$redirect .= ( isset($start) ) ? "&start=$start" : '';
ersetze mit:

Code: Alles auswählen

		$redirect = ($post_id) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id";
		$redirect .= ($start) ? "&start=$start" : '';
suche:

Code: Alles auswählen

$topic_time = $forum_topic_data['topic_time'];

if ( !empty($post_id) )
ersetze mit:

Code: Alles auswählen

$topic_time = $forum_topic_data['topic_time'];

if ($post_id)
suche:

Code: Alles auswählen

			$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#'));
ersetze mit:

Code: Alles auswählen

		$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', preg_quote($words[$i], '#'));
suche:

Code: Alles auswählen

	$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
ersetze mit:

Code: Alles auswählen

	$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
suche:

Code: Alles auswählen

	// Parse message and/or sig for BBCode if reqd
	//
	if ( $board_config['allow_bbcode'] )
	{
		if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
		{
			$user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
		}

		if ( $bbcode_uid != '' )
		{
			$message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
		}
	}

	if ( $user_sig != '' )
ersetze mit:

Code: Alles auswählen

	// Parse message and/or sig for BBCode if reqd
	//
	if ($user_sig != '' && $user_sig_bbcode_uid != '')
	{
		$user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
	}

	if ($bbcode_uid != '')
	{
		$message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace("/\:$bbcode_uid/si", '', $message);

	}

	if ( $user_sig != '' )
Das wars :wink:

Markus

Verfasst: 03.12.2005 16:25
von RAD0N
Nun, danke für die Arbeit, aber geklappt hat es nicht. Das Problem besteht weiterhin.

Ich hab die neue viewtopic.txt schon aktualisiert, vielleicht bin ich auch einfach nur zu doof...

Verfasst: 03.12.2005 16:36
von Markus67
Hi ...

hast du denn mal einen Link zu deinem Forum?

Markus