You are great man !

But i have still problem ...
It works perfect when I set specific number of postuserid like:
Code:
if ($this->template_name == 'memberinfo_block_statistics')
{
global $vbulletin;
$count = $vbulletin->db->query_first("SELECT COUNT(*) AS count
FROM thread
WHERE postuserid = 1491
AND forumid IN(164, 165, 166)");
}
and it doesn't when i use:
".$vbulletin->userinfo['userid'].":
Code:
if ($this->template_name == 'memberinfo_block_statistics')
{
global $vbulletin;
$count = $vbulletin->db->query_first("SELECT COUNT(*) AS count
FROM thread
WHERE postuserid = ".$vbulletin->userinfo['userid']."
AND forumid IN(164, 165, 166)");
}
instead of the number threads, the result of counting is always 0
is there any another way to replace
Quote:
".$vbulletin->userinfo['userid']."
|
in 3.7.4 version ?