HOWTO: track votings by Member ID instead of IP

Change:

$_SERVER['REMOTE_ADDR']

to:

getLoggedId()

in inc\classes\BxDolVoting.php file in 2 (two) places.

Please note it will not work for not logged in users, so make sure that guests can not vote.

Rules → http://www.boonex.com/terms
Quote · 4 Jul 2011

thank you AlexT for this. i am going to get it applied and report back to you.

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 4 Jul 2011

one other thing i am looking for on here, is i know there is a refresh rate time set for subsequent votes. i wish to limit one vote per memberID. can you point to where the refresh setting is located? i think it was set by default to 24 hours or something. i need to set that to the equivalent of 1 year or something.

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 4 Jul 2011

Thanks for this, Alex!

 

<sorry about accidentally reporting your post>

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 4 Jul 2011

I was able to locate the two files you mentioned, but also found more voting related files:

 

  Name
No records found.
/public_html/modules/boonex/articles/classes/BxArlVoting.php
/public_html/modules/boonex/sites/classes/BxSitesVoting.php
/public_html/modules/boonex/feedback/classes/BxFdbVoting.php
/public_html/modules/boonex/groups/classes/BxGroupsVoting.php
/public_html/modules/boonex/events/classes/BxEventsVoting.php
/public_html/modules/boonex/news/classes/BxNewsVoting.php
/public_html/modules/boonex/store/classes/BxStoreVoting.php
/public_html/inc/classes/BxDolVoting.php
/public_html/inc/classes/BxDolTextVoting.php

 

Do these other files also need to be addressed to track voting by Member ID instead of IP address?

Quote · 4 Jul 2011

Have a look at the following line in the beginning of inc\classes\BxDolVoting.php file:

define( 'BX_PERIOD_PER_VOTE', 7 * 86400 );

it is in seconds, by default it is 1 week

one other thing i am looking for on here, is i know there is a refresh rate time set for subsequent votes. i wish to limit one vote per memberID. can you point to where the refresh setting is located? i think it was set by default to 24 hours or something. i need to set that to the equivalent of 1 year or something.

 

Rules → http://www.boonex.com/terms
Quote · 4 Jul 2011

No, only one file I mentioned above, all other files are inherited from this one and don't need to be changed

I was able to locate the two files you mentioned, but also found more voting related files:

 ....

Do these other files also need to be addressed to track voting by Member ID instead of IP address?

 

Rules → http://www.boonex.com/terms
Quote · 4 Jul 2011
 
 
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.