Viewforum.php Fehler beim Anklicken eines Forums
Verfasst: 04.12.2005 20:24
Hallo,
folgender Fehler taucht bei mir auf, sobald ich auf ein Forum klicke:
Link zur viewforum.php: http://rapidshare.de/files/8618404/viewforum.php.html
Hab zwei Mods entfernt (categorie hack, Split topic type), mehr nicht. Hoffe, mir kann geholfen werden
.
Änderungen von Split topic type mod (habe ich umgekehrt ausgeführt da Deinstallation):
Änderungen von Categorie hack (habe ich umgekehrt ausgeführt da Deinstallation):
folgender Fehler taucht bei mir auf, sobald ich auf ein Forum klicke:
Code: Alles auswählen
Parse error: parse error, unexpected ';', expecting ')' in /usr/export/www/vhosts/funnetwork/hosting/miroerr/forum/viewforum.php on line 653Hab zwei Mods entfernt (categorie hack, Split topic type), mehr nicht. Hoffe, mir kann geholfen werden
Änderungen von Split topic type mod (habe ich umgekehrt ausgeführt da Deinstallation):
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : split topic type ------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : split topic type ------------------------------------------------------------------------
//-- add
include_once($phpbb_root_path . 'includes/functions_topics_list.'. $phpEx);
//-- fin mod : split topic type --------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
//
// Okay, lets dump out the page ...
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
#************************************************************************************
# 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 )
#
#************************************************************************************
//-- mod : split topic type ------------------------------------------------------------------------
//-- add
// adjust the item id
for ($i=0; $i < count($topic_rowset); $i++)
{
$topic_rowset[$i]['topic_id'] = POST_TOPIC_URL . $topic_rowset[$i]['topic_id'];
}
// set the bottom sort option
$footer = $lang['Display_topics'] . ': ' . $select_topic_days . ' ' . ( !empty($s_display_order) ? $s_display_order : '') . '<input type="submit" class="liteoption" value="' . $lang['Go'] . '" name="submit" />';
// send the list
$allow_split_type = true;
$display_nav_tree = false;
topic_list('TOPICS_LIST_BOX', 'topics_list_box', $topic_rowset, '', $allow_split_type, $display_nav_tree, $footer);
//-- delete
/*
//---------------------------------------
//
// Note : all the code that was standing there stands now in functions_topics_list.php, topic_list() func
//
//---------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$topics_count -= $total_announcements;
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
*/
//-- fin mod : split topic type --------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
}
else
{
//
// No topics
//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : split topic type ------------------------------------------------------------------------
//-- delete
/*
#
#-----[ FIND ]------------------------------------------------
#
//
// Parse the page and print
//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
*/
//-- fin mod : split topic type --------------------------------------------------------------------
#Code: Alles auswählen
##########################################################################################
Open viewforum.php
##---Find----
if( ( $replies + 1 ) > $board_config['posts_per_page'] )
{
##----Add Before-----
//kategorien
if($topic_rowset[$i]['k_id'] !=0)
{
$sql="select kategorie FROM " . TOPIC_KAT ." where k_id=" . $topic_rowset[$i]['k_id'];
if ( $result = $db->sql_query($sql) )
{
$kat = $db->sql_fetchrow($result);
$topic_kat="[" .$kat['kategorie'] . "]";
}
}else{
$topic_kat="";
}
//kategorien
##------------
##----Find----
$template->assign_block_vars('topicrow', array(
'ROW_COLOR' => $row_color,
##---Replace with-----
$template->assign_block_vars('topicrow', array(
'TOPIC_KAT' => $topic_kat,
'ROW_COLOR' => $row_color,
##--------------------
Save and Close viewforum.php
##########################################################################################