Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: the vote problem(can i removed the votes cookie limit?)  (Read 2145 times)

0 Members and 1 Guest are viewing this topic.

kds779

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
the vote problem(can i removed the votes cookie limit?)
« on: October 25, 2010, 04:56:47 pm »

I want delete the cookie limit on a vote by guest ,let the guests can vote a pic they like Many times.how can I do that?

what file should be Modified?And how?


appreciate it !!!thanks~~~~
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: the vote problem(can i removed the votes cookie limit?)
« Reply #1 on: October 29, 2010, 11:45:40 am »

Open ratepic.php, and comment out
Code: [Select]
$sql = "SELECT null FROM {$CONFIG['TABLE_VOTES']} WHERE pic_id = $pic AND user_md5_id = '$user_md5_id'";
Open themes/<yourtheme>/theme.php, make sure function theme_html_rating_box exists (if not, copy it from the sample theme), and comment out
Code: [Select]
$result = cpg_db_query("SELECT pic_id FROM {$CONFIG['TABLE_VOTES']} WHERE pic_id={$CURRENT_PIC_DATA['pid']} AND user_md5_id='$user_md5_id'");
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.