i think we're so close but again something is wrong it show always 0
in nut shell what i've done:
name: samle_test
location: member_build_blocks_start
code:
Code:
$count = $vbulletin->db->query_first("SELECT COUNT(*) AS count
FROM ".TABLE_PREFIX."thread
WHERE postuserid = ".
$vbulletin->userinfo['userid']."
AND forumid IN(164, 165, 166)");
$vbulletin->userinfo['memberinfo_threadcount'] = $count['count'];
in template:
memberinfo_block_statistics
Code:
<li><span class="shade">Płatne Artykuły:</span> $bbuserinfo[memberinfo_threadcount]</li>
And in member profile i can see
Płatne Artykuły:
0
It shoud be 386 not 0
DEMO:
http://www.sportforum.pl/members/marcin-hejnowicz.html (Go To Statistic)