Rate Profile feature not working

The Rate Profile feature is not working properly for us. It allows first vote for any profile but does not allow second i.e. if a profile is rated once (by some other member) cannot be rated again.

This is happening on the View Profile page. On the same page, profile photo rating is also not working.

Any help to get this resolved would be nice for us. Thanks in advance.

Quote · 17 Jun 2008

If there is more than one vote it identify it as duplicate vote.

----
Quote · 17 Jun 2008

I had same problem...for some reason its set up as 'a user can get vote on his/her profile once in 47 days. To fix that you will have to go to

/inc/classes/BxDolVoting.php

and find something like (number might not match but you will get the idea) on line 6 apx.

---------------------------------

define( 'BX_PERIOD_PER_VOTE',  7*86041);

---------------------------------

change that to

---------------------------------

define( 'BX_PERIOD_PER_VOTE', -1 );

---------------------------------

But then you have the problem of multipel votes.

To fix that will have to change the database.and a littel programing change

to do that need to add extra field 'pr_vote_by_id' in table 'profile_voting_track'

on page /inc/classes/BxDolVotingQuery.php

line 50 apx

search for

---------------------------------

return $this->query ("INSERT INTO {$sTable} SET `{$sPre}id` = '$iId', `{$sPre}ip` = '$sIp', `{$sPre}date` = NOW()");

---------------------------------

and change that to

---------------------------------

$vote_by_id=(int)$_COOKIE['memberID'];
return $this->query ("INSERT INTO {$sTable} SET `{$sPre}id` = '$iId', `{$sPre}vote_by_id` = '$vote_by_id', `{$sPre}ip` = '$sIp', `{$sPre}date` = NOW()");

---------------------------------

Then same page search for function

---------------------------------

function isDublicateVote ($iId, $sIp){

....

return ...

}

---------------------------------

replace that with

---------------------------------

function isDublicateVote ($iId, $sIp)
{
$sPre = $this->_aSystem['row_prefix'];
$sTable = $this->_aSystem['table_track'];
$iSec = $this->_aSystem['is_duplicate'];
$vote_by_id=(int)$_COOKIE['memberID'];

return $this->getOne ("SELECT `{$sPre}id` FROM {$sTable} WHERE `{$sPre}ip` = '$sIp' AND `{$sPre}vote_by_id` = '$vote_by_id' AND `{$sPre}id` = '$iId' AND UNIX_TIMESTAMP() - UNIX_TIMESTAMP(`{$sPre}date`) < $iSec");

}

---------------------------------

And on page

/inc/classes/BxDolVoting.php

line 6

---------------------------------

define( 'BX_PERIOD_PER_VOTE',  60*60*24);

---------------------------------

This puts the limit so a user can vote once a day on a user profile

Quote · 24 Jun 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.