the vote problem(can i removed the votes cookie limit?) the vote problem(can i removed the votes cookie limit?)
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

the vote problem(can i removed the votes cookie limit?)

Started by kds779, October 25, 2010, 04:56:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kds779

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~~~~

ΑndrĂ©

Open ratepic.php, and comment out
$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
$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'");