Frage zum Last Visit Mod(Einbau)...

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBBNoob
Mitglied
Beiträge: 19
Registriert: 25.05.2005 19:04

Beitrag von phpBBNoob »

hm... hat keiner ne Idee?
Benutzeravatar
Braveheart
Mitglied
Beiträge: 24
Registriert: 05.02.2005 09:03
Wohnort: Neu Wulmstorf
Kontaktdaten:

Beitrag von Braveheart »

Moin,
du hast da ein paar Klammern vergessen!

Finde:

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
Ersetze mit:

Code: Alles auswählen

	// Start add - Last visit MOD
	'L_LOGON' => $lang['Last_logon'], 
	'LAST_LOGON' => ($userdata['user_level'] == ADMIN || (!$board_config['hidden_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['Hidden_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
Dann müsste es klappen. :grin:

Gruß,
Thomas
phpBBNoob
Mitglied
Beiträge: 19
Registriert: 25.05.2005 19:04

Beitrag von phpBBNoob »

jo super danke :) Nur frag ich mich echt wie man bei copy & paste klammern vergessen kann *g*
Antworten

Zurück zu „phpBB 2.0: Mod Support“