Son ziyaret tarihi
Son ziyaret tarihi
Ü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.
Arkadaşlar forumda arama yaptım ama bu konuyla ilgili bir şey bulamadım.
Eğer varsa bir link verirseniz sevinirim.
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
| Site Kuralları| [ resmi görüntülemek için tıklayın ]
[ resmi görüntülemek için tıklayın ]
Türkiyenin #1 phpBB kaynağı phpbbturkey.com
[ resmi görüntülemek için tıklayın ]
Türkiyenin #1 phpBB kaynağı phpbbturkey.com
ü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"> </td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="catbottom" colspan="9" height="28"> </td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#End
| Site Kuralları| [ resmi görüntülemek için tıklayın ]
[ resmi görüntülemek için tıklayın ]
Türkiyenin #1 phpBB kaynağı phpbbturkey.com
[ resmi görüntülemek için tıklayın ]
Türkiyenin #1 phpBB kaynağı phpbbturkey.com
Profilde olanı yaptım ama böyle bir şey oldu;
Acaba bu "son ziyaret"i "kayıt"ın altına nasıl alabiliriz?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
"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."
"Doğru olsan ok gibi yabana atarlar seni, eğri olsan yay gibi elde tutarlar seni."
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;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 //------------------------------------------------------------------------------
Kod: Tümünü seç
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}: </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>
"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."
"Doğru olsan ok gibi yabana atarlar seni, eğri olsan yay gibi elde tutarlar seni."
Kimler çevrimiçi
Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 5 misafir