multiple guest voting


  -----  
Author Message

moonchy
Member

Sun Aug 07, 2005 9:21 am   Post subject: multiple guest voting
Hi
Great work i have installed the guest voting v 2.02 and it works like a charm.

However, i realize that i need to allow multiple votes even with the same ip address as my school shares ip address.

i tried the v1.00 but it seems the ip address is still captured and thus does not allow multiple voting.

how can i allow multiple votes ?

\thanks
 

Thoul
Administrator

Sun Aug 07, 2005 12:52 pm   Post subject: re: multiple guest voting
Welcome to phpBB Smith! Smile

With version 2.0.2 installed, find this line in functions.php:

Code:

      return " AND vote_user_ip = '" . $GLOBALS['user_ip'] . "'";


Change it to:

Code:

//      return " AND vote_user_ip = '" . $GLOBALS['user_ip'] . "'";


That will disable the IP checking, although the IPs should still be recorded.
 

moonchy
Member

Mon Aug 08, 2005 9:45 pm   Post subject:
The functions.php looks like this right ?


function make_guest_sql()
{
if ( $GLOBALS['userdata']['user_id'] == ANONYMOUS )
{
// return " AND vote_user_ip = '" . $GLOBALS['user_ip'] . "'";
}
return '';
}



It doesn't seem to make any difference, ip is recorded and same ip address cannot vote.
Any ideas?
thanks
 

Thoul
Administrator

Tue Aug 09, 2005 12:14 am   Post subject: re: multiple guest voting
That's what it should look like, yes. That will have disabled the IP checking entirely, so your problem is with something other than the IPs. Let's try this.

Find this line in posting.php.

Code:

if ( !($row = $db->sql_fetchrow($result2)) )


Replace it with:

Code:

if ( $userdata['user_id'] == ANONYMOUS || !($row = $db->sql_fetchrow($result2)) )
 

alberdipy
Member

Thu Jan 12, 2006 4:28 pm   Post subject: i can't
i can't allow multiple guess with same ip voting, i full follow instructions.My visitors are in cybercafes, only one can vote per cyber

sorry for my bad english.i'm latin

http://www.alberdipy.com/foro
 

Page 1 of 1
Display posts from previous: