Page 2 of 3
Posted: Tue 16. May 2006, 18:13
by velo
I use the Poll and it works great. But now i like to change the color of the buttons. I dont know how or where, so i hope someone knows the answer.
greetings,
velo
Posted: Wed 24. May 2006, 14:59
by JensZ
Hi Velo,
I believe you can do it when you add the content part. Next to where you set the button text there is a field ("style") where you can set the CSS style of the button.
Cheers,
Jens
Posted: Sat 3. Jun 2006, 12:33
by culda_a
one question from one IP you can vote only 1 time at 24 hours?
Posted: Fri 16. Jun 2006, 15:21
by fopulu
@JensZ
Very nice Mod!
One question, where can I change the color of the bars? Or what css is it?
Posted: Fri 16. Jun 2006, 20:51
by fopulu
I found it....
Thx!
Posted: Fri 16. Jun 2006, 23:42
by Ben
Can you tell us where? (maybe your findings will help others)
Posted: Sat 17. Jun 2006, 09:25
by fopulu
Yes, you're right! Sorry....
Check out the cnt89.article.inc.php file in line 157 you find:
$html .= '</td><td><span style="float: left; height: 13px; background-color: #D6350F; border-top: 1px solid #ffffff; border-left: 1px solid #ffffff; border-right: 1px solid #ffffff; border-bottom: 1px solid #ffffff; margin: .2em 0 .5em 0; width:'.round(($poll_form["count"][$key]/$total_votes*100),0).'px;"><!-- --></span> <span style="">'.round(($poll_form["count"][$key]/$total_votes*100),0).'%</span></td></tr>'."\n";
Change the code for the colors as you like it....
Posted: Mon 19. Jun 2006, 21:47
by fopulu
@JensZ
is it possible to define the max. width of the bars?
or is it posible to hide/unhide the bars and only the % were shown?
thx
Posted: Wed 21. Jun 2006, 13:43
by JensZ
fopulu:
Sorry, can't change the width of the bars (1px = 1%).
culda_a:
The IP addresses does not get reset after 24h. Maybe your internet provider changed your IP so you could vote a second time? All IP addresses are saved until the web poll content part is updated.
Cheers,
Jens
Posted: Wed 21. Jun 2006, 14:07
by fopulu
Ok.... can I insert a <br> between the topic and the %-bar, so that the topic and the bar is shown in 2 lines? Because I wanna place the poll in the {RIGHT} and I have only 230px...
If yes, where can I insert it?
Posted: Wed 5. Jul 2006, 19:32
by johnn
I have 2 questions:
1) How can I reset the votes and the IPs?
2) Where are the IPs logged (stored)?
Posted: Mon 10. Jul 2006, 13:48
by JensZ
johnn,
1) Just do an update of the web poll content type
2) In the database table phpwcms_articlecontent, column acontent_form.
Cheers
Posted: Mon 10. Jul 2006, 16:54
by culda_a
JensZ wrote:fopulu:
Sorry, can't change the width of the bars (1px = 1%).
culda_a:
The IP addresses does not get reset after 24h. Maybe your internet provider changed your IP so you could vote a second time? All IP addresses are saved until the web poll content part is updated.
Cheers,
Jens
I have a dedicated IP so normaly is not change automatic.
I have seen in the exemple page that I can go next day in the website and vote again but in my site no ...allso after 48 hours ?!!!
poll
Posted: Fri 22. Sep 2006, 19:38
by TheDesignCoalition
Hey jenz,
looks awesome, havent got a chance to try this out yet but i amstoked, it is just what i am looking for. My next obstcale is going to be trying to figure out how to sort articles by rating, highest rating at the top. any suggestions?
how hard/easy would it be to do this for phpwcms:
http://www.masugadesign.com/the-lab/scr ... ating-bar/
image button
Posted: Mon 4. Jun 2007, 16:43
by zuker
Is it possible to insert image button instead of text pool button?