Seite 1 von 2
fehler in usercp_viewprofile.php bitte hilfe !
Verfasst: 02.09.2004 21:02
von acer
Hallo
Ich habe überhaupt keine ahnung wieso es aufeinmal wider nicht funktioniert, wenn ich auf einen profil von user klicke bekomme ich folgende fehler meldung
Parse error: parse error, expecting `')'' in /data/members/free/tripod/de/s/c/h/schranzer09/htdocs/board/includes/usercp_viewprofile.php on line 175
kann mir bitte jemand helfen bitte
danke schön
http://mitglied.lycos.de/schranzer09/us ... rofile.txt
Verfasst: 02.09.2004 21:10
von roum
Du hast da beim Einbau vom Last_Visit_mod irgendwas durcheinander gebracht.
Wenn du so eine Fehlermeldung siehst ist der Fehler in 90% aller Fälle in der Zeile davor zu finden
Zeile 174 sieht bei dir so aus:
hinter dem Joined steht normalerweise sicherlich was anderes und ein Kommentar mitten in der Zeile sieht seltsam aus.
So ähnlich siehts am Ende vom Mod aus (Zeile 186):
Code: Alles auswählen
// End add - Last visit MOD create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
Schau dir einfach nochmal genau und in Ruhe an, wie und wo der Mod da eingebaut werden soll
EDIT: Ich könnte mir gut vorstellen, das der Teil in Zeile 186 nach den // eigentlich in Zeile 174 hinter das joined gehört.
Verfasst: 02.09.2004 21:18
von acer
ok ´werde mal schuaen ob ich das hin kriege nur kannst mir sagen wie ich nach zeilen suchen kann, ich weiss das nichtmal?
danke
Verfasst: 02.09.2004 21:42
von acer
also in der anleitung steht es so drin, aber so geht das nicht
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------------
#
'JOINED' =>
#
#-----[ AFTER, ADD ]------------------------------------------
#
// 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
was kann ich jetzt machen weisst einer einen rat bitte wie ich das beheben kann
fehler jetzt
Code: Alles auswählen
Parse error: parse error, expecting `')'' in /data/members/free/tripod/de/s/c/h/schranzer09/htdocs/board/includes/usercp_viewprofile.php on line 176
Verfasst: 02.09.2004 21:48
von The real Indigo
Ich denke mal das after add kommt NACH der 'JOINED' => Zeile und nicht direkt nach dem 'JOINED' =>
War beim Birthday Mod auch etwas unglücklich erklärt.
Verfasst: 02.09.2004 21:52
von acer
also ich habs jetzt eine zeile unten drunter
Code: Alles auswählen
$template->assign_vars(array(
'USERNAME' => $profiledata['username'],
'JOINED' =>
// 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
create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config
bekomme aber folgenden fehler
Code: Alles auswählen
Parse error: parse error, expecting `')'' in /data/members/free/tripod/de/s/c/h/schranzer09/htdocs/board/includes/usercp_viewprofile.php on line 176
Verfasst: 02.09.2004 21:56
von The real Indigo
Versuch mal das
Code: Alles auswählen
create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config
hinter die Joined Zeile zu koperen.
Evtl fehlt dann noch ein , am Ende.
Verfasst: 02.09.2004 21:59
von Acid
Meistens ist "darunter einfügen" anstatt "danach einfügen" gemeint.
Und oftmals sind die zu findenen Zeilen nicht vollständig, sondern nur ein Auszug von der kompletten Zeile.
Eventuell mal ein wenig darauf achten, wie die anderen Zeilen aussehen.
$template->assign_vars(array(
'USERNAME' => $profiledata['username'],
'JOINED' =>
// 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
create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
$template->assign_vars(array(
'USERNAME' => $profiledata['username'],
'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
// 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
Verfasst: 02.09.2004 22:00
von The real Indigo
Mein reden...

Verfasst: 02.09.2004 22:01
von roum
Schon komisch, wenn das wirklich so in der Einbauanleitung steht
Ich würde einfach mal vermuten, das der Mod nach der Zeile mit dem "Joined" beginnt.
So z.B.:
Code: Alles auswählen
'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
// 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
'POSTER_RANK' => $poster_rank,
Testen kann ich das jetzt nicht, weil dann gemeckert wird, das es die ganzen Funktionen die da aufgerufen werden nicht gibt.
Wegen den Zeilennummern würde ich nen Editor benutzen, der halt Zeilennummern anzeigt und am besten noch Syntaxhighlighting bietet.
Unter Window arbeite ich immer mit Proton (klein, handlich und Freeware).
Das macht das Ganze auf jeden Fall um einiges übersichtlicher.