لوحة التحكم
التحكم بالاضافات البرمجيه Plugin
عداد المواضيع والردود والزيارات والمرفقات
تعديل :
استبدل محتواه بـ :
PHP:
[CENTER]global $db;
$this_hack_userid = $this->post[userid];
if($post[userid] !=0){
$user_theard_query = $db->query_read("SELECT COUNT(threadid) AS total FROM " . TABLE_PREFIX . "thread WHERE postuserid=$this_hack_userid");
$personal1=$db->query_first("SELECT SUM(views) AS personalviews FROM thread WHERE postuserid=$post[userid] AND open!='10'");
$personal= 2*$post[posts]+$personal1[personalviews];
if ($personal1 == ""):
$personal1 = "0";endif;
global $db;$personal1=$db->query_first("SELECT SUM(views) AS personalviews FROM thread WHERE postuserid=$post[userid] AND open!='10'");
$personal= 2*$post[posts]+$personal1[personalviews];
if ($personal1 == ""):
$personal1 = "0";endif;
$attachment = $db->query_first("SELECT COUNT(attachmentid) AS total FROM attachment WHERE userid=$post[userid] ");
$attachcoun = $attachment[total];
$usertherd_pro_fetch = $db->fetch_array($user_theard_query);
$usertherdcoun = $usertherd_pro_fetch[total];
$userpostdcoun = $post[posts] - $usertherdcoun ;}
//arabdeaf.net###
[/CENTER]
واذا ما نفع
عدد المواضيع والردود لكل عضو من Milad
استبدل محتواه بـ :
PHP:
$this_hack_userid = $this->post[userid];
PHP:
[CENTER]
if ($this_hack_userid != '')
{
$user_theard_query = $db->query_read("SELECT COUNT(threadid) AS total FROM " . TABLE_PREFIX . "thread WHERE postuserid=$this_hack_userid");
$usertherd_pro_fetch = $db->fetch_array($user_theard_query);
$usertherdcoun = $usertherd_pro_fetch[total];
$userpostdcoun = $post[posts] - $usertherdcoun ;
}
[/CENTER]
في امان الله في شرح قادم
اخوكم عباس