Sürüm: 0.4.0 BETA
Yazar: ALEXIS ( Sevdin Filiz )
Açıklama: "kendi iletileriniz" ve "yeni iletiler" linklerinin yanına ilgili mesaj sayısını ekler
örnek: "kendi iletileriniz (833)" ve "yeni iletiler (28)"
Uyumlu olduğu phpBB3 sürümleri:
- phpBB 3.0.1
Özellikleri:
- yeni ileti sayısını sql sorgusu ile bir count değeri alarak bulur.
- kişinin kendi iletilerinin sayısını ise profilinde yazan sayıdan okur
- Kullanıcı dostu bir görünüm ve bilgilendirme sağlar
Yazar notları:
Şu an sadece MySQL ve SqLite üstünde test edilmiştir
Sonraki sürümlere bırakılan özellikler/fikirler:
COUNT() fonksiyonunun bütün veritabanları ile uyumlu şeklinde kullanılması için çalışılacak
0.4.0B yenilikleri:
phpBB 3.0.1 üstünde test edildi, küçük dil hatası düzeltildi
Dil eklemeleri:
dil dosyalarına yapılan bir müdahale yoktur.
Lisans: GNU General Public License v2
Kurulum zorluğu: Kolay
Kurulum süresi: 1 dakika
Dosya formatı: .txt
Dosya indirme: (aşağıdaki kod görünümünden kopyalayıp bir dosyaya kaydediniz)
Ön izleme:

- Kod: Tümünü seç
##########################################################
## MOD Title: [3.0.1] New Posts Count Since Last Visit & Your Post Count [0.4.0B]
## MOD Author: angelside < n/a > (Sevdin Filiz) http://www.phpbbturkiye.net
## MOD Modified: yakusha < n/a > (Sabri Ünal) http://www.yakusha.net
## MOD Description: This mod add a post count information: new posts since last visit & your post number
## New Post => Your Post (Your Post Count)
##
## MOD Version: 0.4.0 BETA
##
## Installation Level: Easy
## Installation Time: 1 minutes
## Files To Edit: (1)
## * includes/functions.php
##
## Included Files:
## n/a
##
##########################################################
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
##########################################################
##
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##
##########################################################
##
## Author Notes:
## n/a
##
##########################################################
##
## MOD History:
##
## 2007-08-05 - Version 0.4.0
## * Renamed and tested on phpBB 3.0.1
##
## 2007-08-05 - Version 0.3.0
## * renamed and redesigned mod
##
## 2007-07-25 - Version 0.2.0
## * initial beta release
##
## 2007-04-23 - Version 0.1.0
## * initial alfa release
##
##########################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
##########################################################
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
// The following assigns all _common_ variables that may be used at any point in a template.
#
#-----[ BEFORE, ADD ]-------------------------------------------
#
//
// + new posts count since last visit & your post count
//
if ($user->data['is_registered'])
{
// new posts count since last visit
$sql = "SELECT COUNT(post_id) as total
FROM " . POSTS_TABLE . "
WHERE post_time >= " . $user->data['session_last_visit'];
$result = $db->sql_query($sql);
if( $result )
{
$row = $db->sql_fetchrow($result);
$user->lang['SEARCH_NEW'] = $user->lang['SEARCH_NEW'] . " (" . $row['total'] . ")";
}
// your post count
$sql = "SELECT user_posts
FROM " . USERS_TABLE . "
WHERE user_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
if( $result )
{
$row = $db->sql_fetchrow($result);
$user->lang['SEARCH_SELF'] = $user->lang['SEARCH_SELF'] . " (" . $row['user_posts'] . ")";
}
}
//
// - new posts count since last visit & your post count
//
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM