This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-06 23:23:08

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Polls?

i think that scratch should have like a weekly poll and there should be a poll option when posting topics

then, i could have this be a poll saying do you agree with me? yes or no


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#2 2009-04-07 02:40:41

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Polls?

A weekly poll might be interesting if it's just for fun.  tongue

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.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2009-04-07 09:15:06

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Re: Polls?

cheddargirl wrote:

A weekly poll might be interesting if it's just for fun.  tongue

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.  smile

yea...i doubt that people would create multiple accounts just to vote tho...i like the add-ON THO.


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#4 2009-04-09 08:10:47

Oramis
Scratcher
Registered: 2008-10-10
Posts: 100+

Re: Polls?

That's a good idea! There could also be an option to insert a poll to a forum topic. That would be very good!


http://img17.imageshack.us/img17/9660/oramislogo.png if you're creative, and enjoy world-building and character-making.
http://i.imgur.com/JeF62.jpg

Offline

 

#5 2009-04-09 09:22:45

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Polls?

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


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#6 2010-02-21 12:40:40

Oramis
Scratcher
Registered: 2008-10-10
Posts: 100+

Re: Polls?

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...


http://img17.imageshack.us/img17/9660/oramislogo.png if you're creative, and enjoy world-building and character-making.
http://i.imgur.com/JeF62.jpg

Offline

 

#7 2010-02-21 13:38:57

Bopitman99
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Polls?

I thought there was some kind of programming (like interent cookies), that could make it impossible to vote twice on a poll  hmm

Yeah, this would be awesome, great idea!  smile


http://img717.imageshack.us/img717/548/internetsimage.png
     http://internetometer.com/image/9678.png                                                               Don't Feed The Trolls!!!  big_smile

Offline

 

#8 2010-02-24 02:43:15

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Polls?

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=90&no=40&title=scratch%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 );
?>

Last edited by billyedward (2010-02-24 02:45:47)


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#9 2010-02-24 09:15:11

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Polls?

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

 

#10 2010-02-25 22:51:24

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Polls?

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!


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

Board footer