Hi there. Recently installed CPG 1.5 (brilliant) for a new photo contest we're running. What I need to accomplish is this:
One vote per IP per day.
I understand about changing the stars to '1' but not sure about the 1 vote per IP per day.
I was able to accomplish this last year in CPG 1.4. as I modified the code according to a thread in your forum (cannot seem to locate this thread now)
Would you tell me the best way to go about this. Thank you for your time.
It would be great if you could search and find that thread for us, so we don't have to invent the wheel twice. We don't delete threads, so it have to be somewhere.
Right you are... found them
http://forum.coppermine-gallery.net/index.php/topic,50650.0.html
(http://forum.coppermine-gallery.net/index.php/topic,50650.0.html)
http://forum.coppermine-gallery.net/index.php/topic,54319.0.html (http://forum.coppermine-gallery.net/index.php/topic,54319.0.html)
Please try the following. Open ratepic.php, find
$clean_before = time() - $CONFIG['keep_votes_time'] * 86400;
and replace with
$clean_before = time() - 86400;
This did not work.
Please give some more information if you need a solution. What exactly happens? With the modification you should be able to vote every 24 hours. Do you have 'Keep detailed vote statistics' enabled?