LatestUserStats, kullanıcının kaydolduğu zamanı gösterir

phpBB 2.0.x sürümleri için geliştirilen ve yapım aşamasındaki Alpha, Beta MODlar & PreMODlar.
Kilitli

mod'u beğendiniz mi?

evet
2
50%
nayır
2
50%
 
Toplam oy: 4

Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

LatestUserStats, kullanıcının kaydolduğu zamanı gösterir

Mesaj gönderen cupra »

index'te kayıt istatistiklerinin olduğu yerde kayıt zamanı kullanıcının isminden sonra belirtilir

Kod: Tümünü seç

############################################################## 
## MOD Title:		LatestUserStats
## MOD Author:		Bert < iq62ut36@zonnet.nl >
##			Please send me an email if you're using this MOD
## MOD Description:	This mod enhances the information about the
##			last registered user in your forum. It adds
##			the date the user registered.
## MOD Support site:	-
## MOD Version: 	1.0.0
## MOD Compatibility:	2.0.17
##############################################################
## Installation Level:	Easy
## Installation Time:	~5 minutes
##
## Files To Edit:	4
##			languages/lang_english/lang_main.php
##			includes/functions.php
##			index.php
##			templates/subSilver/index_body.tpl
##
## Included Files: 0
##		   
############################################################## 
## MOD History:
##
##   2005-10-28 - Version 1.0.0
##	-  Original version.
############################################################## 
## This MOD is released under the GPL License. 
## Intellectual Property is retained by the MOD Author(s) listed above 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbbhacks.com for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum.
############################################################## 
## Author Notes: 
##			Please send me an email if you're using this MOD
##			including the location of your forum.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

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

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

?>

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

$lang['newest_user_since'] = 'registered on';

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
		case 'newestuser':
			$sql = "SELECT user_id, username

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

		case 'newestuser':
			$sql = "SELECT user_id, username, user_regdate

# 
#-----[ OPEN ]------------------------------------------ 
#
index.php

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

$newest_user = $newest_userdata['username'];

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

$newest_user_since = $newest_userdata['user_regdate'];

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

		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'), 

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

		'NEWEST_USER_SINCE' => $lang['newest_user_since'] . ' ' . create_date($board_config['default_dateformat'], $newest_user_since, $board_config['board_timezone']),

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

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

{NEWEST_USER}

# 
#-----[ IN LINE, AFTER, ADD ]------------------------------------------ 
#

({NEWEST_USER_SINCE})

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
#

# EoM
Kullanıcı avatarı
pikachu
Kayıtlı Kullanıcı
Mesajlar: 3062
Kayıt: 16.07.2006, 15:32
Konum: ağandon /
İletişim:

Mesaj gönderen pikachu »

düşüncem: bence bunun yerine user ıd gibi bişey daha iyi yani bence nezaman kaydolduğunun bi manası yokki kayıt yıldönümünümü kutlayacaz?* :D :D :D :D :D :D :D ama mod mod dur, emeğe saygı... farklı tarz biyerlerde işe yarayabilir, önemi olabilir tabiki...
Kilitli

“2.0.x PreMODlar & Yapım aşamasındaki MODlar” sayfasına dön

Kimler çevrimiçi

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