PDA

View Full Version : How to modify the Plugin


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

fourat
11-18-2009, 10:01 AM
there are a threads in vbulletin.com blogs

Lynne
11-18-2009, 01:51 PM
Please always post hook_locations and template names for all code or we can't tell when you are adding things. And, as mentioned, there are several blogs over on vb.com that cover the new template syntax and the registering of variables. Please take a look over there.