Tuesday, 14 December 2010

Vote Machine Added!


So I've implemented a fairly simple vote mechanism, you select if you want to upvote or downvote a picture, and then an entry is either added or amended in the MySQL database depending on if it already exists or not. If you vote it upwards, it gains a point, if you vote it downwards, it looses a point. Simple. I've already created a page that displays the top voted pictures. But I'm going to do a bit more work on it. I want to get PHP's GD system to create a simple pie-chart of how much of the vote each picture has gained. I guess I could display each pictures comment next to it as well.

The rickety mish-mash construction of this site is really starting to show through. There is no way to neatly display the vote system on the gallery view, so you have to click through to individual photo pages to vote. Also I'm not sure about this layout any more, it might be worth raising the site and starting again rather than attempting to edit what I've already got.

No comments:

Post a Comment