Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Functionality and Output Critique of Voting Booth script?

by jerrygarciuh (Curate)
on Oct 14, 2002 at 15:53 UTC ( [id://205128]=perlquestion: print w/replies, xml ) Need Help??

jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:

Morning fellow monks,

I have just put the final touches on this new and improved version of my polling script (read re-re-invented wheel). The biggest change in this version is that the graph is drawn directly via GD methods for a more attractive result rather than using the module I used in the past. The administration interface may be seen here and the polls are launched from here.

The current features include:

  • Vote-count based email notification option
  • Graphed bars have image map alt tags for non-graphical browsers or rollover info. These include vote count and percentage for each result. Linkage out to subset information will be provided as an option in a future version.
  • Add/Delete Polls
  • Database Not Required
So, my question to you is what features or improvements need to be made to the output to make it really nifty?
TIA
jg
_____________________________________________________
"The man who grasps principles can successfully select his own methods.
The man who tries methods, ignoring principles, is sure to have trouble.
~ Ralph Waldo Emerson

Replies are listed 'Best First'.
Re: Functionality and Output Critique of Voting Booth script?
by ignatz (Vicar) on Oct 14, 2002 at 16:24 UTC
    Are you asking for a UI critique? I have to assume so since I don't see any Perl code. I feel funny getting into that here.

    Quick notes:

    • "Ouch" JScript error message on stumbit? What is that
    • Combine delete form with create form using create form to review and delete created polls. Now can't see what is being deleted and it's redundant.
    • use html attribute title tags tool tips on form fields: title="Example: What is your favorite color?"
    • Give text fields uniform length
    • Pre fill "Vertical Label" text field with "Votes" and eliminate "(usually 'Votes')"
    • Eliminate "Name for files" field and auto generate them in script.
    • Make "(this can contain spaces)" in first field a title tag tool tip and eliminate it from UI. (It's too obvious to justify the space.)
    • Change "Title of this survey (goes over graph):" to "Title over graph"
    • Indicate how to excape commas in the questions field.
    ()-()
     \"/
      `                                                     
    
      ignatz,
      Sorry I wasn't clearer. Yes, I was asking for a UI critique. I realize code critiques are more apropos in SOPW but it is a perlscript so I figured I wasn't too OT... mea culpa. The JS in the admin panel is there as a joke for anyone who thought the publicly available admin panel was live. ;}

      Thanks for the ideas!
      Peas and hominy,
      jg
      _____________________________________________________
      "The man who grasps principles can successfully select his own methods.
      The man who tries methods, ignoring principles, is sure to have trouble.
      ~ Ralph Waldo Emerson

Re: Functionality and Output Critique of Voting Booth script?
by PodMaster (Abbot) on Oct 15, 2002 at 12:26 UTC
    This thing is exploitable (i know, I know, cookie based, big suprise, but but but ;D). I managed to vote for George as many times as I wanted.

    Here is how the exploit works, after I'm presented with the vote menu, and I vote, I click the dreaded browser back button, and I vote again.

    If I close the window, and come back to the poll, I will not be presented with the option to vote.

    There in lies your logic flaw. You should also check for the cookie if someone tries to vote, not just when presenting the vote menu.

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      Thanks podmaster, I discovered that one myself by accident. I will address it in the next version. There are only a couple copies in production so hopefully no one is messing with it too much. I really need to add IP logging as well as one can of course eat the cookie and revote.
      Thanks for checking it out!
      jg
      _____________________________________________________
      "The man who grasps principles can successfully select his own methods.
      The man who tries methods, ignoring principles, is sure to have trouble.
      ~ Ralph Waldo Emerson

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://205128]
Approved by fireartist
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-24 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found