Remember me

How likes works?

7 years 9 months ago #1

  • JaumeQuerS's Avatar
  • JaumeQuerS
  • Posts: 13
Hi,

I can see a "like" field but... is there a "log" of voting? How do you avoid likes from the same IP? It's only Cookie? Is there a log?

How this works?

It's important as we'll launch a contest based on likes and we need to reduce doubts and be cristal clear with the people.

Thanks a lot !

7 years 9 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hi,

"Likes" detect user by IP

Regards,

7 years 9 months ago #3

  • JaumeQuerS's Avatar
  • JaumeQuerS
  • Posts: 13
Hi Artem and thanks.

I managed to guess that :))

But how do you control that? Cookie, DB table, XML... you'll need to store the IP somewhere to avoid double voting.

If you want you can place me to talk in a non public place (hangout, email, ....) but I need to know as I must guarantee my users all is clear.

I'm thinking also on storing all in a log (db table based), following that transparency I told you, so if you can provide me in wich PHP votes are managed it will be fantastic.

Thanks a lot.

7 years 9 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 11342
All votes we store in DB, find table "_bagallery_users"

How it works:
1. components >> com_bagallery >> controllers >> gallery.php
2. components >> com_bagallery >> assets >> js >> ba-gallery.js
find there:
function likeImage

Regards,

7 years 9 months ago #5

  • JaumeQuerS's Avatar
  • JaumeQuerS
  • Posts: 13
Spectacular answer Artem !!!

Thanks a lot

7 years 9 months ago #6

  • JaumeQuerS's Avatar
  • JaumeQuerS
  • Posts: 13
Just on a suggestion to improve the like's log:

I've just simply created a TIMESTAMP field on d16_bagallery_users Table with DEFAULT value CURRENTTIMESTAMP.

It works and allows you to store (for advanced users) the timestamp of like.

Thanks !

7 years 9 months ago #7

  • Artem's Avatar
  • Artem
  • Posts: 11342
Thank you for your nice idea! ;)
Powered by Kunena Forum