Seite 1 von 1

seit nickpage installiert profil nicht mehr anschaubar

Verfasst: 29.08.2006 14:33
von sterna
seit dem ich nickpage installiert habe kommt immer ein fehler wenn ich in ein thema gehe und dann bei einem mitglied auf profil klicke der fehler sieht wie folgt aus:

Code: Alles auswählen

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /usr/export/www/vhosts/funnetwork/hosting/mangaforum/phpBB2/includes/usercp_viewprofile.php on line 198
ich habe auch in der betreffenden datei in der zeile 198 geschaut das steht

Code: Alles auswählen

'U_NICKPAGE' => $nickpage,
was ist da falsch ??

Verfasst: 29.08.2006 15:46
von Triplex
Hallo sternia,

poste mal den kompletten code vorher ab

$template->assign_vars(array( etwa Zeile 186.

bis $template->pparse('body');

-

Verfasst: 29.08.2006 17:13
von sterna
ich habe gerad festgestellt dass zwischen

Code: Alles auswählen

$page_title = $lang['Viewing_profile'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
und

Code: Alles auswählen

$template->assign_vars(array(
folgendes steht:

Code: Alles auswählen

if (function_exists('get_html_translation_table'))
{
	$u_search_author = urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES))));
}
else
{
	$u_search_author = urlencode(str_replace(array('&', ''', '"', '<', '>'), array('&', "'", '"', '<', '>'), $profiledata['username']));
}
ist das schlimm??? :( [/code]

Verfasst: 29.08.2006 17:45
von Triplex
Nein.

Verfasst: 30.08.2006 13:56
von sterna
so hier ist der code

Code: Alles auswählen

$template->assign_vars(array(
	'U_NICKPAGE' => $nickpage
	'USERNAME' => $profiledata['username'],
	'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
	'POSTER_RANK' => $poster_rank,
	'RANK_IMAGE' => $rank_image,
	'POSTS_PER_DAY' => $posts_per_day,
	'POSTS' => $profiledata['user_posts'],
	'PERCENTAGE' => $percentage . '%', 
	'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day), 
	'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage), 

	'SEARCH_IMG' => $search_img,
	'SEARCH' => $search,
	'PM_IMG' => $pm_img,
	'PM' => $pm,
	'EMAIL_IMG' => $email_img,
	'EMAIL' => $email,
	'WWW_IMG' => $www_img,
	'WWW' => $www,
	'ICQ_STATUS_IMG' => $icq_status_img,
	'ICQ_IMG' => $icq_img, 
	'ICQ' => $icq, 
	'AIM_IMG' => $aim_img,
	'AIM' => $aim,
	'MSN_IMG' => $msn_img,
	'MSN' => $msn,
	'YIM_IMG' => $yim_img,
	'YIM' => $yim,

	'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : '&nbsp;',
	'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : '&nbsp;',
	'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',
	'AVATAR_IMG' => $avatar_img,

	'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']), 
	'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']), 
	'L_AVATAR' => $lang['Avatar'], 
	'L_POSTER_RANK' => $lang['Poster_rank'], 
	'L_JOINED' => $lang['Joined'], 
	'L_TOTAL_POSTS' => $lang['Total_posts'], 
	'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']), 
	'L_CONTACT' => $lang['Contact'],
	'L_EMAIL_ADDRESS' => $lang['Email_address'],
	'L_EMAIL' => $lang['Email'],
	'L_PM' => $lang['Private_Message'],
	'L_ICQ_NUMBER' => $lang['ICQ'],
	'L_YAHOO' => $lang['YIM'],
	'L_AIM' => $lang['AIM'],
	'L_MESSENGER' => $lang['MSNM'],
	'L_WEBSITE' => $lang['Website'],
	'L_LOCATION' => $lang['Location'],
	'L_OCCUPATION' => $lang['Occupation'],
	'L_INTERESTS' => $lang['Interests'],

	'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),

	'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);

$template->pparse('body');

Verfasst: 30.08.2006 14:35
von Triplex
hinter

Code: Alles auswählen

'U_NICKPAGE' => $nickpage
fehlt ein ,
also:

Code: Alles auswählen

'U_NICKPAGE' => $nickpage,
danach sollte es funktionieren.

Gruß,
triplex