<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Adv poll : color of the bars"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Adv poll : color of the bars"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Adv poll : color of the bars</title>
				<description><![CDATA[ Hi !<br /> <br /> I try to add / change the colors of the bars... Do you know where I can find that ?<br /> <br /> Is it possible to cancel the effect on the bars (colour scale) ?<br /> <br /> Thanks in advance]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3297/8895.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3297/8895.php</link>
				<pubDate><![CDATA[Wed, 30 Jun 2004 12:59:51]]> GMT</pubDate>
				<author><![CDATA[ bobdeo]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ ok ! I found this file (class_pgfx.php)<br /> <br /> [code]&lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * Advanced Poll 2.0.3 &#40;PHP/MySQL&#41;<br />  * Copyright &#40;c&#41;2001 Chi Kien Uong<br />  * URL&#58; http&#58;//www.proxy2.de<br />  * ----------------------------------------------<br />  */<br /> <br /> class pgfx extends poll &#123;<br /> <br />     var $colors;<br />     var $begin;<br /> <br />     function pgfx&#40;&#41; &#123;<br />         $this-&gt;begin = 0;<br />         $this-&gt;poll&#40;&#41;;<br />         $this-&gt;colors = array&#40;<br />             &quot;aqua&quot;      =&gt; &quot;145,187,234&quot;,<br />             &quot;blue&quot;      =&gt; &quot;73,96,214&quot;,<br />             &quot;brown&quot;     =&gt; &quot;176,112,86&quot;,<br />             &quot;darkgreen&quot; =&gt; &quot;18,117,53&quot;,<br />             &quot;gold&quot;      =&gt; &quot;220,170,75&quot;,<br />             &quot;green&quot;     =&gt; &quot;30,191,56&quot;,<br />             &quot;grey&quot;      =&gt; &quot;207,188,192&quot;,<br />             &quot;orange&quot;    =&gt; &quot;240,131,77&quot;,<br />             &quot;pink&quot;      =&gt; &quot;244,109,188&quot;,<br />             &quot;purple&quot;    =&gt; &quot;149,57,214&quot;,<br />             &quot;red&quot;       =&gt; &quot;205,31,119&quot;,<br />             &quot;yellow&quot;    =&gt; &quot;240,213,67&quot;,<br />             &quot;blank&quot;     =&gt; &quot;255,255,255&quot;,<br />             &quot;black&quot;     =&gt; &quot;0,0,0&quot;<br />         &#41;;        <br />     &#125;<br /> <br />     function output_png&#40;$poll_id,$radius&#41; &#123;<br />         if &#40;$radius &lt; 20&#41; &#123;<br />             $radius = 90;<br />         &#125;<br />         $diameter = $radius*2;<br />         $img_size = $diameter+2;<br />         if &#40;$this-&gt;is_valid_poll_id&#40;$poll_id&#41;&#41; &#123;<br />             $img = ImageCreate&#40;$img_size, $img_size&#41;;<br />             for&#40;reset&#40;$this-&gt;colors&#41;; $key=key&#40;$this-&gt;colors&#41;; next&#40;$this-&gt;colors&#41;&#41; &#123;<br />                 eval&#40;&quot;\$poll_colors&#91;\$key&#93;=ImageColorAllocate&#40;\$img,&quot;.$this-&gt;colors&#91;$key&#93;.&quot;&#41;;&quot;&#41;;<br />             &#125;<br />             ImageFill&#40;$img,0,0,$poll_colors&#91;'blank'&#93;&#41;;            <br />             Imagearc&#40;$img,$radius,$radius,$diameter,$diameter,0,360,$poll_colors&#91;'black'&#93;&#41;;<br />             if &#40;!isset&#40;$this-&gt;options&#91;$poll_id&#93;&#41;&#41; &#123;<br />                 $this-&gt;get_poll_data&#40;$poll_id&#41;;<br />             &#125;<br />             $totalvotes = &#40;$this-&gt;options&#91;$poll_id&#93;&#91;'total'&#93; == 0&#41; ? 1 &#58; $this-&gt;options&#91;$poll_id&#93;&#91;'total'&#93;;<br />             for &#40;$i=0;$i&lt;sizeof&#40;$this-&gt;options&#91;$poll_id&#93;&#91;'option_id'&#93;&#41;;$i++&#41; &#123;<br />                 $img_width = &#40;$this-&gt;options&#91;$poll_id&#93;&#91;'votes'&#93;&#91;$i&#93;*360&#41;/$totalvotes;<br />                 $end = $this-&gt;begin + $img_width;<br />                 $y1 = sin&#40;$end/180*M_PI&#41;*$radius;<br />                 $x1 = cos&#40;$end/180*M_PI&#41;*$radius;<br />                 Imageline&#40;$img, $radius, $radius, $radius+$x1, $radius+$y1, $poll_colors&#91;'black'&#93;&#41;;<br />                 $end2 = $this-&gt;begin + $img_width*0.5;        <br />                 $x2 = &#40;int&#41; &#40;$radius+cos&#40;$end2/180*M_PI&#41;*15&#41;;<br />                 $y2 = &#40;int&#41; &#40;$radius+sin&#40;$end2/180*M_PI&#41;*15&#41;;<br />                 Imagefilltoborder&#40;$img,$x2,$y2, $poll_colors&#91;'black'&#93;, $poll_colors&#91;$this-&gt;options&#91;$poll_id&#93;&#91;'color'&#93;&#91;$i&#93;&#93;&#41;;<br />                 $this-&gt;begin += $img_width;<br />             &#125;<br />             $this-&gt;begin = 0;<br />             ImageColorTransparent&#40;$img,$poll_colors&#91;'blank'&#93;&#41;;<br />             ImagePNG&#40;$img&#41;;<br />         &#125; else &#123;<br />             $loc = &quot;$pollvars&#91;base_url&#93;/image/error.png&quot;;<br />             header&#40;&quot;Location&#58; $loc&quot;&#41;;<br />             exit&#40;&#41;;<br />         &#125;<br />     &#125;<br />     <br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> ... I just need help to cancel the effect on the bars (colour scale)...<br /> <br /> Thanks !]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3297/8898.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3297/8898.php</link>
				<pubDate><![CDATA[Wed, 30 Jun 2004 18:52:21]]> GMT</pubDate>
				<author><![CDATA[ bobdeo]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ if you want them to be a solid color go to the images folder and replace them with ones without gradients. Those color codes are in that file and another one i think, there's not really much point editing it if you don't know how to add the extra color optoins in completely.<br /> <br /> - Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3297/8916.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3297/8916.php</link>
				<pubDate><![CDATA[Thu, 1 Jul 2004 19:28:09]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
	</channel>
</rss>