Seite 1 von 1

Viewforum.php Fehler beim Anklicken eines Forums

Verfasst: 04.12.2005 20:24
von Miroerr
Hallo,

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 653
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 :cry: .

Ä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'] . ':&nbsp;' . $select_topic_days . '&nbsp;' . ( !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 --------------------------------------------------------------------
#
Änderungen von Categorie hack (habe ich umgekehrt ausgeführt da Deinstallation):

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

##########################################################################################

Verfasst: 04.12.2005 20:33
von FatFreddy
ersetze in Zeile 652:

Code: Alles auswählen

			'ROW_CLASS' => $row_class,
durch:

Code: Alles auswählen

			'ROW_CLASS' => $row_class)
			);
FatFreddy

Verfasst: 04.12.2005 22:50
von Miroerr
Huhu, danke für deine Hilfe!

Aber nun taucht folgender Fehler beim Klicken auf eine Kategorie/Forum auf:

Code: Alles auswählen

Parse error: parse error, unexpected T_DOUBLE_ARROW in /usr/export/www/vhosts/funnetwork/hosting/miroerr/forum/viewforum.php on line 680

Verfasst: 04.12.2005 23:18
von Miroerr
Ich hab nun einfach einen Teil aus der originalen viewforum.php genommen. Nur ist das natürlich auch nicht so toll wenn man schon Mods installiert hat ... aber bis jetzt geht es. Ich melde mich beim nächsten Fehler :-? !
Nochmals Danke für deine Hilfe.

Verfasst: 13.12.2005 12:12
von Ta Lun
darf ich Fragen, warum Du den Categorie Mod entfernt hast?

Verfasst: 13.12.2005 14:48
von Miroerr
Hab ihn schon wieder installiert ;)! Da er mir doch relativ wichtig war, hab ich's einfach nochmal versucht und es hat geklappt.

Verfasst: 13.12.2005 21:41
von Ta Lun
ok dann viel spass dabei ;)