citricguy2
10-13-2008, 12:54 AM
Is there a variable I can use to display how many reviews a user has given in the within the link directory? Like a post count for that section?
Brian
10-13-2008, 12:44 PM
About the only way would be to query the database each time since that info is not stored anywhere.
$linkcount = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "adv_links_posts WHERE userid = $userid");
echo $linkcount['count'];
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.