About this topic

  • Posted by sommernyte 1 year ago. There are 9 posts. The latest reply is from dave.
  • This topic is resolved

Tags

  1. From what I can gather, a person can only vote once per photo, with once being per user if they must be logged in to vote, or per IP if it's set to allow anonymous voting. Am I understanding that correctly?

    I would like to allow anonymous voting, but allow a person to vote once a day -- any way to accomplish this?

    Thank you!

  2. Sommer,
    At this time, PhotoSmash cannot do the once-a-day voting. That would be some fairly specialized coding. If you do some coding to make that work as an option, I'd be glad to consider adding it to the plugin so that your upgrades won't break.

    BB

  3. How would I REMOVE the "one vote per photo per IP address" restriction?

    Thanks,
    dave

  4. Dave,
    If you leave "Allow anonymous ratings" unchecked, that might do it...I can't remember. But if PhotoSmash didn't have the one-vote-per-IP restriction for anonymous users, an unlogged-in visitor could vote as many times as he wanted on the same picture. If you require being logged in, it should not restrict by the IP address.

    BB

  5. Hi Byron,
    Yes, turning anonymous on would not have the restriction (which in this case is fine.) What modifications would you suggest I could make to allow unregistered/anonymous users to vote as often as they want?

    Thanks, this is a great plug-in!
    Dave

  6. Dave,

    You're very welcome.

    Just to be clear about your use case, the current code in PhotoSmash allows anonymous users to vote as much as they like as long as they are voting on different images. It one-vote-per-IP address restriction means only one vote per image per IP, so that one IP address could vote on every image one time.

    Do you have a use case where you'd like to allow an anonymous person to vote on the same image multiple times? If that's the case, I can take a look at the code and see what would need to be modified.

    Cheers,
    Byron

  7. Hi Byron,

    I do understand how the plug-in works with regard to voting and collecting results for anonymous users. The reason I want to allow an anonymous person from the same IP to vote over and over again is because a large number of the people voting on images all share the same external IP address. (They are all in the same office.)

    I do realize that this will allow an individual to vote for the same image over and over again but I would rather allow for that risk than limit the vote to one per all users on the same IP. So that is why I'm asking if there is any small modification I could make (and where?) to remove the 'one vote per picture per IP address' rule.

    A possible future enhancement could be limiting voting by setting a cookie. Obviously this could be fooled by someone clearing cookies... but is there any perfect way to allow multiple people from shared IPs to vote without the possibility of someone gaming the system?

  8. Dave,

    Ok...the cookie idea would be fairly good.

    So, to do what you're wanting:

    1) Edit file bwbps-rating.php
    2) On line 43, put: unset($voted);

    That should do it...Let me know if not (I didn't test).

    BB

  9. This is great, thanks!

RSS feed for this topic