News:

Join the Facebook Fan Page.

Main Menu

Like Posts

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

Previous topic - Next topic

iain sherriff

If all your themes have been changed the same way......yes.

as I said......this is my guess. if I know I would probably not have needed to ask the question about my theme  ;)
SMF 2.0.12

Steve

I edited my previous post and I do appreciate your input but it's not helping me answer my question. :)
DO NOT pm me for support!

Black Tiger

#582
I would like to change the language and the "like" button on this mod. Is there a possibility?
For example, there is no default .gif or .jpg that is used so I presume the noavatar.png is used and the text "Like" is projected on there with color some way?

Is there an easy way to change that to for example "Bedankt" and also translate the lines about the Like mod in the user profile field?

I'm sorry I forgot to mention that we found the English language file and translated that to LikePosts.dutch.php but when using that, it's producing an error on the forums.
Greetings, Black Tiger

kelvincool

Replace this bit:

<div class="user_bar">
  <span><a href="', $scripturl, '?action=unread">', $txt['unread'], '</a></span> |
<span><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></span>
</div>';


With this:

<div class="user_bar">
  <span><a href="', $scripturl, '?action=unread">', $txt['unread'], '</a></span> |
<span><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></span>';
if(LikePosts::$LikePostsUtils->showLikeNotification()) {
echo ' |
<span><a href="#" class="showLikeNotification" onclick="lpObj.likePostsNotification.showLikeNotification()">', $txt['like_show_notifications'], '</a></span>';
}
echo ' </div>';




Black Tiger

@Kevin: I presume that code is ment for Steve?
Greetings, Black Tiger

kelvincool

@Black Tiger, yes that was for Steve.

Steve

Thanks kelvin. Will get back to you on it. :)
DO NOT pm me for support!

Black Tiger

Anybody a clue on why the forums turn off with a "template error" notice when creating for example LikePosts.dutch.php and putting that in the language directory next to LikePosts.english.php?
Greetings, Black Tiger

Arantor

What error *exactly* do you get?

Black Tiger

Now I get a white screen, probably because a mod I implemented.
But this is what the error_log says now:
PHP Parse error:  syntax error, unexpected T_STRING in /home/duckfile/public_html/forum/Themes/default/languages/LikePosts.dutch.php on line 154

I checked the Russion translation and saw that the frontend part (first part) was not translated, can that be the cause?
Greetings, Black Tiger

Black Tiger

This is line 154 in LikePosts.dutch.php:
$txt['lp_select_all_boards'] = 'Selecteer alle (sub)forums';
Greetings, Black Tiger

Arantor

So then there's something wrong with line 153.

Black Tiger

With 153, not with 154? Oke I'll compare both, but tomorrow, going to sleep now. :)
Greetings, Black Tiger

Arantor

Well, it's complaining that line 154 is where it hits an unexpected string which implies the one on line 153 wasn't terminated properly or was otherwise damaged.

Black Tiger

Yes I have fixed it.... there was a ' missing on line 153 indeed. ;)
Greetings, Black Tiger

Sacha

After the installation i had this error:


Joker™

Quote from: RoadRanger on November 22, 2014, 04:32:48 PM
Awesome mod, I replaced my kludged "karma" usage with it :) . I do wish it looked a bit more integrated with the forum, maybe with the "Like" button next to the "report to moderator"? It'd be cool to change the "report to moderator" to a "report" button similar to the "like" button too :) . One minor bug I see is if a topic is "pinned" the (x people like this) message on the topic overstrikes the "pinned" icon:
http://cacophony.aspinock.com/index.php?board=26.0
Tracked - https://github.com/siddhartha-gupta/SMF-Likes/issues/36
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Quote from: iain sherriff on November 25, 2014, 09:30:04 AM
Hi
I installed  this on a test board. It went ok but gave install error on index.template.php.

I'm sure this is because I have the "unread enhancement" mod so the bit of code your mod looks for isn't there !

The like button appeared and all the admin stuff was there and useable. When I clicked the button there was no action tho...............could this be just because of the error ?

(I can't show you as the test site crashed  over something else)
Well I need to see the website and only then I can identify and comment on the issue
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Quote from: njsuperglide on November 29, 2014, 01:59:47 PM
I installed this mod on my SMF 2.06 and can access the admin screens but the Like button does not appear on my posts.
have you selected the boards as well where this mod should be active?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Quote from: Sacha on November 30, 2014, 10:00:26 PM
After the installation i had this error:


Which PHP version are you using?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: