Author Topic: IP address and voting  (Read 2842 times)

0 Members and 1 Guest are viewing this topic.

Offline davy_74

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
IP address and voting
« on: December 07, 2007, 04:52:22 PM »
Hi folks

How can I capture in the database the IP address of the user who votes a picture?
How can I show to this IP address pictures but those already voted by this IP?

Cheers

David

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: IP address and voting
« Reply #1 on: December 07, 2007, 10:22:00 PM »
:)

why do you need this for local pc where no1 have access to your gallery?

really strange request.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline davy_74

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: IP address and voting
« Reply #2 on: December 10, 2007, 04:41:18 PM »

Hi Nicky

Right now the site is not on the internet, but it will in the near future. That's why I asked that question. I need to store the IP address of the user who votes a picture. That's because I need to avoid a user (registered or not) to vote again the same picture. I know that 4images uses a time variable to avoid duplicated votes, but I actually want to do that using IP address not the time. In the other hand, that way I can get reports of voting by country, no matter if the user is a registered one or not.

Cheers

David