Helpful Information
 
 
Category: vB4 Programming Discussions
How to modify the Plugin

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

there are a threads in vbulletin.com blogs

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.










privacy (GDPR)