i think we are getting closer.
I put this in my functions.php file:
PHP Code:
// ###################### Check if user posted Introductory thread #######################
function posted_in_forum($userid,$forumid) {
global $DB_site, $bbuserinfo;
$posted = $DB_site->query_first("SELECT threadid FROM ".TABLE_PREFIX."thread WHERE postuserid='$userid' AND forumid='$forumid' LIMIT 0,1");
if ($posted['threadid'])
return true;
else
return false;
}
$hasposted = posted_in_forum($bbuserinfo['userid'], 10);
and this is my template conditonal:
HTML Code:
<if condition="$hasposted">
<tr>
<td class="vbmenu_option" align="left">Not Posted</td>
</tr>
<else />
<tr>
<td class="vbmenu_option" align="left">Posted</td>
</tr>
</if>
But still no luck... is it ok to have this $hasposted = posted_in_forum($bbuserinfo['userid'], 10); in my functions.php file? or should it go somewhere else?