السلام عليكم ورحمة الله وبعد
هذه طريقة عمل عداد لصفحات المنتدى
1- اعمل ملفين في النوت باد وسمي كلا منهم
count.txt
ip.txt
2- حمل الملفين في الدايركتري الخاص بال vb
3- اعطيهما تصريح 777
4- افتح ال ftb وعدل ملف global.php على النحو التالي
ابحث عن
// ###################### Start init #######################
ضع مباشرة قبله الكود التالي
// ipcounter hack by CX
// config
// create these two files count.txt and ip.txt, chmod them to 777
$count_file = "count.txt";
$ip_file = "ip.txt";
$userip = getenv('REMOTE_ADDR'); // in some fixed IP server, change this line to $userip = getenv('HTTP_X_FORWARDED_FOR');

$count_temp=file($count_file);
$ip_temp=file($ip_file);

$detail=explode("|",$count_temp[0]);
$count_t=getdate(time());
$count_day=$count_t['mday'];

if ($detail[0]==$count_day) {
$detail[1]++;
$detail[2]++;

$count=count($ip_temp);
$check=1;
for ($i=0; $i<$count; $i++) {
$ip_list=str_replace("\r","",str_replace("\n","",$ip_temp[$i]));
if ($ip_list==$userip) $check=0;
}
if ($check==1) {
$detail[3]++;
$detail[4]++;
$fp=fopen($ip_file,"a");
flock($fp,3);
fputs($fp,$userip."\n");
fclose($fp);
}
}
else {
$detail[0]=$count_day;
$detail[1]=1;
$detail[3]=1;
$detail[2]++;
$detail[4]++;
$fp=fopen($ip_file,"w");
flock($fp,3);
fputs($fp,$userip."\n");
fclose($fp);
}

$new=implode("|",$detail);
$fp=fopen($count_file,"w");
flock($fp,3);
fputs($fp,$new);
fclose($fp);

// end ipcounter hack
4- حمل الملف مرة اخرى
5- افتح التمبليت المسمى footer
ابحث في اخر سطر في التمبليت
</smallfont>
</p>
ضع قبله الكود التالي
<br><br>
الصفحات المستعرضة:&nbsp;&nbsp;اليوم= $detail[1],&nbsp;&nbsp;المجموع = $detail[2].&nbsp;&nbsp;مختلف ال IP الزائرة اليوم:&nbsp;&nbsp;المجموع = $detail[3],&nbsp;&nbsp;المجموع = $detail[4].

انتهت العملية وبالتوفيق