alnassrah
11-17-2009, 09:02 PM
Hi
How to modify the Plugin from vb3 to vb4
global $db;
$this_hack_userid = $this->post[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 ;
$vbphrase[threads] : $usertherdcoun
$vbphrase[replies] : $userpostdcoun
How to modify the Plugin from vb3 to vb4
global $db;
$this_hack_userid = $this->post[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 ;
$vbphrase[threads] : $usertherdcoun
$vbphrase[replies] : $userpostdcoun