[MOD]Add Last User Visit Date to User Profiles/Profilde...

[url=http://www.phpbbturkey.com/mods.html:34cnv4ga]phpBB 2.0.x MOD Veritabanımızda[/url:34cnv4ga] yayınlanan ve tarafınızca eklenen tüm yeni phpBB 2.0.x sürümleri için MODların duyuruları buradan yapılmaktadır. MODlar hakkında ihtiyacınız olan desteği lütfen [b:34cnv4ga]2.0.x MOD Destek[/b:34cnv4ga] forumuna başlık açarak sorunuz.
Kilitli
Kullanıcı avatarı
megaplatform
Kayıtlı Kullanıcı
Mesajlar: 818
Kayıt: 25.08.2006, 19:23
Konum: izmir
İletişim:

[MOD]Add Last User Visit Date to User Profiles/Profilde...

Mesaj gönderen megaplatform »

üyenin profilinde siteye son giriş yaptıgı zamanı gösterir

Kod: Tümünü seç

##############################################################
# 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
Kullanıcı avatarı
yeniturkBB
Kayıtlı Kullanıcı
Mesajlar: 173
Kayıt: 17.12.2006, 12:51
Konum: İstanbul
İletişim:

Mesaj gönderen yeniturkBB »

kesin demşyorum ama sanki vardı forumda böyle bişey :)
.. Oktayusx ! [www.oktayusx.net]
Kullanıcı avatarı
megaplatform
Kayıtlı Kullanıcı
Mesajlar: 818
Kayıt: 25.08.2006, 19:23
Konum: izmir
İletişim:

Mesaj gönderen megaplatform »

forumda üye listesinde görünmesi için olanı vardı bu üyenin profilinde gösteriyor :wink:
Kullanıcı avatarı
RoyaLTurK
Kayıtlı Kullanıcı
Mesajlar: 271
Kayıt: 05.12.2006, 02:07
Konum: Antalya
İletişim:

Re: [MOD]Add Last User Visit Date to User Profiles/Profilde...

Mesaj gönderen RoyaLTurK »

Kod: Tümünü seç

<!-- This file modified for Add Last User Visit Date to User Profiles 1.1.0 -->
bu kodları eklemesek olmuyor mu
Kullanıcı avatarı
radyobulut
Kayıtlı Kullanıcı
Mesajlar: 486
Kayıt: 18.07.2007, 08:55
Konum: İstanbul
İletişim:

Re: [MOD]Add Last User Visit Date to User Profiles/Profilde...

Mesaj gönderen radyobulut »

RoyaLTurK yazdı:

Kod: Tümünü seç

<!-- This file modified for Add Last User Visit Date to User Profiles 1.1.0 -->
bu kodları eklemesek olmuyor mu

Kod: Tümünü seç

// This file modified for Add Last User Visit Date to User Profiles 1.1.0
Bu gibi kodlar ~sanırım~ bilgilendirmek amacıyla, değişecek dosyların başın yazılıyor. Çoğu modda görmedim ama bundan öncede böyle modlar görmüştüm.
Kullanıcı avatarı
phpBB-TR
Kayıtlı Kullanıcı
Mesajlar: 588
Kayıt: 24.12.2006, 13:34
Konum: İstanbul
İletişim:

Re: [MOD]Add Last User Visit Date to User Profiles/Profilde...

Mesaj gönderen phpBB-TR »

RoyaLTurK yazdı:

Kod: Tümünü seç

<!-- This file modified for Add Last User Visit Date to User Profiles 1.1.0 -->
bu kodları eklemesek olmuyor mu
oluyor, illa eklemek zorunda değilsiniz :) sadece düzenlenen sayfanın başına eklenen bir kod :wink:
Kilitli

“2.0.x MOD Duyuruları” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 2 misafir