2007-09-03, 12:46 PM
2007-09-03, 03:12 PM
no there isnt =P
but you can add this function into ./inc/functions.php
Usage : check_poll($tid) ; if the thread has a poll, it returns the PollID.
but you can add this function into ./inc/functions.php
function check_poll($tid)
{
global $db, $mybb;
$query = $db->simple_select(TABLE_PREFIX."threads", "poll", "tid='".$tid."'");
$poll = $db->fetch_field($query, "poll");
if($poll != 0)
{
// POLL ID
return $poll;
}
}
Usage : check_poll($tid) ; if the thread has a poll, it returns the PollID.
2007-09-03, 04:01 PM
Cheers