Osclass Support Forums

Osclass plugin support => User Rating Plugin => Topic started by: Tango on May 25, 2019, 03:46:03 PM

Title: Show IP Suggestion
Post by: Tango on May 25, 2019, 03:46:03 PM
To prevent spam ratings from users that create multiple accounts just to rate themselves, I suggest showing the IP of the rating owner like in the attached image.
It will help a lot when validating the ratings.

Thanks a lot!
Title: Re: Show IP Suggestion
Post by: MB Themes on May 25, 2019, 10:19:48 PM
Thanks for feedback, will check that
Title: Re: Show IP Suggestion
Post by: Tango on September 17, 2019, 12:31:56 AM
Hello,

Any news on this, as it shouldn't be so hard to implement and it would be an amazing feature for popular websites that have many users?

Thanks!
Title: Re: Show IP Suggestion
Post by: MB Themes on September 17, 2019, 09:18:14 AM
@Tango
Well problem is if user change IP
Title: Re: Show IP Suggestion
Post by: Tango on September 17, 2019, 09:33:09 PM
@Tango
Well problem is if user change IP
This isn't a major issue, as most users won't go to the trouble of creating a new email/account, restarting their router and waiting a few minutes to reconnect, just to rate themselves. It's just too much of a hassle.
Most of them will have 3-4 different email addresses, so they will create a bunch of accounts and rate.

So checking the IP would add another layer of authenticity to the ratings.

Thanks!
Title: Re: Show IP Suggestion
Post by: Tango on December 31, 2020, 02:18:42 PM
Hello Michal,

I'm trying to get and return the IP of the user that left the rating and I'm so stuck...
Is there any way of getting the IP without storing it first in the plugin t_user_rating_ur table?

If I just try to get the IP using $user['s_access_ip'] it always returns my IP...

I guess that I first have to pull the user ID, then return the IP, but I don't know how to do it.

Any ideas?

Again, this is an important feature for preventing fake ratings form the same person using multiple accounts.

Thanks!
Title: Re: Show IP Suggestion
Post by: MB Themes on January 01, 2021, 08:52:12 PM
@Tango
Access IP of visitor (logged) is stored in user table in column s_access_ip, so your procedure is proper, just make sure $user is the right user you are looking for.
Title: Re: Show IP Suggestion
Post by: Tango on January 02, 2021, 09:29:27 PM
Got it to work with:
Code: [Select]
$user_title .= __('IP', 'user_rating') . ': ' . $from_user['s_access_ip'];
Thanks for the help!