Jump to content




- - - - -

My Little Ballot Program - Single Ballot, for the XC Awards. V2.0 for 2012!!


  • Please log in to reply
23 replies to this topic

#1 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 23 March 2012 - 10:19 PM

http://www.maverixtech.com/ballot

Total time it took to program this rough draft: 3 hours 30 minutes.

Features:
- Administrator option with quick in-link password protection which shows the results and list of all voters.
- Fills 1 ballot of almost any size with a dynamic # of options.
- Includes a None of the Above option
- Tracks unique voters by IP, username, and e-mail.
- SQL injection added using my Maverix.php library.


I'm not the best CSS designer in the world, so I just kept that part simple.

The next step for me would be to make an interface so the administrator can at least change settings like the title and password of the administrator.  Then maybe the questions and answers.  The answers is especially tough since you don't have a fixed amount of answers per question.  Might need to do a list box or something of that sort.

Then I can start error-correcting the admin page.  The ballot is taken care of, but the admin page divides by zero when you have zero votes.  That should be an easy fix, but low priority considering the first vote on this ballot will be me. (FIXED)

Edited by Harpuia, 23 March 2012 - 10:32 PM.


#2 HeatedHeart

HeatedHeart

    Former Programming/Scripting Mod

  • Oldies
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Sunny California
  • Interests:Longboarding // Coding // Raves // Hanging Out With Friends // Enjoying Life
  • Country:

Posted 24 March 2012 - 12:49 AM

Rayth is the PHP expert in these parts, hopefully he'll take a glance at it tommorow.

#3 Rayth Mistwalker

Rayth Mistwalker

    Nothing is True. Everything is Permitted.

  • Global
  • 3,164 posts
  • Gender:Male
  • Location:Edinburgh, Scotland
  • Interests:Programming, IRC, Fishing, Gaming
  • Country:

Awards Bar:

Users Awards

Posted 24 March 2012 - 08:43 AM

Already ran through it. didn't find a bug.

And actually me and Harpuia are prob about even on php. Master's also pretty adequate with php and DM is getting better.

#4 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 24 March 2012 - 10:36 AM

Where you guys do better on is the GFX end.  I am a development expert, but I'm about average on design.  (The sig I made for myself is about as creative as i can get.)

My expertise is in the Delphi, Visual Basic, and C++ programming languages.  Basically hard software.  But PHP is a lot of fun for me to build webpages with.

I actually double as an engineer and a programmer for a living.

Edited by Harpuia, 24 March 2012 - 10:38 AM.


#5 Rayth Mistwalker

Rayth Mistwalker

    Nothing is True. Everything is Permitted.

  • Global
  • 3,164 posts
  • Gender:Male
  • Location:Edinburgh, Scotland
  • Interests:Programming, IRC, Fishing, Gaming
  • Country:

Awards Bar:

Users Awards

Posted 24 March 2012 - 01:34 PM

yeh i cant do design either. i prefer the back end coding. I can code around designs easy enough if i have all the graphics and the css file made for me.

#6 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 24 March 2012 - 02:20 PM

View PostLilPuddinTators, on 24 March 2012 - 01:34 PM, said:

yeh i cant do design either. i prefer the back end coding. I can code around designs easy enough if i have all the graphics and the css file made for me.

Ah, I knew your forum project looked pretty similar.

I'm doing a forum project too, but I want to make my gfx and layout from scratch, so it looks like shit atm.  Lol.

#7 Rayth Mistwalker

Rayth Mistwalker

    Nothing is True. Everything is Permitted.

  • Global
  • 3,164 posts
  • Gender:Male
  • Location:Edinburgh, Scotland
  • Interests:Programming, IRC, Fishing, Gaming
  • Country:

Awards Bar:

Users Awards

Posted 24 March 2012 - 03:33 PM

Lol i based my forum on the Invision Free system which was based on IPB so it was an IF skin i used.

#8 GothicKratos

GothicKratos

    Local Trollolololol

  • Oldies
  • PipPipPip
  • 2,129 posts
  • Gender:Male
  • Location:Davenport, Iowa
  • Country:

Posted 24 March 2012 - 11:19 PM

ZetaBoards is superior. [/flees]

#9 Rayth Mistwalker

Rayth Mistwalker

    Nothing is True. Everything is Permitted.

  • Global
  • 3,164 posts
  • Gender:Male
  • Location:Edinburgh, Scotland
  • Interests:Programming, IRC, Fishing, Gaming
  • Country:

Awards Bar:

Users Awards

Posted 25 March 2012 - 01:51 PM

