if ($thread['postuserid'] == $vbulletin->userinfo['userid']) { $res = $vbulletin->db->query_first_slave("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "subscribethread WHERE threadid = $thread[threadid]"); $subscribed_count = $res['count']; }
<if condition="$thread[postuserid] == $bbuserinfo[userid]"> $subscribed_count subscribed to this thread <if>