[MOD] Posts in Last 24 Hours / Son 24 Saat İçinde Atılan ...

[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ı
NEFRİT
Uzaklaştırıldı
Mesajlar: 1404
Kayıt: 28.01.2006, 04:15
Konum: DarkKingdom
İletişim:

[MOD] Posts in Last 24 Hours / Son 24 Saat İçinde Atılan ...

Mesaj gönderen NEFRİT »

Bu mod foruma son 24 saat içinde toplam kaç mesaj atıldığını index.php üstünde (forum ana sayfa) gösterir.

Kod: Tümünü seç

##############################################################
## MOD Title: Posts in Last 24 Hours
## MOD Author: Throckmorton < lance at cylan dot net > (Lance Clarke) n/a 
## MOD Description: Adds number of posts in the last 24 hours to your board stats
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: index.php
##                includes/functions.php
##                language/lang_english/lang_main.php
##
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU 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:
##
## Adds number of posts in the last 24 hours to your board stats
## right after the "Our users have posted a total of XXX articles" line
##
## This MOD adds to the TOTAL_POSTS variable itself and therefore doesn't modify your templates
## which means it should work with any template that displays total posts.
##
############################################################## 
## MOD History: 
## 
##  2005-08-14 - Version 1.0.1
##               Changes to header only, for ModDB compliance
##               
##  2005-08-09 - Version 1.0.0
##             - Initial Release 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
$total_posts = get_db_stat('postcount');
#
#-----[ AFTER, ADD ]------------------------------------------
#
$posts_last_24 = get_db_stat('last24');
#
#-----[ FIND ]------------------------------------------
#
else
{
	$l_total_post_s = $lang['Posted_articles_total'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#

$l_posted_last_24_hours = $lang['Posted_last_24_hours'];
#
#-----[ FIND ]------------------------------------------
#
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
#
#-----[ IN-LINE FIND ]------------------------------------------
#
sprintf($l_total_post_s, $total_posts)
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 . sprintf($l_posted_last_24_hours, $posts_last_24)
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
		case 'postcount':
		case 'topiccount':
			$sql = "SELECT SUM(forum_topics) AS topic_total, SUM(forum_posts) AS post_total
				FROM " . FORUMS_TABLE;
			break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
		case 'last24':
			$sql = "SELECT COUNT(post_id) 
				FROM " . POSTS_TABLE . " 
				WHERE post_time > UNIX_TIMESTAMP() - 86400";
			break;
#
#-----[ FIND ]------------------------------------------
#
		case 'topiccount':
			return $row['topic_total'];
			break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
		case 'last24':
			return $row['COUNT(post_id)'];
			break;
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Posted_article_total'] = 'Our users have posted a total of <b>%d</b> article'; // Number of posts
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Posted_last_24_hours'] = ', <b>%d</b> of them in the last 24 hours'; // Number of posts in last 24 hours
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM
Özellerden kullanıcılara reklam yaptığım için sayın yöneticim beni uzaklaştırdı.
Kullanıcı avatarı
Mycom
Kayıtlı Kullanıcı
Mesajlar: 17
Kayıt: 10.09.2006, 00:00
İletişim:

Mesaj gönderen Mycom »

Bende "Parse error: parse error, unexpected '.' in /var/www/vhosts/gungoren-aihl.com/httpdocs/index.php on line 274" bu hatayı verdi..Acaba nerde yanlıs yapmıs olabilirim..?
Kullanıcı avatarı
burak21
Kayıtlı Kullanıcı
Mesajlar: 84
Kayıt: 27.08.2006, 11:11
İletişim:

Mesaj gönderen burak21 »

bu mod sayesinde son msj veya atılan konu index ana sayfada forumun ana dizininde beliriyormu peki
http://www.sibergenclik.com / phpbb ile büyüyen dev forum
Kullanıcı avatarı
RSNBK
Kayıtlı Kullanıcı
Mesajlar: 311
Kayıt: 11.05.2006, 22:08
Konum: zonguldak/Bartın
İletişim:

Mesaj gönderen RSNBK »

Kod: Tümünü seç

#-----[ FIND ]------------------------------------------ 
# 
      'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), 
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
sprintf($l_total_post_s, $total_posts) 
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
 . sprintf($l_posted_last_24_hours, $posts_last_24) 
# 
#-----[ OPEN ]------------------------------------------ 
bence burda bi sorun var..hata veriyo...
Kullanıcı avatarı
Mycom
Kayıtlı Kullanıcı
Mesajlar: 17
Kayıt: 10.09.2006, 00:00
İletişim:

Mesaj gönderen Mycom »

RSNBK yazdı:

Kod: Tümünü seç

#-----[ FIND ]------------------------------------------ 
# 
      'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), 
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
sprintf($l_total_post_s, $total_posts) 
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
 . sprintf($l_posted_last_24_hours, $posts_last_24) 
# 
#-----[ OPEN ]------------------------------------------ 
bence burda bi sorun var..hata veriyo...
Evet bende problemin ordan kaynaklandıgını düsünüyorum..
Bu kodu ekledikten sonra site bende hic acılmıyor , üstte yazdıgım hatayı veriyor..Yedeklerini tekrar attımda düzeldi ancak bunu nasıll kullanıcaz biri cevap verirse..
lord-volkan
Kayıtlı Kullanıcı
Mesajlar: 127
Kayıt: 19.08.2006, 04:47
İletişim:

Mesaj gönderen lord-volkan »

arkadaşlarım modu kurarken biraz dikkatli olun bence
bende hiç bir sorun çıkmadı...........
mod çok iyi çalışıyor....
selam millet!!!
süper bi pro süper bi forum
yapanların ellerine sağlık............
lord-volkan
Kayıtlı Kullanıcı
Mesajlar: 127
Kayıt: 19.08.2006, 04:47
İletişim:

Mesaj gönderen lord-volkan »

birde böle deneyin bakalım :

Kod: Tümünü seç

-------------[AÇ]--------------------------------------------------
index.php
-------------[BUL]-------------------------------------------------
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
-------------[değiştir]----
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts) . sprintf($l_posted_last_24_hours, $posts_last_24),
-------------[kaydet ve kapat]-----------------------------------
mod şu anda sorunsuz çalışıyor................
yapan arkadaşa teşekkür ederim
selam millet!!!
süper bi pro süper bi forum
yapanların ellerine sağlık............
Kullanıcı avatarı
Mycom
Kayıtlı Kullanıcı
Mesajlar: 17
Kayıt: 10.09.2006, 00:00
İletişim:

Mesaj gönderen Mycom »

[ resmi görüntülemek için tıklayın ]

Nerde yanlış yapmıs olabilirim acaba ? :?
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 »

lord-volkan yazdı:birde böle deneyin bakalım :

Kod: Tümünü seç

-------------[AÇ]--------------------------------------------------
index.php
-------------[BUL]-------------------------------------------------
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
-------------[değiştir]----
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts) . sprintf($l_posted_last_24_hours, $posts_last_24),
-------------[kaydet ve kapat]-----------------------------------
mod şu anda sorunsuz çalışıyor................
yapan arkadaşa teşekkür ederim
ben böyle denedim sorun çıkmadı yapanların eline sağlık
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 1 misafir