Seite 1 von 1

Add last User Visit Date to Profile Mod - Kleine Anpassung

Verfasst: 15.11.2005 12:35
von Natheedo
Hi,

wie schon im Titel erwähnt hab ich den Mod installiert :

"Add last User Visit Date to Profile 1.1.0*

Er läuft auch soweit, allerdings störts mich doch sehr das die Datumsanzeige eine ganz andere Formatierung hat wie ich sie mir wünsche. Meine Kentnisse selbst langen leider nicht aus das Datum so zu formatieren wie ich es will, deshalb hoffe ich hier auf Hilfe.

Derzeitiges Datum Format :

Di Nov 15, 2005 13:32

Gewünschtes Datum Format :

15.11.2005 um 13:32 Uhr


Ist sowas machbar? Wäre super wenn mir da jemand weiterhelfen könnte.
Hänge auch mal den Mod an, damit man weiß worum es geht.

Code: Alles auswählen

##############################################################
# Title: Add Last User Visit Date to User Profiles
# Author: Thoul  thoul-phpbb@earthlink.net  http://www.phpbbsmith.com
# Description: Display the last time the user visited in their profile.
# Version: 1.1.0
#
# Installation Level: Easy
# Installation Time: 5 Minutes
# Files To Edit: includes/usercp_viewprofile.php,
#     language/lang_english/lang_main.php,
#     templates/subSilver/profile_view_body.tpl
# Included Files: n/a
##############################################################
# Author's Notes:
#
# Before proceeding, please read the file README.txt and consult the
# install.txt, upgrade.txt, or uninstall.txt for the actual installation,
# upgrade, or uninstallation instructions.
#
##############################################################
# BEFORE FOLLOWING THESE INSTRUCTIONS, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################

# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
#

<?php

#
#-----[ AFTER, ADD ]------------------------------------------
#

// This file modified for Add Last User Visit Date to User Profiles 1.1.0

#
#-----[ FIND ]------------------------------------------ 
#

$posts_per_day = $profiledata['user_posts'] / $memberdays;

#
#-----[ AFTER, ADD ]------------------------------------------ 
#

//------------------------------------------------------------------------------
// Add Last User Visit Date to User Profiles - Begin Code Addition
//

$last_visit_time = (!empty($profiledata['user_lastvisit'])) ? create_date($board_config['default_dateformat'], $profiledata['user_lastvisit'], $board_config['board_timezone']) : $lang['Never'];

//
// Add Last User Visit Date to User Profiles - End Code Addition
//------------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#
	'L_AVATAR' => $lang['Avatar'], 

#
#-----[ AFTER, ADD ]------------------------------------------
#

//------------------------------------------------------------------------------
// Add Last User Visit Date to User Profiles - Begin Code Addition
//
	'L_LAST_VISITED' => $lang['Last_Visited'],
	'LAST_VISIT_TIME' => $last_visit_time,
//
// Add Last User Visit Date to User Profiles - End Code Addition
//------------------------------------------------------------------------------


# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#

<?php

#
#-----[ AFTER, ADD ]------------------------------------------
#

// This file modified for Add Last User Visit Date to User Profiles 1.1.0

#
#-----[ FIND ]------------------------------------------ 
#

//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
#

//------------------------------------------------------------------------------
// Add Last User Visit Date to User Profiles - Begin Code Addition
//
	$lang['Last_Visited'] = 'Last Visited';
	$lang['Never'] = 'Never';
//
// Add Last User Visit Date to User Profiles - End Code Addition
//------------------------------------------------------------------------------


#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">

#
#-----[ BEFORE, ADD ]------------------------------------------
#

<!-- This file modified for Add Last User Visit Date to User Profiles 1.1.0 -->

#
#-----[ FIND ]------------------------------------------
#

		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
		  <td> <b><span class="gen">{INTERESTS}</span></b></td>
		</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#

		<tr>
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_LAST_VISITED}:</span></td>
		  <td> <b><span class="gen">{LAST_VISIT_TIME}</span></b></td>
		</tr>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#End
Vielen lieben Dank schonmal im vorraus !

Natheedo