Also ich soll ja laut mod nach dieser Zeile suchen
Code: Alles auswählen
'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
ist ja nicht schwer eigentlich. Danach wird der folgende part eingefügt
Code: Alles auswählen
// 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
sobald ich nun ein Profil mir ansehen möchte kommt folgender Fehler
Fatal error: Call to undefined function: make_hours() in /XXX/XXX/XXX/XXX/httpdocs/includes/usercp_viewprofile.php on line 262
das ist diese Zeile
Code: Alles auswählen
'TOTAL_ONLINE_TIME' => make_hours($profiledata['user_totaltime']),
Klammer ich diese aus (durch // ) habe ich die Fehlermeldung
Fatal error: Call to undefined function: make_hours() in /XXX/XXX/XXX/XXX/httpdocs/includes/usercp_viewprofile.php on line 264
und das ist diese Fehlermeldung
Code: Alles auswählen
'LAST_ONLINE_TIME' => make_hours($profiledata['user_session_time']-$profiledata['user_lastlogon']),
Nur wo liegt da nun das Problem? ich schnall das nicht.