Thanks but I am still lost. Let me be more specific.
I have this function (which I didn't write) which is in my inludes/function.php. what it is supposed to do is check if the user has started a thread in forum number 10.
PHP Code:
// ###################### Check if user posted Introductory thread #######################
function posted_in_forum($userid,$forumid = 10) {
global $DB_site;
$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;
}
First, is the function correct and if so, what should my template conditional look like? right now it looks like this <if condition="$posted_in_forum"> but i have a strong feeling that's wrong
Can someone help me with this? Thanks!
Eric