Web Poll Content Type

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
velo
Posts: 38
Joined: Sun 29. May 2005, 14:48

Post 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
JensZ
Posts: 136
Joined: Wed 16. Feb 2005, 12:18
Location: Stockholm, Sweden
Contact:

Post 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
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

one question from one IP you can vote only 1 time at 24 hours?
ImagePackging design,labels, catalogs,postcards,
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post by fopulu »

@JensZ

Very nice Mod!
One question, where can I change the color of the bars? Or what css is it?
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post by fopulu »

I found it.... :lol:
Thx!
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

Can you tell us where? (maybe your findings will help others)
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post 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>&nbsp;<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....
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post 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
JensZ
Posts: 136
Joined: Wed 16. Feb 2005, 12:18
Location: Stockholm, Sweden
Contact:

Post 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
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post 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?
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Post by johnn »

I have 2 questions:

1) How can I reset the votes and the IPs?
2) Where are the IPs logged (stored)?
JensZ
Posts: 136
Joined: Wed 16. Feb 2005, 12:18
Location: Stockholm, Sweden
Contact:

Post 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
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post 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 ?!!!
ImagePackging design,labels, catalogs,postcards,
TheDesignCoalition
Posts: 8
Joined: Thu 11. May 2006, 01:11

poll

Post 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/
zuker
Posts: 80
Joined: Fri 18. May 2007, 17:13
Location: Lithuania

image button

Post by zuker »

Is it possible to insert image button instead of text pool button?
Post Reply