Son ziyaret tarihi

phpBB 2.0.x sürümleri için yapılmasını istediğiniz veya arayıpta bulamadığınız MODları buraya yazabilirsiniz.
Kilitli
Kullanıcı avatarı
nameless
Kayıtlı Kullanıcı
Mesajlar: 28
Kayıt: 13.05.2007, 18:15
Konum: İstanbul/karabük
İletişim:

Son ziyaret tarihi

Mesaj gönderen nameless »

Üye listesinde ve profilde üyenin son ziyaret tarihini gösteren bir mod var mı?

Arkadaşlar forumda arama yaptım ama bu konuyla ilgili bir şey bulamadım.
Eğer varsa bir link verirseniz sevinirim.
Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Mesaj gönderen cupra »

Son ziyaret tarihi profilde

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ı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Mesaj gönderen cupra »

üye listesin de son giriş tarihi

Kod: Tümünü seç

$Id: last_visit_date.txt,v 1.2 2003/07/03 12:10:25 nivisec Exp $
############################################### 
##   Hack Title:   Add Last User Visit Date to Members List
##                 (A phpBB2 Quickie)
##   Author:       Nivisec (support@nivisec.com)
##                 http://www.nivisec.com
##   Description:  Adds a new field in the members list that displays the date
##                 that the user last visited on.  "Never" will be displayed if
##                 the user has never logged in.
##
##   Compatibility:   2.0.x
## 
##   Support:      http://www.phpbbhacks.com/forums 
##   Copyright:      ©2003 Billy Sauls
## 
############################################### 
# 
#-----[ OPEN ]------------------------------------------ 
# 
memberlist.php

#
#-----[ FIND ]------------------------------------------ 
#
	'L_POSTS' => $lang['Posts'], 

#
#-----[ AFTER, ADD ]------------------------------------------ 
#   Change 'Last Visited' to your desired language.
#
	'L_LAST_VISITED' => 'Last Visited', 

#
#-----[ FIND ]------------------------------------------ 
#
		$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
		$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

#
#-----[ AFTER, ADD ]------------------------------------------ 
#   Change 'Never' on the end of the $last_visit_time = (!empty....
#   line to your desired language.
#
		$visit_time_sql = "SELECT user_lastvisit
			FROM " . USERS_TABLE . "
			WHERE user_id = " . $user_id . "
			LIMIT 1";

		if (!$visit_time_result = $db->sql_query($visit_time_sql))
		{
			message_die(GENERAL_ERROR, 'Error getting user last visit time', '', __LINE__, __FILE__, $visit_time_sql);
		}

		$visit_time_row = $db->sql_fetchrow($visit_time_result);
		$last_visit_time = (!empty($visit_time_row['user_lastvisit'])) ? create_date($lang['DATE_FORMAT'], $visit_time_row['user_lastvisit'], $board_config['board_timezone']) : 'Never';

#
#-----[ FIND ]------------------------------------------ 
#
			'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------ 
#
			'LAST_VISIT_TIME' => $last_visit_time,

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

#
#-----[ FIND ]------------------------------------------ 
#
	  <th class="thTop" nowrap="nowrap">{L_JOINED}</th>

#
#-----[ AFTER, ADD ]------------------------------------------ 
#
	  <th class="thTop" nowrap="nowrap">{L_LAST_VISITED}</th>

#
#-----[ FIND ]------------------------------------------ 
#
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>

#
#-----[ AFTER, ADD ]------------------------------------------ 
#
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.LAST_VISIT_TIME}</span></td>

#
#-----[ FIND ]------------------------------------------ 
#   If you have added other columns to your member list, this
#   will look different.  Just change the colspan="#" part to
#   be one greater if it isn't 8.  (ie if it is 10, change it
#   to 11).
#
	  <td class="catbottom" colspan="8" height="28">&nbsp;</td>

#
#-----[ REPLACE WITH ]------------------------------------------ 
#
	  <td class="catbottom" colspan="9" height="28">&nbsp;</td>

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
#
#End
Kullanıcı avatarı
nameless
Kayıtlı Kullanıcı
Mesajlar: 28
Kayıt: 13.05.2007, 18:15
Konum: İstanbul/karabük
İletişim:

