Contact List Probleme

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
charlymcfly
Mitglied
Beiträge: 263
Registriert: 05.01.2005 10:34
Wohnort: Aurich
Kontaktdaten:

Contact List Probleme

Beitrag von charlymcfly »

Hab probleme den mod einzubauen und zwar zeigt er mir diesen fehler an

Code: Alles auswählen

Parse error: parse error in /srv/www/htdocs/web1/html/forum/viewforum.php on line 863

Wenn ich den ersten Teil in der viewforum nicht einsetze geht sie aber mit diesem stück ist eben der Fehler da

hier mal gleich die: viewforum.php


und der teil der einzufügen ist:

Code: Alles auswählen

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewforum.php

#
#-----[ FIND ]------------------------------------------
#

		$replies = $topic_rowset[$i]['topic_replies'];

#
#-----[ AFTER, ADD ]------------------------------------------
#

//------------------------------------------------------------------------
// Contact List - Begin Code Addition
//
		/* Do a slightly complicated check to see if the topic will be displayed.
			We have only user_ids for the first and last poster in the topic, so
			we'll skip this on topics with 2+ replies. If the two user_ids are the
			same (either no replies or a reply by the original poster) and the user
			is ignored, don't display. If not the same & neither is ANONYMOUS, check to see if both are ignored - if so, don't display.
			If the viewer is ANONYMOUS, we don't even bother with the check by
			making $ignore_users false when page_header.php is included above. */

		if ( $ignore_users && $topic_rowset[$i]['user_id'] != ANONYMOUS && $replies <= 1 )
		{
			$check_first = false;
			if( $topic_rowset[$i]['id2'] != ANONYMOUS )
			{
				// Check to see if topic author is ignored
				$check_first = array_key_exists($topic_rowset[$i]['user_id'], $contact_list->ignore);
			}

			if ( $topic_rowset[$i]['user_id'] == $topic_rowset[$i]['id2'] )
			{
				// Only one poster (who may or may not have replied)
				if ( $check_first )
				{
					// Viewer is ignoring only poster: don't display
					$have_ignored = true;
					continue;
				}
			}
			elseif ( $topic_rowset[$i]['id2'] != ANONYMOUS )
			{
				// Two different posters, but neither is a guest.
				if ( $check_first )
				{
					if( array_key_exists($topic_rowset[$i]['id2'], $contact_list->ignore) )
					{
						// Ignoring both posters: don't display
						$have_ignored = true;
						continue;
					}
				}
			} // elseif
		} // if ( $ignore_users
//
// Contact List - End Code Addition
//------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

//
// Parse the page and print
//
$template->pparse('body');

#
#-----[ BEFORE, ADD ]------------------------------------------
#

//------------------------------------------------------------------------
// Contact List - Begin Code Addition
//
make_ignore_msg($have_ignored, $ignore_users, 'viewforum.' . $phpEx . '?' . POST_FORUM_URL . '=' . $forum_id . '&topicdays=' . $topic_days . '&start=' . $start);
//
// Contact List - End Code Addition
//------------------------------------------------------------------------
Ich hoffe mir kann jemand helfen den Fehler zu beseitigen. Ich hab echt keine Ahnung wie ich das beheben kann
Benutzeravatar
Jan500
Ehemaliges Teammitglied
Beiträge: 4199
Registriert: 01.03.2003 21:32
Wohnort: Hamburg
Kontaktdaten:

Beitrag von Jan500 »

hi

geh mal in die zeile 864 und entferne das */ ;) und guck ob es geht....

Jan
charlymcfly
Mitglied
Beiträge: 263
Registriert: 05.01.2005 10:34
Wohnort: Aurich
Kontaktdaten:

Beitrag von charlymcfly »

aber das gehört doch zum split topic mod und ist doch mit absicht dort oder nicht? reicht es nicht wenn ich den code etwas tiefer einsetze?
Antworten

Zurück zu „phpBB 2.0: Mod Support“