FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Poll software recommendations
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Poll software recommendations [message #176219] Wed, 07 December 2011 20:51 Go to next message
Mike S is currently offline  Mike S
Messages: 8
Registered: September 2010
Karma: 0
Junior Member
I am looking for a free poll software package to create and display
results for simple polls for a PHP site. I would like to hear if you
have found a poll software package you liked.
Re: Poll software recommendations [message #176220 is a reply to message #176219] Wed, 07 December 2011 21:47 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/7/2011 3:51 PM, Mike S wrote:
> I am looking for a free poll software package to create and display
> results for simple polls for a PHP site. I would like to hear if you
> have found a poll software package you liked.

And your PHP question is?

Any time I want a poll I just write the code myself. It's pretty simple
- and takes less time than finding a poll, figuring out how to integrate
it into my site and modifying the code.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Poll software recommendations [message #176221 is a reply to message #176219] Wed, 07 December 2011 22:28 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Mike S wrote:
> I am looking for a free poll software package to create and display
> results for simple polls for a PHP site. I would like to hear if you
> have found a poll software package you liked.

I wrote my own. Its hardly rocket science.
Re: Poll software recommendations... resolved [message #176223 is a reply to message #176220] Thu, 08 December 2011 04:12 Go to previous messageGo to next message
Mike S is currently offline  Mike S
Messages: 8
Registered: September 2010
Karma: 0
Junior Member
On 12/7/2011 1:47 PM, Jerry Stuckle wrote:
> On 12/7/2011 3:51 PM, Mike S wrote:
>> I am looking for a free poll software package to create and display
>> results for simple polls for a PHP site. I would like to hear if you
>> have found a poll software package you liked.
>
> And your PHP question is?
>
> Any time I want a poll I just write the code myself. It's pretty simple
> - and takes less time than finding a poll, figuring out how to integrate
> it into my site and modifying the code.

I thought there might be a basic package made available, I don't want to
write the admin panel right now as I don't have a lot of time. I'll
declare this topic closed as I will either find one or write one.
Re: Poll software recommendations... resolved [message #176225 is a reply to message #176223] Thu, 08 December 2011 12:58 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/7/2011 11:12 PM, Mike S wrote:
> On 12/7/2011 1:47 PM, Jerry Stuckle wrote:
>> On 12/7/2011 3:51 PM, Mike S wrote:
>>> I am looking for a free poll software package to create and display
>>> results for simple polls for a PHP site. I would like to hear if you
>>> have found a poll software package you liked.
>>
>> And your PHP question is?
>>
>> Any time I want a poll I just write the code myself. It's pretty simple
>> - and takes less time than finding a poll, figuring out how to integrate
>> it into my site and modifying the code.
>
> I thought there might be a basic package made available, I don't want to
> write the admin panel right now as I don't have a lot of time. I'll
> declare this topic closed as I will either find one or write one.
>

There's not that much to it. Last time I wrote a poll the whole thing
took less than half a day.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Poll software recommendations... resolved [message #176227 is a reply to message #176225] Thu, 08 December 2011 18:00 Go to previous messageGo to next message
rataplanpupum is currently offline  rataplanpupum
Messages: 2
Registered: December 2011
Karma: 0
Junior Member
> There's not that much to it. Last time I wrote a poll the whole thing
> took less than half a day.
>

oh... wounderful...
Re: Poll software recommendations... resolved [message #176228 is a reply to message #176227] Thu, 08 December 2011 18:11 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
rataplanpupum wrote:
>
>> There's not that much to it. Last time I wrote a poll the whole thing
>> took less than half a day.
>>
>
> oh... wounderful...

Mine took a bit longer..the graphic artist wanted pretty colors and bars
on it..


Here's the display bit of it..assumes an open database with values of
for against neutral and didn't vote at all (NULL) in it

The databases insertion is just from a form..


function display_votes($x,$y)
{
$maxwidth=100; // simple enough.
$framey=$y+40;
$framex=$x-15;
//
?>
<div style="position: absolute; top:<? echo $framey -48; ?>px; left: <?
echo $framex ?>px; width: 180px; color:#47295C; text-align: center;
font-weight: bold;font-style: italic;font-size:8pt ">
Are you against, for, or neutral about this development?</div>

<div style="position: absolute; top:<? echo $framey; ?>px; left: <?
echo $framex ?>px;"><img src="images/Pollometer.gif" border="0";
alt="poll-o-meter bezel"></div>

<?
$y+=50;
$x-=25;
// get pixel width of the three possible results. We ignore those who
didnt vote (yet)
$neutral=mysql_result(mysql_query("select count(voted) as total from
people where voted='neutral'"),0,'total');
$for=mysql_result(mysql_query("select count(voted) as total from
people where voted='for'"),0,'total');
$against=mysql_result(mysql_query("select count(voted) as total from
people where voted='against'"),0,'total');
$total=$against+$for+$neutral;
$forx= round(($for/$total) * $maxwidth);
$neutralx= round(($neutral/$total) * $maxwidth);
$againstx= round(($against/$total) * $maxwidth);
/*$forx=10;
$neutralx=7;*/
// Right. Now draw three coloured bars.
?>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y?>px; height: 10px; width:<? echo $againstx?>px;
background-color:#BD3880;"></div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+15?>px; height: 10px; width:<? echo $forx?>px;
background-color:#000080;"></div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+30?>px; height: 10px; width:<? echo $neutralx?>px;
background-color:#505050;"></div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y?>px; height: 10px; width:100px;text-align:center; color:#FFFFFF;
font-size: 7pt"><?echo $againstx?>%</div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+15?>px; height: 10px; width:100px;text-align:center; color:#FFFFFF;
font-size: 7pt"><?echo $forx?>%</div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+30?>px; height: 10px; width:100px;text-align:center; color:#FFFFFF;
font-size: 7pt"><?echo $neutralx?>%</div>
<div style="Position: absolute; left:<?echo $x+125?>px;top:<? echo
$y?>px; height: 10px; width:100px;text-align:left; color:#FFFFFF;
;font-size: 7pt">Against (<?=$against?>)</div>
<div style="Position: absolute; left:<?echo $x+125?>px;top:<? echo
$y+15?>px; height: 10px; width:100px;text-align:left; color:#FFFFFF;
font-size: 7pt">For (<?=$for?>)</div>
<div style="Position: absolute; left:<?echo $x+125?>px;top:<? echo
$y+30?>px; height: 10px; width:100px;text-align:left; color:#FFFFFF;
font-size: 7pt">Neutral (<?=$neutral?>)</div>
<div style="Position: absolute; left:<?echo $framex?>px;top:<? echo
$y+50?>px; height: 30px; width:180px;text-align:center; color:#FFFFFF;
font-size: 8pt">Poll Results:<? echo $total?> votes cast</div>
<div style="position: absolute; top:<? echo $framey +90; ?>px; left: <?
echo $framex ?>px; width: 180px; color:#47295C; text-align: center;
font-style: italic;font-size:9pt ">
<A HREF="contact-1.php" target="_self">Contact us to register and
vote</a></div>

<?
}
Re: Poll software recommendations... resolved [message #176232 is a reply to message #176227] Thu, 08 December 2011 19:00 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/8/2011 1:00 PM, rataplanpupum wrote:
>
>> There's not that much to it. Last time I wrote a poll the whole thing
>> took less than half a day.
>>
>
> oh... wounderful...

How much time have you already spent trying to find a poll? And once
you find it, how much time will it take you to integrate it into your
existing site?

That half-day included graphs, btw.

It's not rocket science.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Warning: Install folder still exist!
Next Topic: <beg> ADODB PHP Extension Help </beg>
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 11:29:36 GMT 2024

Total time taken to generate the page: 0.02170 seconds