Yeni Bir İstatislik...

Smf Destek/Yeni Bir İstatislik... => Boardindex.template.php de bulun. Kod: [Seç]// Show the "Board name      Topics  Posts    Last Post" header. Altına. Kod: [Seç]// Forum istatistikleri global $db_prefix,$modSettings; $today = strtotime("24 hours ago"); date('j') == 1 ? $thismonth = $today : $thismonth =

Gönderen Konu: Yeni Bir İstatislik...  (Okunma sayısı 547 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı tecknowl

  • Kıdemli Üye
  • *
  • İleti: 474
  • Karma: 19
  • Cinsiyet: Bay
  • Taşlaşmış Kalplere Atılan En Büyük Füze ..!
    • Türkiye'nin Siyaseti
  • Smf Sürümü: 1.0.2
Yeni Bir İstatislik...
« : 02 Eylül 2009, 16:44:56 »



Boardindex.template.php de bulun.

Kod: [Seç]
// Show the "Board name      Topics  Posts    Last Post" header.
Altına.

Kod: [Seç]
// Forum istatistikleri
global $db_prefix,$modSettings;
$today = strtotime("24 hours ago");
date('j') == 1 ? $thismonth = $today : $thismonth = strtotime(date('F') . ' 1');
date('l') == 'Sunday' ? $thisweek = $today : $thisweek = strtotime('last Sunday');
date('M') == 'January' ? $thisyear = $thismonth : $thisyear = strtotime('January 1');
$query = db_query("SELECT
COUNT(dateRegistered > $thisyear OR NULL) as year,
COUNT(dateRegistered > $thismonth OR NULL) as month,
COUNT(dateRegistered > $thisweek OR NULL) as week,
COUNT(dateRegistered > $today OR NULL) as today
FROM {$db_prefix}members
WHERE is_activated = 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($query);
settype($row['today'], "integer");
settype($row['week'], "integer");
settype($row['month'], "integer");

// Istatistik bilgiler online üyelere by KardesTurk.
if ($context['user']['is_logged'])
echo'
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="100%" background="', $settings['images_url'], '/catbg.jpg" align="center">
<table style="filter:glow (color=#ff3333 strength=2)">
  <td align="center">
<p align="center"><img border="0" src="http://img106.imageshack.us/img106/5030/star34qs3.gif" width="11" height="10">
<font face="Comic Sans MS"> <b><font color="#ff0066"> Sayfa İstatiklerimiz !</font> <img border="0" src="http://img106.imageshack.us/img106/5030/star34qs3.gif" width="11" height="10"></table></td>
  </tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="30%"> <font size="2"><b>
<font color="#000033">
Tarih</font> </b> : ' , $context['current_time'], '
<br>
<b><font color="#000033">
  Bu Ay</font> </b>: ' , $row['month'] , ' üye kayıt olmuş<br>
<b><font color="#000033">
Bu Hafta</font> </b>: ' , $row['week'], ' üye kayıt olmuş</font><br>
</td>
<td width="40%">
<p align="center">
<font size="2">
<b><font color="#800000">Son Üye</font></b> : ' , $context['common_stats']['latest_member']['link'], '
aramiza hosgeldiniz !<br>
<b>
Zumruduankayoldasligi.Com</b> Size İyi Vakit Geçirmenizi Diliyor !</font></td>
<td width="30%">
<p align="right"><font size="2"><font color="#000033"><b>Paylaşımcı üye sayımız</b></font> : ', $context['common_stats']['total_members'],'<br>
<font color="#000033"><b>
Konu Sayısı</b></font> : ', $context['common_stats']['total_topics'], '<br>
<font color="#000033"><b>
Cevap Sayısı</b></font> : ' ,$context['common_stats']['total_posts'], '</font></td>
  </tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="100%">
<table border="0" width="100%" background="', $settings['images_url'], '/catbg.jpg">
  <tr>
<td width="77%"><script language="JavaScript">
function setcountup(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}
//////////CONFIGURE THE countup SCRIPT HERE//////////////////
//STEP 1: Configure the date to count up from, in the format year, month, day:
//This date should be less than today
setcountup(2007,03,30)
//STEP 2: Configure text to be attached to count up
var displaymessage=" [Her saniye büyümekteyiz] "
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
var countupwidth='95%'
var countupheight='20px' //applicable only in NS4
var countupbgcolor='alt1'
var opentags='<span class="smallfont">'
var closetags='</span>'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''
function start_countup(){
if (document.layers)
document.countupnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
countup()
}
if (document.all||document.getElementById)
document-.-write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')
window.onload=start_countup
</script></td>
<td width="23%">
<p align="right"><a href="index.php?action=pm;sa=send;u=1"><i>Kontakt/Ihtibat</i></a></td>
  </tr>
</table>
</td>
  </tr>
</table>
<br>
';


Gerekli Yerleri kendinize göre düzeltin...
Elveda Millet!

Çevrimdışı NoviHosting

  • Yeni Üye
  • *
  • İleti: 12
  • Karma: 0
  • Smf Sürümü: 1.0.2
  • Web Siteniz: -NoviHosting-
Ynt: Yeni Bir İstatislik...
« Yanıtla #1 : 21 Eylül 2009, 17:14:04 »
Teşekkürler

Çevrimdışı jackie

  • Tam Üye
  • *
  • İleti: 111
  • Karma: 1
  • www.SmfMod.com
  • Smf Sürümü: 1.1.11
  • Web Siteniz: ozelegitimciyiz.org
Ynt: Yeni Bir İstatislik...
« Yanıtla #2 : 07 Ocak 2010, 01:07:04 »
Bu ististikleri uygulamak istedim ama ilgili kodu bulamadım.bir bakabilir misiniz?

ekte:


GoogleTagged - Etiketler