Seite 1 von 1

Fehler!

Verfasst: 25.07.2006 13:30
von ema2412
folgender Fehler:

Parse error: syntax error, unexpected T_STRING in /www/htdocs/angelfor/forum/common.php on line 221

hier die verlinkte common.php www.angelforum.at/forum/commontxt.txt

vielen Dank !!!

Verfasst: 25.07.2006 13:53
von Seimon
guck dir den einbau nochmal genau an :o

Code: Alles auswählen

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];}
After the closing brace 
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
{// Intro + Portal MOD START
$sql = "SELECT * FROM " . INTROPORTALMOD_TABLE;
if( ($result = $db->sql_query($sql)) )
while ( $row = $db->sql_fetchrow($result) )
{
	$introportalmod_config[$row['config_name']] = $row['config_value'];
}
// Intro + Portal MOD END

Verfasst: 25.07.2006 13:55
von ema2412
hab ich schon, ich find nix bin nicht wirklcih gut beim coden.

Verfasst: 25.07.2006 14:03
von Seimon
poste mal die zugehörige stelle von der installationsanleitung des intro und portal mods

Verfasst: 25.07.2006 14:06
von ema2412
common.php

#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#

while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}

#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#

// Intro + Portal MOD START
$sql = "SELECT * FROM " . INTROPORTALMOD_TABLE;
if( ($result = $db->sql_query($sql)) )
while ( $row = $db->sql_fetchrow($result) )
{
$introportalmod_config[$row['config_name']] = $row['config_value'];
}
// Intro + Portal MOD END






Code: Alles auswählen

common.php

#
#-----[ FIND ]---------------------------------------------
# around line 219
	$board_config[$row['config_name']] = $row['config_value'];
}

# 
#-----[ AFTER, ADD ]-------------------------------------- 
# After the closing brace
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);

Verfasst: 25.07.2006 15:01
von miccom
wie wärs wenn du die zeile 221:
After the closing brace
mal entfernst, die hat da nix verloren!

Verfasst: 25.07.2006 15:04
von Seimon
finde:

Code: Alles auswählen

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];}
After the closing brace 
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
{// Intro + Portal MOD START
$sql = "SELECT * FROM " . INTROPORTALMOD_TABLE;
if( ($result = $db->sql_query($sql)) )
while ( $row = $db->sql_fetchrow($result) )
{
	$introportalmod_config[$row['config_name']] = $row['config_value'];
}
// Intro + Portal MOD END
ersetze durch:

Code: Alles auswählen

while ( $row = $db->sql_fetchrow($result) ) 
{ 
$board_config[$row['config_name']] = $row['config_value']; 
} 

include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);

// Intro + Portal MOD START 
$sql = "SELECT * FROM " . INTROPORTALMOD_TABLE; 
if( ($result = $db->sql_query($sql)) ) 
while ( $row = $db->sql_fetchrow($result) ) 
{ 
$introportalmod_config[$row['config_name']] = $row['config_value']; 
} 
// Intro + Portal MOD END

Verfasst: 25.07.2006 15:25
von ema2412
danke jetzt funkt wieder alles. Gruß nach Linz...