Module

Developer
Supported

EE 1
EE 2
LikEE

Back to this add-on's main page
View Other Add-ons From Booyant

     

You must be logged in to post.

Tag to show a member’s like history?

Feature Request

billy2011
billy2011

Hi Michael,

Just wonder is there any tag to show what a member Liked, working as the reverse of Liker tag? If non-existence, is it possible you add that?

Thanks a lot!

Booyant, Inc
# 1
Developer
Booyant, Inc

Hey Billy,

You could pretty easily do this - but you’d need a little knowledge of MySQL. If you have experience with MySQL, then just use EE’s Query module and check out the LikEE tables. It is very straightforward.

Unfortunately, due to the amount of client work at the moment we are not really making changes to this addon. Hopefully if we get a chance to breath we will come back to visit it at this point, but I wouldn’t be able to commit to when.

Michael

billy2011
# 2
billy2011

Michael, got it! I will do that by myself. I’m quite good at MySQL:)
Thank a lot for your quick response and tips. Really helps.

Bert Sinnema
# 3
Bert Sinnema

@billy

Could you post a query for this feature for the les fortunate on MySQL knowledge?

Cheers.

billy2011
# 4
billy2011

Hi Bert, I have not implemented that yet, but the ideas here:

The query:
SELECT entry_id
    , (SELECT title
      FROM
      exp_channel_titles ct
      WHERE
      ct.entry_id = el.entry_id) AS TITLE
FROM
  exp_likee el
WHERE
  member_id = {member_id} AND liked = 1

Notes:
1. {member_id} is the tag to get member id I guess, maybe you can use segment_2 or whatever.
2. The query is verified.
3. “liked =1” could be replaced by “disliked = 1”
4. I didn’t not use JOIN in the SQL. This is less efficient but could allow Pagination.
3. TITLE is a sample field, you can add whatever fields according to this format.

Hope that helps.

Bert Sinnema
# 5
Bert Sinnema

Great!  thanks a bunch!