Seite 1 von 1

Fehler bei Profilanzeige....Last visit Mod

Verfasst: 20.02.2005 14:40
von stargesicht
Hallo,
wenn ich einen Benutzernamen anklicke erscheint
Parse error: parse error in /mnt/kw1/04/671/00000015/htdocs/phpbb/includes/usercp_viewprofile.php on line 187
dieser Fehler.
Der rührt wohl vom "last Visit" Mod her, Denn wenn ich Das rauslösche sehe ich zwar das Profil der User, aber einige Zeilen sind leer.

Habe aber alles noch mal nachgeschaut und nach Plan eingebaut

Weiß jemand Rat???
DANKE

Verfasst: 20.02.2005 16:10
von roger
Die Fehlermeldung allein hilft nicht sehr viel weiter...

Entweder +/- mindestens 5 Zeilen hier posten, oder besser, die Datei hierher verlinken.

roger

Verfasst: 20.02.2005 18:18
von stargesicht
Also, wenn ich wie beschrieben das hier
// Start add - Last visit MOD
'L_LOGON' => $lang['Last_logon'],
'LAST_LOGON' => ($userdata['user_level'] == ADMIN || (!$board_config['hidde_last_logon'] && $profiledata['user_allow_viewonline'])) ? (($profiledata['user_lastlogon'])? create_date($board_config['default_dateformat'], $profiledata['user_lastlogon'], $board_config['board_timezone']):$lang['Never_last_logon']):$lang['Hidde_last_logon'],

'L_TOTAL_ONLINE_TIME' => $lang['Total_online_time'],
'TOTAL_ONLINE_TIME' => make_hours($profiledata['user_totaltime']),
'L_LAST_ONLINE_TIME' => $lang['Last_online_time'],
'LAST_ONLINE_TIME' => make_hours($profiledata['user_session_time']-$profiledata['user_lastlogon']),
'L_NUMBER_OF_VISIT' => $lang['Number_of_visit'],
'NUMBER_OF_VISIT' => ($profiledata['user_totallogon']>0) ? $profiledata['user_totallogon']: $lang['None'],
'L_NUMBER_OF_PAGES' => $lang['Number_of_pages'],
'NUMBER_OF_PAGES' => ($profiledata['user_totalpages']) ? $profiledata['user_totalpages']: $lang['None'],
// End add - Last visit MOD
in die
includes/usercp_viewprofile.php
einfüge, erscheint die o.g. Fehlermeldung.
Wenn ich es rausnehme erscheint kein Fehler , nur einige leer Felder im User-Profil.
(Also das was ich über andere sehen kann)

EDIT:
die komplette user_viewprofile ist
HIER

Verfasst: 20.02.2005 19:05
von roger

Code: Alles auswählen

$template->assign_vars(array(
	'USERNAME' => $profiledata['username'],
	'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'],


// Start add - Last visit MOD
'L_LOGON' => $lang['Last_logon'],
'LAST_LOGON' => ($userdata['user_level'] == ADMIN || (!$board_config['hidde_last_logon'] && $profiledata['user_allow_viewonline'])) ? (($profiledata['user_lastlogon'])? create_date($board_config['default_dateformat'], $profiledata['user_lastlogon'], $board_config['board_timezone']):$lang['Never_last_logon']):$lang['Hidde_last_logon'],

'L_TOTAL_ONLINE_TIME' => $lang['Total_online_time'],
'TOTAL_ONLINE_TIME' => make_hours($profiledata['user_totaltime']),
'L_LAST_ONLINE_TIME' => $lang['Last_online_time'],
'LAST_ONLINE_TIME' => make_hours($profiledata['user_session_time']-$profiledata['user_lastlogon']),
'L_NUMBER_OF_VISIT' => $lang['Number_of_visit'],
'NUMBER_OF_VISIT' => ($profiledata['user_totallogon']>0) ? $profiledata['user_totallogon']: $lang['None'],
'L_NUMBER_OF_PAGES' => $lang['Number_of_pages'],
'NUMBER_OF_PAGES' => ($profiledata['user_totalpages']) ? $profiledata['user_totalpages']: $lang['None'],
// End add - Last visit MOD








$board_config['board_timezone']),
	'POSTER_RANK' => $poster_rank,


Das ist der Ausschnitt aus deiner usercp_viewprofile (Zeilen 181-208).
Du hast einen Einbaufehler gemacht: Du hast die Zeile 183 zerschossen:
Beginn:

Code: Alles auswählen

	'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'],
dann kommt erst die restliche Zeile (= Z. 207):

Code: Alles auswählen

$board_config['board_timezone']),
und dann erst dein Einbau Last visit MOD


roger

Verfasst: 20.02.2005 19:52
von stargesicht
Ja, das wars, war ein bißchen mißverstänndlich geschrieben in der Anleitung...
Mein Dank wird dich bis ins Grab verfolgen...
:D