I always hated how the poll plugin doesn't allow you to stick a poll in a story so your users don't have to go search for it on the front page.
Make sure PHP is enabled. Then in lib-custom but the following code.
Text Formatted Code
function phpautotags_poll_show($p1, $p2, $fulltext)
{
global $_TABLES;
$size = $p1;
$qid = $p2;
// Check poll enabled
if ($qid != '') {
if (DB_getItem($_TABLES['pollquestions'], 'display', "qid = '".$qid."'") == 0) {
$retval = "This Poll is Closed.<br>" . POLLS_pollResults( $qid, $size );
} else {
$retval = POLLS_showPoll(0, $qid);
}
} else {
$retval = POLLS_showPoll( 0, $qid);
}
$retval = '<div class="poll-autotag" style="width: '.$p1.';">'.$retval.'</div>';
return $retval;
}
That's it. To use the autotag you pass the size you want and the poll id. If no poll id is passed then it will show all enabled polls at the time.