Seite 1 von 2
Fehler bei Profilanzeige/edit neues prob aufgetaucht
Verfasst: 09.12.2005 18:59
von Slytherin
Wenn ich ein Profil aufrufe, kommt folgender fehler:
Code: Alles auswählen
Parse error: parse error, unexpected $, expecting ')' in /usr/export/www/vhosts/funnetwork/hosting/slytherin/phpBB2/includes/usercp_viewprofile.php on line 225
Besagte Zeile ist die letzte:
Woran liegt es?
Grüsse,
bhms
Verfasst: 09.12.2005 20:57
von Andy120
hi...
Poste mal bitte mehrere Zeilen, also von 220 - 230!
Gruss, Andy
Verfasst: 09.12.2005 20:59
von Jan500
hi
wenn das die letzte Zeile in den klammern ist dann entfern das " , "
verlink trotzdme mal die datei

gruß Jan
Verfasst: 09.12.2005 22:15
von Slytherin
die letzten paar zeilen muss ich wohl nicht extra verlinken?
Code: Alles auswählen
$template->assign_vars(array(
'USERNAME' => $profiledata['username'],
'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
'LASTLOG' => create_date($lang['DATE_FORMAT'], $profiledata['user_lastvisit'], $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'] : ' ',
'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : ' ',
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
'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_JOINED' => $lang['Joined'],
'L_LASTLOG' => $lang['Last-log'],
EDIT: Neu kommen auch folgende Fehlermeldungen

:
Code: Alles auswählen
Warning: main(./includes/usercp_viewprofile.php): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/slytherin/phpBB2/profile.php on line 90
Warning: main(): Failed opening './includes/usercp_viewprofile.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/slytherin/phpBB2/profile.php on line 90
Verfasst: 09.12.2005 22:18
von Jan500
hi
doch musst du
weil genau jetzt die nächsten 2-5 zeilen interessant sind ;-9
gruß jan
Verfasst: 09.12.2005 22:21
von Slytherin
Hier die oberen paar Zeilen, die so interessant sein sollen
Code: Alles auswählen
//
// Generate page
//
$page_title = $lang['Viewing_profile'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
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']));
}
Verlinken bringts jetzt wirklich nich mehr ^^
Verfasst: 09.12.2005 22:23
von Jan500
hi
nein

die nächsten zeilen die nach
Code: Alles auswählen
'L_AVATAR' => $lang['Avatar'],
'L_JOINED' => $lang['Joined'],
'L_LASTLOG' => $lang['Last-log'],
kommen
gruß jan
Verfasst: 09.12.2005 22:24
von Slytherin
da gibts nix mehr darunter..
Verfasst: 09.12.2005 22:29
von Jan500
O_O
da ist da fehler...da fehlt ne ganze menge -.-
also es müsste auf jedenfall der folgende code noch angehängt werden:
Code: Alles auswählen
'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');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
das ist so im standard..du müsstest dann nochmal gucken ob du irgendwelche mods hast die in diesem teil was geändert haben (am betsen guckst du nochmal nach einer datei bei dir aufm pc die alles beinhaltet

)
gruß jan
Verfasst: 10.12.2005 10:38
von Slytherin
ah das problem hab ich nun behoben, vielen dank

aber inzwischen ist wieder ein neues aufgetaucht
Wenn man ein Thema anschaut, steht oben die folgende Fehlermeldung:
Code: Alles auswählen
Parse error: parse error, unexpected '<' in /usr/export/www/vhosts/funnetwork/hosting/slytherin/phpBB2/includes/bbcode.php(61) : eval()'d code on line 1
dabei hab ich an bbcode.php noch gar nichts vom original abgeändert...
*auf hilfe hofft*
danke im voraus