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
//------------------------------------------------------------------------