Voting Booth ?

Author
Discussion

Nacnud

Original Poster:

2,190 posts

276 months

Tuesday 4th June 2002
quotequote all
Ted, theres a great feature on PPRuNe that would be nice to see on Pistonheads.

Go to www.pprune.org/ click on Humour, then click on CRM Booth.

This feature allows subscribers to create voting slips which everybody else then votes for.

Sounds harmless enough, but check out the content on PPRuNe. I think the PH sense of humour would have a field day....

PetrolTed

34,443 posts

310 months

Tuesday 4th June 2002
quotequote all
Food for thought

JMorgan

36,010 posts

291 months

Tuesday 4th June 2002
quotequote all
Many a good titter. Liked the best security for a 747 one, first answer.
Good idea.

Nightmare

5,228 posts

291 months

Friday 7th June 2002
quotequote all
oh please do...thats genius!

CarZee

13,382 posts

274 months

Monday 10th June 2002
quotequote all
I've got the scrpt for this & I'm gonna try it out on my site.. if I can get something going either we can get it linked into this site or I'll hand the tweaked code over to Ted..

Something to keep me off the streets

Nacnud

Original Poster:

2,190 posts

276 months

Monday 10th June 2002
quotequote all

CarZee

13,382 posts

274 months

Monday 10th June 2002
quotequote all
well, v.01 alpha is running, so the underlying infrastructure is live & working... needs some prettying up is all.. hopefully I'll get to that tomorrow in the day.. well.. it's work of sorts..

CarZee

13,382 posts

274 months

Monday 10th June 2002
quotequote all


right - I've had a good look at the code now and it's a gruesome rats nest of perl. The guy who wrote this knows his stuff, but he's a total geek who only wrote this in perl to prove that it can be done with such meagre technology, but boy is it cumbersome.. and it'll get really upset with multiple concurrent sessions..

I mean look at the guys website.. www.shavenferret.com/scrpts/ ... I didn't see a pic of him but I have an image of him.. he's pale to the point of translucent, stick thin with lank black hair and probably paints his fingernails black. And he plays live roleplay at the weekend.

Anyway, I've decided I could do the whole thing better with ASP and an Access database, so I might plough into that tomorrow instead of trying to polish a turd..

>> Edited by CarZee on Monday 10th June 21:16

Nightmare

5,228 posts

291 months

Tuesday 11th June 2002
quotequote all
shavenferret.com?? SHAVEN FERRET??

neil_cardiff

17,113 posts

271 months

Tuesday 11th June 2002
quotequote all
WTF? He should be on some kind of register somewhere.

Man pissing on Dog?

I am SO glad I dropped out of programming at college. If I got anything near that - I'd get somebody to shoot me....

He's not nerd, he's wierd...

CarZee

13,382 posts

274 months

Wednesday 12th June 2002
quotequote all
Right - I've got something running. Take a look:

www.fffnh.com/vote

Points of note:
i) You can vote as many times as you like at the moment, but I've built in the ability to allow only one vote per topic per IP address - saves arsing about with cookies. I'll be enabling this at some point.

ii) You can add new options to vote for on any topic upto a maximum of 15 options

iii) You can't yet create your own topics - I'm still working on that - it's not difficult, just haven't done it yet..

Any feedback always appreciated..

Once a few of you have had a play with it and proven that it works, I'll avail the masses of it an put a link on my front page..

CarZee

13,382 posts

274 months

Wednesday 12th June 2002
quotequote all
PS - Pls note that some of the question and options are a bit daft because I've just shoved my test database up there.. (as it were )

Oh and there's not much validation being done, so if you start shoving unhelpful characters into any new options you input, expect JET errors..

>> Edited by CarZee on Wednesday 12th June 16:49

Nightmare

5,228 posts

291 months

Thursday 13th June 2002
quotequote all
nice one....looks good...get the results to order by highest to lowest percentage - makes a snapshot look easier.....

Night

CarZee

13,382 posts

274 months

Thursday 13th June 2002
quotequote all
It's on the stuff to do list - just a case of writing a quick bubble sort routine - I've been writing the admin pages today, since I won't be able to directly manipulate the live DB with Access like I can on my staging server...

mattjbatch

1,502 posts

278 months

Thursday 13th June 2002
quotequote all
Didn't understand any of that apart from the bubble sort thing and even that I'm struggling with. Looking good (boys) so far.

BTW did you get my emither?

CarZee

13,382 posts

274 months

Thursday 13th June 2002
quotequote all
Got the ones to my hotmail, didn't get one with the photos though.. what happened there? (I am getting emails so my mailserver appears to be working)

CarZee

13,382 posts

274 months

Thursday 13th June 2002
quotequote all
Well, my evening went something like this....

... ... ... ... ...

... ... ... ...



... ... ...


I coded in a mechanism to restrict multiple voting by checking the client IP and recording it in the Database with the vote for cross checking ..

But.. I Fcuking should have known better

My service provider obviously has some traffic management device acting as a 'transparent' (Ha!) proxy.. so the IP address it records with the vote is not the client IP, but the IP of a box at the ISP.

Arse.. and it's been working fine with my staging server..

Oh well.. live & learn.... I'm turning the bloody computer off now or I'm gonna be throwing it at the cat shortly..

I got the sort mechanism done though.. pinched it from www.4guysfromrolla.com/demos/2dsort.asp as I found that while I was looking for something to remind me... easy life..

pelo

542 posts

280 months

Friday 14th June 2002
quotequote all
Lovely work CArZee!

mmm Sarah...

CarZee

13,382 posts

274 months

Monday 17th June 2002
quotequote all
It's now new & improved (well, a lot more gubbins anyway)....

You can now create your own Poll online!(woohoo )

Suggestions appreciated whilst I'm still developing the project...

www.fffnh.com/vote

CarZee

13,382 posts

274 months

Monday 17th June 2002
quotequote all
obviously, increasing the size of the Options field from 50 to 80 is going to be needed, as people's options are getting truncated - I'll do that later on when I get chance..