Mesaj gönderen nameless »

Teşekkürler bir deneyeyim...
Sorun çıkarsa gene burdayım :D
Kullanıcı avatarı
nameless
Kayıtlı Kullanıcı
Mesajlar: 28
Kayıt: 13.05.2007, 18:15
Konum: İstanbul/karabük
İletişim:

Mesaj gönderen nameless »

Profilde olanı yaptım ama böyle bir şey oldu;
Kayıt: 23 Nis 2007
Toplam mesajlar: *
[Toplamın *% / Hergün * mesaj]
***** tarafından gönderilen tüm mesajları bul
Konum:
Web sitesi:
Meslek:
İlgi alanları:
Last Visited: Pzr May 06, 2007 7:38 am
Acaba bu "son ziyaret"i "kayıt"ın altına nasıl alabiliriz?
"Konuşsam Tesiri Yok; Sussam Gönül Razı Değil..."

"Doğru olsan ok gibi yabana atarlar seni, eğri olsan yay gibi elde tutarlar seni."
Kullanıcı avatarı
Mirach
Destek Ekibi Lideri
Destek Ekibi Lideri
Mesajlar: 1664
Kayıt: 27.03.2006, 01:06
Konum: İstanbul

Mesaj gönderen Mirach »

includes/usercp_viewprofile.php dosyasındaki değişiklikleri aşağıda olduğu gibi yapmayı deneyin.

Kod: Tümünü seç

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

includes/usercp_viewprofile.php 

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

$regdate = $profiledata['user_regdate'];

# 
#-----[ 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 
//------------------------------------------------------------------------------ 
Profilinde phpBB forumunun adresini girmemiş üyelere ve kurallara aykırı şekilde açılmış başlıklara destek verilmez.
Resim Resim Resim
Kullanıcı avatarı
nameless
Kayıtlı Kullanıcı
Mesajlar: 28
Kayıt: 13.05.2007, 18:15
Konum: İstanbul/karabük
İletişim:

Mesaj gönderen nameless »

Mirach yazdı:includes/usercp_viewprofile.php dosyasındaki değişiklikleri aşağıda olduğu gibi yapmayı deneyin.

Kod: Tümünü seç

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

includes/usercp_viewprofile.php 

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

$regdate = $profiledata['user_regdate'];

# 
#-----[ 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 
//------------------------------------------------------------------------------ 
Hocam bunu profile_view_body.tpl den yapamaz mıyız;

Kod: Tümünü seç

		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}:&nbsp;</span></td>
		  <td width="100%"><b><span class="gen">{JOINED}</span></b></td>
		</tr>
		      <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>
Böyle olsa?
"Konuşsam Tesiri Yok; Sussam Gönül Razı Değil..."

"Doğru olsan ok gibi yabana atarlar seni, eğri olsan yay gibi elde tutarlar seni."
guardians
Kayıtlı Kullanıcı
Mesajlar: 10
Kayıt: 14.05.2007, 23:50
İletişim:

Mesaj gönderen guardians »

Türkçe Yapmak İsteyenler

language/lang_english/lang_main.php

$lang['Last_Visited'] = 'Last Visited';
$lang['Never'] = 'Never';

Satırların da 'Last Visited' Yazan Yere 'Sisteme Son Giriş'
'Never' Yazan Yere 'Giriş Yapmamış' Yazabilirler....

Ayrıca Güzel Mod.. Cupra Arkadaşımıza Teşekkür Ediyoruzz
Kullanıcı avatarı
sercan37
Kayıtlı Kullanıcı
Mesajlar: 54
Kayıt: 16.12.2006, 22:06
Konum: Kastamonu / Ankara
İletişim:

Mesaj gönderen sercan37 »

bu modda hata var.Son giriş tarihini düzgün vermiyor.Sanırım son girişinden bir önceki tarihi veriyor.
Kilitli

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

Kimler çevrimiçi

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