News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Like Posts

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

Previous topic - Next topic

vbgamer45

Update
*Version 2.1
- Added support for PHP7 thanks to skswales
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

Arantor

Correct. The change is because of how precedence changed on object referencing and the braces are there to set the correct precedence.

pocttopus

Hello,

How can enable all like stats from the menu?
When I want to go Topic, Board, Most liked member and Most like giving user it returns me back to Message.

Can view like stats are all checked in Permissions settings



Arskrigitsioniets

I have just decided the problem: in users profile when I try to see get/given likes I saw a mistake:

call to undefined function getOwnlikes()


It was even in clear smf 2.0.15 version that just installed.

Solution is:
In the file ../Sources/LikePosts/LikePostsRouter.php

Find
return LikePosts::$LikePostsProfile->{$subActions[$_REQUEST['sa']]($memID)};
Change to
return LikePosts::$LikePostsProfile->{$subActions[$_REQUEST['sa']]}($memID);

I don't know if people from this forum faced this problem, but if they faced - attach this solution somewhere in a prominent place.

Black Tiger

Thank you, I had the same problem indeed with 2.1 and SMF 2.0.15. Your fix solved the issue for me.
Greetings, Black Tiger

vbgamer45

Update
*Version 2.1.1
!Fixed call to undefined function getOwnlikes() PHP7 thanks Arskrigitsioniets
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

Numeriku

Hello there guys, i installed this mod & it is working greatl, but there seem to be 2 minor issues.

https://ksource.asia/image/image/oqM
Is it intended to look that way? i am running smf 2.0.15 with nightbreeze theme by sycho

https://ksource.asia/image/image/wXo
Anyone can help me with the css code required to fix that.

Thanks in advance.

SychO

Quote from: Numeriku on August 18, 2018, 08:09:38 AM
Hello there guys, i installed this mod & it is working greatl, but there seem to be 2 minor issues.

https://ksource.asia/image/image/oqM
Is it intended to look that way? i am running smf 2.0.15 with nightbreeze theme by sycho

https://ksource.asia/image/image/wXo
Anyone can help me with the css code required to fix that.

Thanks in advance.

Make likes visible for guests and add a link to your forum, also attach the theme's index.template.php
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Numeriku

Quote from: SychO on August 18, 2018, 08:20:23 AM
Quote from: Numeriku on August 18, 2018, 08:09:38 AM
Hello there guys, i installed this mod & it is working greatl, but there seem to be 2 minor issues.

https://ksource.asia/image/image/oqM
Is it intended to look that way? i am running smf 2.0.15 with nightbreeze theme by sycho

https://ksource.asia/image/image/wXo
Anyone can help me with the css code required to fix that.

Thanks in advance.

Make likes visible for guests and add a link to your forum, also attach the theme's index.template.php

https://ksource.asia/

Done, likes should be visible for guests.

SychO

Try this css, add it to index.min.css
.subject_details {
    min-width: 400px;
} .like_post_message_data,
.like_post_topic_data,
.like_post_board_data,
.like_post_most_liked_user_data,
.like_post_most_likes_given_user_data,
.like_post_stats_error {
    background: #181f2b !important;
    color: #ddd !important;
} .like_posts_member_info_box {
    background: #252f41 !important;
    border: 2px solid #37455e!important;
    border-radius: 0!important;
}.like_posts_member_info {
    border: none!important;
}


upload the attached index.template.php
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Numeriku

Quote from: SychO on August 18, 2018, 08:54:17 AM
Try this css, add it to index.min.css
.subject_details {
    min-width: 400px;
} .like_post_message_data,
.like_post_topic_data,
.like_post_board_data,
.like_post_most_liked_user_data,
.like_post_most_likes_given_user_data,
.like_post_stats_error {
    background: #181f2b !important;
    color: #ddd !important;
} .like_posts_member_info_box {
    background: #252f41 !important;
    border: 2px solid #37455e!important;
    border-radius: 0!important;
}.like_posts_member_info {
    border: none!important;
}


upload the attached index.template.php

It works great! Thank you. But i seem to have a problem with the css, any changes i made there isnt registered, i disabled cloudflare cache & browser cache.

