Author Topic: guest votes kept in database based on ip per day  (Read 2685 times)

0 Members and 1 Guest are viewing this topic.

Offline orlyro

  • Pre-Newbie
  • Posts: 1
    • View Profile
guest votes kept in database based on ip per day
« on: July 03, 2008, 03:33:26 PM »
Hello,

I'm new with 4images gallery. I've searched this forum for the last couple of days for a solution to my problem:

In my 4images gallery i want to let only the guest rate the pictures (i have disabled all the user login). I've read about the issue with the rate cookie problem, so I want to save the information in the database. I've found the V@no topic "[MOD] Votes saved in DB" (http://www.4homepages.de/forum/index.php?topic=6123.0) but as my users are guests I cannot use exactly the same code.

If it's possible, I want to let the users to vote for as much as a vote per day (not only one vote)

I've already created a table in the database with 3 columns: ImageID, IPAddress, VoteDate.

So I'm looking for a solution to save the votes information in this table and one user to be able to vote only once per image per day.

Do you have any similar situations? Can you help me to change the code from V@no's thread ?

Thank you,
orlyro

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: guest votes kept in database based on ip per day
« Reply #1 on: July 03, 2008, 06:48:36 PM »
Hi orlyro,

my starrating mod save also the ip and time and also work with guests:
http://www.4homepages.de/forum/index.php?topic=17829.0

Kurt