افتح ملف
includes/functions_showthread.php
اخي قبل اي تعديل خلي عندك نسخع احتياطي من الملف هذا علي جهازك خوفا من اي شء لا قدر الله تقدر ترجعه علطول
ودور عن:
$usertherd = $DB_site->query_first("SELECT COUNT(threadid) AS total FROM thread WHERE postuserid=$post[userid] ");
$usertherdcoun = $usertherd[total];
$userpostdcoun = $post[posts] - $usertherdcoun ;
واستبدله بهذا:
if($post[userid] !=0){
$usertherd = $DB_site->query_first("SELECT COUNT(threadid) AS total FROM thread WHERE postuserid=$post[userid] ");
$usertherdcoun = $usertherd[total];
$userpostdcoun = $post[posts] - $usertherdcoun ;
}
ملاحظه /
خد نسخه من الملف الاول وبعد كدا اعمل التعديل
|