Zetaboards was made by the same people. js.

#10 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 25 March 2012 - 02:36 PM

Don't know how much time I have until the awards is out, and I'm going to be away for 3 days sometime next week to top it off.  So it might just be a manual input by me... no biggie.

#11 GothicKratos

GothicKratos

    Local Trollolololol

  • Oldies
  • PipPipPip
  • 2,129 posts
  • Gender:Male
  • Location:Davenport, Iowa
  • Country:

Posted 25 March 2012 - 09:46 PM

View PostLilPuddinTators, on 25 March 2012 - 01:51 PM, said:

Zetaboards was made by the same people. js.

Yet they only support of of them. P:

#12 Rayth Mistwalker

Rayth Mistwalker

    Nothing is True. Everything is Permitted.

  • Global
  • 3,164 posts
  • Gender:Male
  • Location:Edinburgh, Scotland
  • Interests:Programming, IRC, Fishing, Gaming
  • Country:

Awards Bar:

Users Awards

Posted 25 March 2012 - 10:22 PM

eh? They still support IF and zetaboards. hence why you can register either or depending on your preference.

Tbh phpbb still beats em both :P

#13 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 25 March 2012 - 10:59 PM

But do they have a ballot program?  :D

#14 Rayth Mistwalker

Rayth Mistwalker

    Nothing is True. Everything is Permitted.

  • Global
  • 3,164 posts
  • Gender:Male
  • Location:Edinburgh, Scotland
  • Interests:Programming, IRC, Fishing, Gaming
  • Country:

Awards Bar:

Users Awards

Posted 26 March 2012 - 08:02 AM

It's called a poll thread :P

#15 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 26 March 2012 - 04:52 PM

Oh touche.  >>

#16 Jesse

Jesse

    The person who exists.

  • Oldies
  • PipPipPipPipPip
  • 3,323 posts
  • Gender:Male
  • Location:England
  • Interests:I don't know what I like, but I absolutely despise finishing sente
  • Country:

Posted 26 March 2012 - 07:03 PM

You see how it says "Username and e-mail are required. Votes are not", if you accidentally click a vote option, there is no option to uncheck the circle. I personally don't have a problem with that, because I'll be voting in each category. But if you wanted feedback, there's something small to look into.

Other than that though, it looks pretty flawless. Well, it always has been. So congrats!

Edited by Jesse, 26 March 2012 - 07:05 PM.


#17 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 26 March 2012 - 08:22 PM

View PostJesse, on 26 March 2012 - 07:03 PM, said:

You see how it says "Username and e-mail are required. Votes are not", if you accidentally click a vote option, there is no option to uncheck the circle. I personally don't have a problem with that, because I'll be voting in each category. But if you wanted feedback, there's something small to look into.

Other than that though, it looks pretty flawless. Well, it always has been. So congrats!

Ah.  Maybe there's a reset button I can look into that I need to use JavaScript for or something.

#18 Rayth Mistwalker

Rayth Mistwalker

    Nothing is True. Everything is Permitted.

  • Global
  • 3,164 posts
  • Gender:Male
  • Location:Edinburgh, Scotland
  • Interests:Programming, IRC, Fishing, Gaming
  • Country:

Awards Bar:

Users Awards

Posted 26 March 2012 - 11:08 PM

Pfft just make it mandatory for ppl to vote in all categories

#19 Harpuia

Harpuia

    Justitia fortitudo mea est.

  • Oldies
  • PipPipPipPip
  • 2,325 posts
  • Gender:Male
  • Country:

Awards Bar:

Users Awards

Posted 26 March 2012 - 11:14 PM

Might as well.  I'll do it when I get free time.

#20 DarkBlaze557

DarkBlaze557

    Oh hai

  • Admin
  • 12,224 posts
  • Gender:Male
  • Location:Denver, CO
  • Country:

Awards Bar:

Users Awards

Posted 29 March 2012 - 10:40 AM

Looking at the user side, it seems nearly perfect, but there are a few things that I would suggest:

Make voting in each category mandatory. And do I suggest not having the "none of the above" option, to try to prevent ties as much as possible. The last 2 XC Awards have had ties, which makes it difficult to dish out awards.

Don't have the limitation on IP address voting. We have some users that live together (though it's not as common), which will cause the IP error to go off, not allowing them to vote. These are cases that we usually investigate individually when we have a suspected dual-account, and hopefully the admin side has a way of tracking that closely. I honestly don't think we'll have this specific issue at all this year, but I'm only thinking about scalability here, should you let us use it again in future years (perhaps we could even migrate it over to the XC server at some point?).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users