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

Joker™

Quote from: Steve on November 30, 2014, 05:31:45 PM
Thanks kelvin. Will get back to you on it. :)
Do you require any further help on the same
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

Steve

Quote from: Joker™ on December 02, 2014, 08:46:30 PM
Quote from: Steve on November 30, 2014, 05:31:45 PM
Thanks kelvin. Will get back to you on it. :)
Do you require any further help on the same
Sorry, haven't had a chance to try it yet. Too much turkey and all. ;)
DO NOT pm me for support!

Arantor

wut, it's only 3rd December. Now, if it was eggnog, I could understand... ;)

Steve

Been doing that too ... :P
DO NOT pm me for support!

Sacha

Quote from: Joker™ on December 02, 2014, 08:45:45 PM
Quote from: Sacha on November 30, 2014, 10:00:26 PM
After the installation i had this error:


Which PHP version are you using?

I've already solved it. The problem was the PHP Version. Thank you! :)

Joker™

Mod update to version 2.0.3 with fixes. So can read the complete change log over here

https://github.com/siddhartha-gupta/SMF-Likes/blob/master/changelog.md
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

fotografo74

Hi @Joker,
thanks for this MOD!
I installed manually this mod in my custom theme  Pelikan by DzinerStudio), it works ok, i have only one little problem:
the box that appears after click to Show likes notification closes after few moments and i'm unable see this box :(
How can i fix this problem?
I think this functionality of your Mod ( Show likes notification)  conflicts with Highslide Image viewer Mod
If i enable Show likes notification the mod Highslide Image viewer not works.



Thanks
Antonio

Joker™

Quote from: fotografo74 on December 18, 2014, 07:41:38 AM
Hi @Joker,
thanks for this MOD!
I installed manually this mod in my custom theme  Pelikan by DzinerStudio), it works ok, i have only one little problem:
the box that appears after click to Show likes notification closes after few moments and i'm unable see this box :(
How can i fix this problem?
I think this functionality of your Mod ( Show likes notification)  conflicts with Highslide Image viewer Mod
If i enable Show likes notification the mod Highslide Image viewer not works.



Thanks
Antonio
Tracked https://github.com/siddhartha-gupta/SMF-Likes/issues/38
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

coltp45

Quote from: kelvincool on November 30, 2014, 10:05:26 AM
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>';

Hello, in which file must make this modification

TrackMustangsOnline


gaurav09

how to install this mod on different theme ??
It's giving error :-

./Themes/demo/index.template.php       Test failed

Find
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

Add After
if(LikePosts::$LikePostsUtils->showLikeNotification()) {
echo '
<li><a href="#" class="showLikeNotification" onclick="lpObj.likePostsNotification.showLikeNotification()">', $txt['like_show_notifications'], '</a></li>';
}


