Bu Hack sayesinde Boarddaki tüm Üyelerinizin Dogum TArihi belirtmisler ise, tüm Boardun ortalama Yas oranini hesapliyor ve en assagida Istatistiklerde gösteriyor....



ACIKLAMA
index.php:

ara:

[code]if ($stats['postcount'] >= 1000) $stats['postcount'] = number_format($stats['postcount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));[/code]

altina ekle:

[code]$result = $db->query("SELECT birthday FROM bb".$n."_users WHERE birthday NOT LIKE '0000%'");
while ($row = $db->fetch_array($result)) {
$days = $days+(time()-mktime(0,0,0,substr($row[0],5,2),substr($row[0],8,2),substr($row[0],0,4)))/86400;
}
$result = $db->query_first("SELECT COUNT(birthday) FROM bb".$n."_users WHERE birthday NOT LIKE '0000%'");
$avgage = str_replace(".",",",round($days/$result[0]/365.25,2));[/code]




index.tpl:

ara:

[code]{$lang->items['LANG_START_STATISTIC_NEWESTMEMBER']} $stats[username].[/code]

bunun ile degistir:

[code]{$lang->items['LANG_START_STATISTIC_NEWESTMEMBER']} $stats[username].

{$lang->items['LANG_START_STATISTIC_AVGAGE']} $avgage[/code]



Dil Kategorisi olustur:

Dil Degiskeni: LANG_START_STATISTIC_AVGAGE

Kategori: start

Degisken Degeri: Ortalama Yas Orani:

Beğeniler: 0
Favoriler: 0
İzlenmeler: 523
favori
like
share