Seite 1 von 1

Fehler in BBcode.php - Hilfe bitte !!!!

Verfasst: 26.01.2005 14:10
von ATARI
hi ich hab nen hack eingebaut, er funzt auch super ansonsten, nur wenn man das profil eines users aufrufen will, kommt folgender fehler:

Code: Alles auswählen

Fatal error: Cannot redeclare phpbb_schild() (previously declared in /usr/export/www/vhosts/funnetwork/hosting/tomtrance/orion/includes/bbcode.php:34) in /usr/export/www/vhosts/funnetwork/hosting/tomtrance/orion/includes/bbcode.php on line 34

da ansonsten alles prima funzt, muss der fehler also in dem code-stück sein, welches in die usercp_viewprofile.php gehört:

Code: Alles auswählen

/* XData MOD :: START */
include($phpbb_root_path.'includes/bbcode.'.$phpEx);

$xd_meta = get_xd_metadata();
$xdata = get_user_xdata($HTTP_GET_VARS[POST_USERS_URL]);
while ( list($code_name, $info) = each($xd_meta) )
{
	$value = $xdata[$code_name];

	if ( !$info['allow_html'] )
	{
		$value = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $value);
	}

	if ( $info['allow_bbcode'] && $profiledata['user_sig_bbcode_uid'] != '')
	{
		$value = bbencode_second_pass($value, $profiledata['user_sig_bbcode_uid']);
	}

	if ($info['allow_bbcode'])
	{
		$value = make_clickable($value);
	}

	if ( $info['allow_smilies'] )
	{
		$value = smilies_pass($value);
	}

	$value = str_replace("\n", "\n<br />\n", $value);

	if ( $info['display_viewprofile'] == XD_DISPLAY_NORMAL )
	{
		if ( isset($xdata[$code_name]) )
		{
			$template->assign_block_vars('xdata', array(
				'NAME' => $info['field_name'],
				'VALUE' => $value
				)
			);
		}
	}
	elseif ( $info['display_viewprofile'] == XD_DISPLAY_ROOT )
	{
		if ( isset($xdata[$code_name]) )
		{
       		$template->assign_vars( array( $code_name => $value ) );
        	$template->assign_block_vars( "switch_$code_name", array() );
   		}
		else
		{
                $template->assign_block_vars( "switch_no_$code_name", array() );
		}
	}
}
/* XData MOD :: END */

ich wäre sehr dankbar für hilfe!
thomas

Verfasst: 26.01.2005 14:44
von ATARI
topic kann geschlossen werden, hab mir selbst geholfen!