Edit- Nvm deleted the online copy & uploaded another one and it works.

SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Numeriku

Quote from: SychO on August 18, 2018, 09:15:54 AM
just hit CTRL+F5

Thanks, i've sent you a coffee, i know it isn't much but i will keep on supporting you for the coming future.

SychO

Quote from: Numeriku on August 18, 2018, 10:24:13 AM
Quote from: SychO on August 18, 2018, 09:15:54 AM
just hit CTRL+F5

Thanks, i've sent you a coffee, i know it isn't much but i will keep on supporting you for the coming future.

The support is appreciated mate
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Yorel

Hi vbgamer45

Installed 2.0.5 right now. Do I have to uninstall it and install 2.1.1?. If so, will we lose the thanks already given.

In the other hand, is it possible you to program the numbers are sepparated by dots or comma?. I mean, if an user's got 1890 thanks now thats the number you can see. The number'd be 1.890 or 24.738.

Thanks for your work on this mod.

vbgamer45

No it won't loose the data that you have already.

Commas maybe.
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

crashfirephoenix

Hi,
I haven't made any changes to my board lately -running SMF 2.0.15

When I click on "most like giving user" the page doesn't load and I receive the following error in the admin console. thoughts?

Apply Filter: Only show the error messages of this URL https://discuss.avscience.com/index.php?action=likepostsstatsajaxApply [nofollow] Filter: Only show the errors with the same messageDatabase Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY m.id [nofollow]_msg DESC
LIMIT 10' at line 5


SELECT m.id [nofollow]_msg, m.id [nofollow]_topic, m.subject, m.body, m.poster_time, m.smileys_enabled
FROM smf_messages as m
INNER JOIN smf_boards AS b ON (b.id_board = m.id [nofollow]_board)
WHERE 1=1
AND m.id [nofollow]_msg IN (10099,10094,10127,10092,10063,10038,9969,9860,9752,9692,9642,9935,9791,9778,9625,10070,9966,9961,9956,9954,9942,9936,9938,9910,9881,9878,9877,9865,9846,9833,9801,9744,9716,9710,9704,9696,9628,9605,9604,9578,9574,9665,9533,9515,9506,9449,9447,9424,9309,9156,9148,9277,9139,9138,9081,9543,9061,9484,8851,8849,8832,9467,8864,9329,9287,9220,9114,8775,8722,8678,9084,8988,8526,8533,8523,8474,8217,9774,9598,8707,8263,8179,9216,8614,8465,8029,9818,8183,8175,7996,8730,8692,7893,8452,8447,8442,7750,7737,8132,7657,7629,7544,7603,7472,7469,7466,7630,7386,7385,7328,7447,7229,7222,7223,7167,9201,9125,7610,7576,7563,7559,7220,7200,7107,7230,6977,6979,7006,6981,6971,6975,6964,6542,6500,6356,7262,7091,7247,7007,6950,6792,6686,6606,6558,6538,6495,6482,6469,6467,6428,6414,6393,6354,6360,6327,6306,6286,6239,9525,8506,8325,8270,7066,6892,6885,6649,6137,5792,5175,5180,5188,4977,4990,4984,10126,4754,5027,5569,4571,4441,9397,9983,10087,8793,8735,8635,8236,8082,8005,7990,7984,7921,7886,7873,7883,7850,7808,7804,7800,7781,7724,7695,7694,)
ORDER BY m.id [nofollow]_msg DESC
LIMIT 10

Apply Filter: Only show the errors from this file File: /home/avscience/public_html/discuss/Sources/LikePosts/DB/LikePostsStatsDB.php
Line: 418

vbgamer45

Posted an update hopefully helps
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

pocttopus

Hi there,

Because of the new update I wanted to uninstall the 2.1.1 version. There were errors reported but there was no lines to be replaced or deleted.
Then I go further for the uninstall process and now the forum is gone.

After the login there is no forum, only the header.
How can I solve this issue!?  :-\
http://forum.mkreef.com

vbgamer45

I would revert to a backup. When you install a package it creates a version of the forum before the mod. under packages/backup folder in your forum.
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

Advertisement: