Arşiv Anasayfa Modifikasyonlar
Sayfalar: 1
Güzel Degisik Forum Istatistik Bar (By KardesTurk) By: FenKlup Date: 27 December 2007, 16:36:22
Bu eklentiyi sadece online olan üyeler görebilir hale getirdim gayet güzel ve hos görünümlü bir istatistik info bar'dir !!!

Demo : http://img510.imageshack.us/img510/295/testtsft8.jpg

Sadece Anasayfada ve sadece üyelerin görünür haldedir !

BoardIndex.template.php açiniz :

Ara:


:  
// Show the "Board name Topics  Posts Last Post" header.

Bu kodun hemen Öncesine yapistiriniz

:  
// 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=#008000 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">Sayfa istatistiklerimiz !</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="#808000">
Tarih</font> </b> : ' , $context['current_time'], '
<br>
<b><font color="#CCCC00">
  Bu Ay</font> </b>: ' , $row['month'] , ' üye kayıt olmuş<br>
<b><font color="#CCCCFF">
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>
PaylasKardes.Com</b> size iyi vakit geçirmenizi diliyor !</font></td>
<td width="30%">
<p align="right"><font size="2"><font color="#008000"><b>Paylaşımcı üye sayımız</b></font> : ', $context['common_stats']['total_members'],'<br>
<font color="#FF0000"><b>
Konu Sayısı</b></font> : ', $context['common_stats']['total_topics'], '<br>
<font color="#00FFFF"><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(2006,03,31)
//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

function countup(){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
paststring=montharray[mo-1]+" "+da+", "+yr
dd=Date.parse(todaystring)-Date.parse(paststring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
if (document.layers){
document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " gün, "+dhour+" saat, "+dmin+" dakika ve "+dsec+" saniyedir sizlerleyiz... "+displaymessage+closetags)
document.countupnsmain.document.countupnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " gün, "+dhour+" saat, "+dmin+" dakika ve "+dsec+" saniye "+displaymessage+closetags
setTimeout("countup()",1000)
}
</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>
';
Ve kendi sayfaniza göre editlemeniz gereken birkaç yer vardir !

A. burdaki tarihi degistiriniz yukardaki ekleyeceginiz kodlamada



:  
//////////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(2006,03,31)

B. bunuda editleyiniz ve sayfanizin ismini yaziniz yukardaki ekleyceginiz kodlamadan !


:  
     <b><font color="#800000">Son Üye</font></b> : ' , $context['common_stats']['latest_member']['link'], '
      aramiza hosgeldiniz !<br>
      <b>
      PaylasKardes.Com</b> size iyi vakit geçirmenizi diliyor !</font></td>
    <td width="30%">

Teknodyum