This is how polls are looking by default. Notice that it doesn’t look like a poll
so don’t expect many votes from visitors.

Also notice that ugly space in the second pic above the first option. These things we are going to fix now.
Open plugins\recentitems\recentitems.php. Note that recentitems haven’t change much so the directions may be also applied to ldu version.
Find this line
$res .= stripslashes($row['poll_text'])."<p>";
Replace by this
$res .= stripslashes($row['poll_text'])."<br /> <br />";
Find this line
$res .= stripslashes($row['po_text'])."</a><br />";
Replace by this
$res .= "<input type='radio' name='pollbutton' class='radio' /> ".stripslashes($row['po_text'])."</a><br />";
Find this line
$res .= "</p><p style=\"text-align:center;\"><a href=\"javascript:polls('".$poll_id."')\">".$L['polls_viewresults']."</a> ";
Replace by this
$res .= "<p style=\"text-align:center;\"><a href=\"javascript:polls('".$poll_id."')\">".$L['polls_viewresults']."</a> ";
Now let’s see what we have done
Much better in the next update of this quide i will add a vote button because usually visitors don’t understand that they have to click on the option to vote.
Feed for this Entry Trackback Address The permalink
4 Responses to “Fix Poll Appearance”
May 9th, 2008 at 9:10 pm
yeah that’s an old core hack, i think it was for sed 101, i’ll see what i can do.
May 22nd, 2008 at 1:22 pm
Well, Don’t know what you are doing wrong, but the hack works perfectly for me, and I have the latest stable version of Sed (v121)


Recent Comments