I tried to install on 2-3 themes, but it's giving this same "index.template.php" error  :'(

Please fix..i tried on this theme also : http://www.simplemachines.org/community/index.php?topic=519444.0

Steve

DO NOT pm me for support!

gaurav09

Quote from: Steve on January 12, 2015, 09:32:52 AM
Have you read through this yet?

http://wiki.simplemachines.org/smf/Error_in_mod_installation
yeh read this,..but i checked my index.template.php file,..there is no code which needs to be found !!

i found one some type of similar code that is :-

<li>
<a href="'. $scripturl. '?action=unreadreplies">
<img src="'. $settings['images_url'] .'/userbox/replies.png" alt="*" />
', $txt['unread_replies'], '
</a>
</li>


this below code is not atall present in themes index.template.php file !!

<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

Joker only you can help,..please help !!

_monotiz_

<a href="'. $scripturl. '?action=unreadreplies">
<img src="'. $settings['images_url'] .'/userbox/replies.png" alt="*" />
', $txt['unread_replies'], '
</a>


is the equivalent piece of code of

<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>

gaurav09

Quote from: _monotiz_ on January 12, 2015, 11:14:56 AM
<a href="'. $scripturl. '?action=unreadreplies">
<img src="'. $settings['images_url'] .'/userbox/replies.png" alt="*" />
', $txt['unread_replies'], '
</a>


is the equivalent piece of code of

<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>

I also tried to edit index.template.php manually, i added this below code after above code, but forum got error.

if(LikePosts::$LikePostsUtils->showLikeNotification()) {
echo '
<li><a href="#" class="showLikeNotification" onclick="lpObj.likePostsNotification.showLikeNotification()">', $txt['like_show_notifications'], '</a></li>';
}

margarett

Can you please add here some more 5-10 lines, above and below this:
<li>
<a href="'. $scripturl. '?action=unreadreplies">
<img src="'. $settings['images_url'] .'/userbox/replies.png" alt="*" />
', $txt['unread_replies'], '
</a>
</li>

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

gaurav09

@margarett
<div id="userbox" class="dropup" style="display: none;">
<ul class="dropdown-menu">
<li>
<a href="'. $scripturl. '?action=profile">
<img src="'. $settings['images_url'] .'/userbox/profile.png" alt="*" />
', $txt['profile'], '
</a>
</li>
<li>
<a href="'. $scripturl. '?action=profile;area=account">
<img src="'. $settings['images_url'] .'/userbox/account.png" alt="*" />
', $txt['account'], '
</a>
</li>
<li>
<a href="'. $scripturl. '?action=profile;area=forumprofile">
<img src="'. $settings['images_url'] .'/userbox/editprofile.png" alt="*" />
', $txt['forumprofile'], '
</a>
</li>
<li>
<a href="'. $scripturl. '?action=unreadreplies">
<img src="'. $settings['images_url'] .'/userbox/replies.png" alt="*" />
', $txt['unread_replies'], '
</a>
</li>
<li>
<a href="'. $scripturl. '?action=unread">
<img src="'. $settings['images_url'] .'/userbox/topics.png" alt="*" />
', $txt['unread_topics_visit'], '
</a>
</li>
</ul>
</div>';
}
echo'
</div>';
}
?>

margarett

This should work (untested)

<div id="userbox" class="dropup" style="display: none;">
<ul class="dropdown-menu">
<li>
<a href="'. $scripturl. '?action=profile">
<img src="'. $settings['images_url'] .'/userbox/profile.png" alt="*" />
', $txt['profile'], '
</a>
</li>
<li>
<a href="'. $scripturl. '?action=profile;area=account">
<img src="'. $settings['images_url'] .'/userbox/account.png" alt="*" />
', $txt['account'], '
</a>
</li>
<li>
<a href="'. $scripturl. '?action=profile;area=forumprofile">
<img src="'. $settings['images_url'] .'/userbox/editprofile.png" alt="*" />
', $txt['forumprofile'], '
</a>
</li>
<li>
<a href="'. $scripturl. '?action=unreadreplies">
<img src="'. $settings['images_url'] .'/userbox/replies.png" alt="*" />
', $txt['unread_replies'], '
</a>
</li>';
if(LikePosts::$LikePostsUtils->showLikeNotification())
echo '
<li><a href="#" class="showLikeNotification" onclick="lpObj.likePostsNotification.showLikeNotification()">', $txt['like_show_notifications'], '</a></li>';
echo '
<li>
<a href="'. $scripturl. '?action=unread">
<img src="'. $settings['images_url'] .'/userbox/topics.png" alt="*" />
', $txt['unread_topics_visit'], '
</a>
</li>
</ul>
</div>';
}
echo'
</div>';
}
?>
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

desiamerican26

Hi,

I installed Like Posts Mod for my forums. It is working fine everywhere else but it's not opening up too the Guests. I checked at the back end and everything is checked for Guests to click like. Is it because I am using a different Template?

I am using Golove-Gradient Theme. Also, attaching the screenshot from Guest checked section.

Please let me know.

Thank You
Regards,

Nikhil

Joker™

Quote from: coltp45 on January 04, 2015, 01:33:31 AM
Quote from: kelvincool on November 30, 2014, 10:05:26 AM
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>';

Hello, in which file must make this modification
Hi,

You can check the changes over here - http://custom.simplemachines.org/mods/index.php?action=parse;mod=3708;attach=238068;smf_version=2.0.9


Looking at the changes you have asked

/Themes/theme_you_are_using/index.template.php

Code (Find) Select
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

Code (Add after) Select


if(LikePosts::$LikePostsUtils->showLikeNotification()) {
echo '
<li><a href="#" class="showLikeNotification" onclick="lpObj.likePostsNotification.showLikeNotification()">', $txt['like_show_notifications'], '</a></li>';
}
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: