A weekly poll might be interesting if it's just for fun.
As for a poll option on the forums, that would work best if put in and limited to the suggestions part of the forum, so people can vote on a suggestion.
The downside to this is people creating multiple accounts just to vote.
But other than that, I don't think polls are a bad idea.
Offline
cheddargirl wrote:
A weekly poll might be interesting if it's just for fun.
As for a poll option on the forums, that would work best if put in and limited to the suggestions part of the forum, so people can vote on a suggestion.
The downside to this is people creating multiple accounts just to vote.
But other than that, I don't think polls are a bad idea.
yea...i doubt that people would create multiple accounts just to vote tho...i like the add-ON THO.
Offline
cheddargirl wrote:
The downside to this is people creating multiple accounts just to vote.
They could just make it 1 vote per ip and no one would bother buying more computers
you could also have a fourm topic about the poll. A bit like runetips
I hope it happens
Offline
Stickman704 wrote:
cheddargirl wrote:
The downside to this is people creating multiple accounts just to vote.
They could just make it 1 vote per ip and no one would bother buying more computers
you could also have a fourm topic about the poll. A bit like runetips
I hope it happens
Maybe... But then again, there's often many people using the same IP...
Offline
I thought there was some kind of programming (like interent cookies), that could make it impossible to vote twice on a poll
Yeah, this would be awesome, great idea!
Offline
I've actually got some PHP code ready to make a scratch poll... I just need to find an SQL host to use it with.
For now, I've created the front-end code to display the graph.
This URL:
http://mmun.ca/internal/graph.php?yes=9 … tch%20poll
Will give a graph that has a yes height of 90%, a no of 40%, and a title of 'scratch poll,' such as this:
Try changing these in your browser to see how it works.
We'd simply display this, followed by a yes and no image, each linked to a php script that adds one to the selected category.
Right now it reads the values from the GET arguments; when I find an SQL host, it will read the arguments from there.
The code as it currently stands is:
<?php $my_img = imagecreate( 200, 200 ); $background = imagecolorallocate( $my_img, 238, 238, 238 ); //Set colours $text_colour = imagecolorallocate( $my_img, 0, 0, 0 ); $line_colour = imagecolorallocate( $my_img, 0, 0, 0 ); imagestring( $my_img, 5, 40, 175, $_REQUEST['title'], $text_colour ); // output text imagestring( $my_img, 4, 35, 155, "Yes", $text_colour ); imagestring( $my_img, 4, 135, 155, "No", $text_colour ); imagesetthickness ( $my_img, 1 ); imagerectangle ( $my_img ,10,150-($_REQUEST['yes']*1.45),95,150,$line_colour); imagerectangle ( $my_img ,105,150-($_REQUEST['no']*1.45),190,150,$line_colour); imagefilledrectangle ( $my_img ,11,151-($_REQUEST['yes']*1.45),94,149, imagecolorallocate( $my_img, 0, 255, 0 )); imagefilledrectangle ( $my_img ,106,151-($_REQUEST['no']*1.45),189,149,imagecolorallocate( $my_img, 255, 0, 0 )); header( "Content-type: image/png" ); // tell php that this is a png image imagepng( $my_img ); imagecolordeallocate( $line_color ); // free up memory imagecolordeallocate( $text_color ); imagecolordeallocate( $background ); imagedestroy( $my_img ); ?>
Last edited by billyedward (2010-02-24 02:45:47)
Offline
billyedward wrote:
I've actually got some PHP code ready to make a scratch poll... I just need to find an SQL host to use it with.
For now, I've created the front-end code to display the graph.
This URL:
http://mmun.ca/internal/graph.php?yes=9 … tch%20poll
Will give a graph that has a yes height of 90%, a no of 40%, and a title of 'scratch poll,' such as this:
http://mmun.ca/internal/graph.php?yes=9 … tch%20poll
Try changing these in your browser to see how it works.
We'd simply display this, followed by a yes and no image, each linked to a php script that adds one to the selected category.
Right now it reads the values from the GET arguments; when I find an SQL host, it will read the arguments from there.
The code as it currently stands is:Code:
<?php $my_img = imagecreate( 200, 200 ); $background = imagecolorallocate( $my_img, 238, 238, 238 ); //Set colours $text_colour = imagecolorallocate( $my_img, 0, 0, 0 ); $line_colour = imagecolorallocate( $my_img, 0, 0, 0 ); imagestring( $my_img, 5, 40, 175, $_REQUEST['title'], $text_colour ); // output text imagestring( $my_img, 4, 35, 155, "Yes", $text_colour ); imagestring( $my_img, 4, 135, 155, "No", $text_colour ); imagesetthickness ( $my_img, 1 ); imagerectangle ( $my_img ,10,150-($_REQUEST['yes']*1.45),95,150,$line_colour); imagerectangle ( $my_img ,105,150-($_REQUEST['no']*1.45),190,150,$line_colour); imagefilledrectangle ( $my_img ,11,151-($_REQUEST['yes']*1.45),94,149, imagecolorallocate( $my_img, 0, 255, 0 )); imagefilledrectangle ( $my_img ,106,151-($_REQUEST['no']*1.45),189,149,imagecolorallocate( $my_img, 255, 0, 0 )); header( "Content-type: image/png" ); // tell php that this is a png image imagepng( $my_img ); imagecolordeallocate( $line_color ); // free up memory imagecolordeallocate( $text_color ); imagecolordeallocate( $background ); imagedestroy( $my_img ); ?>
It really doesn't have to be that advanced. All they have to do is add a polls section to the forum, without any programming.
Offline
BWOG wrote:
billyedward wrote:
I've actually got some PHP code ready to make a scratch poll... I just need to find an SQL host to use it with.
For now, I've created the front-end code to display the graph.
This URL:
http://mmun.ca/internal/graph.php?yes=9 … tch%20poll
Will give a graph that has a yes height of 90%, a no of 40%, and a title of 'scratch poll,' such as this:
http://mmun.ca/internal/graph.php?yes=9 … tch%20poll
Try changing these in your browser to see how it works.
We'd simply display this, followed by a yes and no image, each linked to a php script that adds one to the selected category.
Right now it reads the values from the GET arguments; when I find an SQL host, it will read the arguments from there.
The code as it currently stands is:Code:
<?php $my_img = imagecreate( 200, 200 ); $background = imagecolorallocate( $my_img, 238, 238, 238 ); //Set colours $text_colour = imagecolorallocate( $my_img, 0, 0, 0 ); $line_colour = imagecolorallocate( $my_img, 0, 0, 0 ); imagestring( $my_img, 5, 40, 175, $_REQUEST['title'], $text_colour ); // output text imagestring( $my_img, 4, 35, 155, "Yes", $text_colour ); imagestring( $my_img, 4, 135, 155, "No", $text_colour ); imagesetthickness ( $my_img, 1 ); imagerectangle ( $my_img ,10,150-($_REQUEST['yes']*1.45),95,150,$line_colour); imagerectangle ( $my_img ,105,150-($_REQUEST['no']*1.45),190,150,$line_colour); imagefilledrectangle ( $my_img ,11,151-($_REQUEST['yes']*1.45),94,149, imagecolorallocate( $my_img, 0, 255, 0 )); imagefilledrectangle ( $my_img ,106,151-($_REQUEST['no']*1.45),189,149,imagecolorallocate( $my_img, 255, 0, 0 )); header( "Content-type: image/png" ); // tell php that this is a png image imagepng( $my_img ); imagecolordeallocate( $line_color ); // free up memory imagecolordeallocate( $text_color ); imagecolordeallocate( $background ); imagedestroy( $my_img ); ?>It really doesn't have to be that advanced. All they have to do is add a polls section to the forum, without any programming.
No, I'll have done all the programming.
All that the user would have to do is:
1) Fill in a quick form to add the listing to the SQL db
2) Copy and paste the code into the forum
As simple as that; all point and click!
Offline