Thursday 20th November 2008
 
 
 
 
 
 


 
 
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Fix Poll Appearance

March 20, 2006 Author: Chris T Posted in: Seditio Core Hacks
 

This is how polls are looking by default. Notice that it doesn’t look like a poll :D 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> &nbsp; ";

Replace by this

$res .= "<p style=\"text-align:center;\"><a href=\"javascript:polls('".$poll_id."')\">".$L['polls_viewresults']."</a> &nbsp; ";

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.

 
Views: 2,633
 

Feed for this Entry Trackback Address The permalink
 

 

4 Responses to “Fix Poll Appearance”

 
#1 w1ckd Says:
April 22nd, 2008 at 12:43 pm

some if the find replace text is missing?

 

 
#2 Tony Says:
May 9th, 2008 at 8:29 pm

cant find any of these lines in recentitems.php

 

 
#3 Chris T Says:
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.

 

 
#4 Kingsley Says:
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)

 

 

 

Leave a Comment