News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Like Posts

Started by vbgamer45, June 29, 2013, 09:29:03 AM

Previous topic - Next topic

Steve

Awesome! Thanks skb!
DO NOT pm me for support!

KTN

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?

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

KTN

Quote from: shawnb61 on August 29, 2019, 01:17:31 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.

a10

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.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Arantor

Quote from: a10 on October 22, 2019, 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.

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.

vbgamer45

Quote from: a10 on October 22, 2019, 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.
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

a10

Quote from: vbgamer45 on October 23, 2019, 01:05:12 PM
Quote from: a10 on October 22, 2019, 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.
Should be ok. I don't see anything that would break just taking a glance.

Thanks for answer. WIll do some testing later on with different php's (on a copy of my live forum), and report findings.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

a10

Tested quite a lot with Like 2.1.2 on php 7.3.11, all seems to be well so far :O)
Very good.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

vbgamer45

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

radenra


Steve

In the admin settings there is this option:

QuoteEnable notification for like posts
Global permission to enable/disable mod notification

I'm not quite sure what it actually does.

I can't find an option anywhere in my profile to turn on or off notifications when my posts are liked.

Or is it not a specific option for each individual to get a notification or not?
DO NOT pm me for support!

sam666

Updated SMF to 2.0.16. Set PHP to 7.2.26 or 7.3.13 and in the admin log, Like Posts has many "The each() function is deprecated" In Likeposts.php
Line ==>299:         while ((list($key, $val) = each($menu_buttons)) && $key != 'logout')

GL700Wing

#1033
Quote
Quote from: stoneageman on December 28, 2019, 05:57:45 AM
Updated SMF to 2.0.16. Set PHP to 7.2.26 or 7.3.13 and in the admin log, Like Posts has many "The each() function is deprecated" In Likeposts.php
Line ==>299:         while ((list($key, $val) = each($menu_buttons)) && $key != 'logout')
I encountered the same issue and the following change I made resolved the issue on my forum:

In ./Sources/LikePosts/LikePosts.php
Find:
while ((list($key, $val) = each($menu_buttons)) && $key != 'logout')

Replace with:
while (($key = key($menu_buttons) && $val = current($menu_buttons)) && $key != 'logout')
Life doesn't have to be perfect to be wonderful ...

vbgamer45

Awesome thanks will get that patched now!
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

vbgamer45

Update

Version 2.1.2
!Fixed bug with most like giving users page in profile throwing a database error in some cases.
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

Rob Lightbody

Hi,

Just installed 2.2. onto SMF 2.0.16

Installed OK - but now I have the "Like Posts" button on my menu bar as the first thing - before Home - affects all users - and is very confusing!  (I instinctively click the first button on the menu bar when i want to go home!).

Thanks,

- Rob

fungolfer

I have 2.1.2 installed in my forum (2.0.17) Do I need to uninstall the old version before installing the new version? Package Manager says 2.2 is an older version... Downloaded package from Mod site...

vbgamer45

I would suggest uninstalling old version first.
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

fungolfer

Japp, that worked fine. Thanks :)

Advertisement: