Advertisement:

Author Topic: Like Posts  (Read 327620 times)

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,500
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Like Posts
« Reply #1020 on: June 25, 2019, 06:16:22 AM »
Awesome! Thanks skb!
Online Manual

Please do not PM me for support.

Offline KTN

  • Semi-Newbie
  • *
  • Posts: 33
Re: Like Posts
« Reply #1021 on: August 29, 2019, 01:12:27 PM »
I upgraded my site SMF 2.0.15 to SMF 2.1 RC2.
I used to have Thanks mod and it doesn't work on SMF 2.1 RC2 anymore because it has own like system. But I don't want to lose my member's thanks data, so I download the thanks data table and like data table from the database.
xx_messages_thanks  table has id_messages  and id_members
xx_user_likes  table has id_members, content_type, content_id and like_time

I used excel copied all my thanks data to user_like table  (content_id=id_message) and imported back to my database.
It worked even Stat showed like counts for the members.

But my problem is, on my forum (under the post) like numbers didn't show until you click the like button on the post. For that matter, I have to click all of our members' old posts to see the numbers of like.

Any solution to short cut for that?

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,434
    • sbulen on GitHub
Re: Like Posts
« Reply #1022 on: August 29, 2019, 01:17:31 PM »
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline KTN

  • Semi-Newbie
  • *
  • Posts: 33
Re: Like Posts
« Reply #1023 on: August 30, 2019, 11:43:02 PM »
I think the 2nd query from this post will help.
https://www.simplemachines.org/community/index.php?topic=506743.msg4010825#msg4010825

Thank you so much Shawnb61, finally, I got it. I am not a PHP SQL IT guy but I figured it out from your query and a lot of google search. Thanks again.

Offline a10

  • Charter Member
  • Sr. Member
  • *
  • Posts: 883
Re: Like Posts
« Reply #1024 on: Yesterday at 04:51:25 PM »
Hello, assuming and hoping 2.0.15 will get it's needed\awaited php fix ...soon, how will 'like' behave with php 7.2 \ 7.3 ?

Thanks.
2.0.15, ssl, php 7.1.31, MySQL 10.3.13-MariaDB~bionic
Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,669
    • StoryBB/StoryBB on GitHub
Re: Like Posts
« Reply #1025 on: Yesterday at 04:54:47 PM »
Hello, assuming and hoping 2.0.15 will get it's needed\awaited php fix ...soon, how will 'like' behave with php 7.2 \ 7.3 ?

Thanks.

No guarantees it will. What is the actual problem with 7.2 anyway? Some things can't be fixed in the core but have to be fixed in the mod's code.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,563
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Like Posts
« Reply #1026 on: Today at 01:05:12 PM »
Hello, assuming and hoping 2.0.15 will get it's needed\awaited php fix ...soon, how will 'like' behave with php 7.2 \ 7.3 ?

Thanks.
Should be ok. I don't see anything that would break just taking a glance.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro