Forums

looking for digg style vote for list (4 posts)

  1. brentobo
    Member
    Posted 3 years ago #

    i'm looking for a plugin that will give an interface for a sort of survey. i imagine something like this...

    45 option 1
    23 option 2
    56 option 3

    each time a user clicks on a line the number would increment.
    i was thinking i could find a plugin quick and easy but have been fishing around too much.

    any ideas??
    please not much php coding ;)
    thanks!!!

  2. Ryan Christenson
    Member
    Posted 3 years ago #

    Have you found a solution? I'm not exactly sure what you're trying to acheive, there are a few survey plugins available.

  3. benwoods
    Member
    Posted 3 years ago #

    I think the reason why this plugin would not be so simple is because the developer has to implement a system to prevent people from artificially increasing the votes.

    Otherwise, the code for each vote link would just lead to something like:
    vote.php?id=9

    Where '9' is the ID of the post.

    The php for vote.php would use a MySQL query to pull a new column from the database (let's call it voteid), and increase the post's vote ID by one. Something simple like this:
    $voteid=++;

    That ++ increases the current score by one.

    Then, the template would only have to be modified to link to that vote.php URL and also echo the $voteid variable from the database to display the score.

    If you didn't care about someone messing with the scores, these changes could easily be implemented.

  4. Dgold
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic