I would likely change the whole logic.
Check if a user is logged in
-> no cookie checked, just checked against database
else
check against cookie
Does that make sense? So does the like count in the database increase when not logged in people like a post?
S
Plugin Author
Alimir
(@alimir)
hello sascha,
the cookie checking, is for those users who liked a post in logged out mode. So if they want to like the same post, while they’re logged in, they can’t. (i think, this is a better logical survey)
But, i will add the ip address cheking for the next versions. 😉
Ah, ok! Understand that now. Have you had a problem logging in with 2-3 users from the same computer on the same day and trying to like the same post?
As said it did not work for me.
S
Plugin Author
Alimir
(@alimir)
The users, with same computer (and same browser) on the same post, have same cookie and they can’t like that post, more than one time. And this isn’t a problem.
It is important on shared computers!
Imagine a computer pool where many people log in on one computer during the course of the day. Specialised course and topic at a university. 100 participants. 20 computers in pool. 5-10 people log into the same site and want to like the same post from the same computer during the course of a day, when they are logged into that site.
Obviously that will need to work if done from same computer.
Is there a way to achieve this?
Plugin Author
Alimir
(@alimir)
This is a specific situation! But, I am going to add a new option on WP ULike 1.9 or WP ULike 2.0 that you can select your logging method. 😉
Cool! Thank you for your feedback.
I know this is a specific situation, but quite realistic in my described use case I think. At least I can witness that at my computer pool.
I guess it will make your plugin even better!