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: .Elephant on October 09, 2014, 12:57:51 PM
Hmm, do you have an alternative for putting that code after?
Try the attached file
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

gorbi

Google Chrome 37.0.2062.124 m

Rain Forest

Quote from: Joker™ on October 11, 2014, 03:40:59 AM
Quote from: .Elephant on October 09, 2014, 12:57:51 PM
Hmm, do you have an alternative for putting that code after?
Try the attached file
Thanks! :)

Any tips for adding an icon in front of 'like/unlike' text? :)


gorbi

.Elephant
Mark Zuckerberg will not mind? )))

Rain Forest

Quote from: gorbi on October 11, 2014, 08:32:11 AM
.Elephant
Mark Zuckerberg will not mind? )))

He'd be jealous, yes. ;)

gorbi


Joker™

Quote from: gorbi on October 11, 2014, 03:59:05 AM
Google Chrome 37.0.2062.124 m
Thanks for the translation and reporting bugs :)



Quote from: .Elephant on October 11, 2014, 07:43:03 AM
Thanks! :)

Any tips for adding an icon in front of 'like/unlike' text? :)


In Theme/Default/CSS/LikePosts.css

find '.unlike_link' and '.like_link' classes, and change the background-image as you like ;).
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

Rain Forest

I wonder how I get the icon 'before' the text..

.like_link {
background: #fff;
background-image: url(../images/like.png);
padding: 1px 5px;
color: #0474B4 !important;
position: relative;
}

Arantor

By setting background-repeat to none and making the left padding (only) bigger.
Holder of controversial views, all of which my own.


Rain Forest

Quote from: Arantor on October 11, 2014, 06:29:02 PM
By setting background-repeat to none and making the left padding (only) bigger.

Mm, it's not a great try for me :(

.like_link {
background: #fff;
background-image: url(../images/like.png) no-repeat;
padding-left: 50px !important;
color: #0474B4 !important;
position: relative;
}

a:hover {
text-decoration: underline;
}


.unlike_link {
background: #fff;
background-image: url(../images/like.png) no-repeat;
    padding-left: 50px !important;
color: #0474B4 !important;
position: relative;
}

a:hover {
text-decoration: underline;
}

Arantor

Hard to fix without seeing what the result currently is...
Holder of controversial views, all of which my own.


Kimmie

How hard would it be to incorporate this into this mod? There was a Thank You mod on here a while back (1.x) that tied both together but that one no longer works on 2.x. I still use the hide tag even though it isn't available on here anymore.

http://www.simplemachines.org/community/index.php?topic=32954.0

Arantor

Why would you want people to like something they can't see?
Holder of controversial views, all of which my own.


Joker™

Quote from: .Elephant on October 11, 2014, 06:57:17 PM
Quote from: Arantor on October 11, 2014, 06:29:02 PM
By setting background-repeat to none and making the left padding (only) bigger.

Mm, it's not a great try for me :(

.like_link {
background: #fff;
background-image: url(../images/like.png) no-repeat;
padding-left: 50px !important;
color: #0474B4 !important;
position: relative;
}

a:hover {
text-decoration: underline;
}


.unlike_link {
background: #fff;
background-image: url(../images/like.png) no-repeat;
    padding-left: 50px !important;
color: #0474B4 !important;
position: relative;
}

a:hover {
text-decoration: underline;
}

Try this

.like_link {
background-color: #C44E19;
background-image: url(../images/email_sm.gif);
background-repeat: no-repeat;
background-position: 0px 3px;
padding: 1px 5px 1px 15px;
color: #FFF !important;
position: relative;
display: inline-block;
text-indent: 6px;
}

.unlike_link {
background-color: #000;
background-image: url(../images/email_sm.gif);
background-repeat: no-repeat;
background-position: 0px 3px;
padding: 1px 5px 1px 15px;
color: #FFF !important;
position: relative;
display: inline-block;
text-indent: 6px;
}
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: Kimmie on October 11, 2014, 10:30:26 PM
How hard would it be to incorporate this into this mod? There was a Thank You mod on here a while back (1.x) that tied both together but that one no longer works on 2.x. I still use the hide tag even though it isn't available on here anymore.

http://www.simplemachines.org/community/index.php?topic=32954.0
And what feature should be exactly tied up?

Quote from: Arantor on October 11, 2014, 10:35:36 PM
Why would you want people to like something they can't see?
+1
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

Rain Forest

Quote from: Joker™ on October 12, 2014, 04:23:58 AM
Quote from: .Elephant on October 11, 2014, 06:57:17 PM
Quote from: Arantor on October 11, 2014, 06:29:02 PM
By setting background-repeat to none and making the left padding (only) bigger.

Mm, it's not a great try for me :(

.like_link {
background: #fff;
background-image: url(../images/like.png) no-repeat;
padding-left: 50px !important;
color: #0474B4 !important;
position: relative;
}

a:hover {
text-decoration: underline;
}


.unlike_link {
background: #fff;
background-image: url(../images/like.png) no-repeat;
    padding-left: 50px !important;
color: #0474B4 !important;
position: relative;
}

a:hover {
text-decoration: underline;
}

Try this

.like_link {
background-color: #C44E19;
background-image: url(../images/email_sm.gif);
background-repeat: no-repeat;
background-position: 0px 3px;
padding: 1px 5px 1px 15px;
color: #FFF !important;
position: relative;
display: inline-block;
text-indent: 6px;
}

.unlike_link {
background-color: #000;
background-image: url(../images/email_sm.gif);
background-repeat: no-repeat;
background-position: 0px 3px;
padding: 1px 5px 1px 15px;
color: #FFF !important;
position: relative;
display: inline-block;
text-indent: 6px;
}


Thanks :)

Kimmie

Quote from: Arantor on October 11, 2014, 10:35:36 PM
Why would you want people to like something they can't see?


Because that way they don't have to reply if they don't want to. This gives them a choice. Most of my members prefer the like button like we had before (only then it was a Thank You button). They have been begging me to try and get it put back on.


I also need to know how to change the background color or the color of the names. You can't see them because you have this as white on white.




Rain Forest

Quote from: Britannia360 on October 02, 2014, 11:14:48 AM
Quote from: Joker™ on October 02, 2014, 12:10:06 AM
Quote from: Britannia360 on October 01, 2014, 09:01:00 AM
How do I remove the Like Stats tab from the menu? I can't seem to find it anywhere?
Umm, its added via hook, so no SMF file is being modified to add the menu item. AFAIR, there is already a permission to disable the like stats based on member group, why don't you give it a try.

So I can't remove the tab?

Try this.. [back up file first]

In sources/LikePostsHooks.php

remove

$menu_buttons = array_merge(
array_slice($menu_buttons, 0, $initPos),
array(
'like_post_stats' => array(
'title' => $txt['lp_stats'],
'href' => $scripturl . '?action=likepostsstats',
'show' => true,
),
),
array_slice($menu_buttons, $initPos, count($menu_buttons) - $initPos)
);

gorbi

.Elephant

Where can I find a forum with the mod?

Rain Forest

I use it on my forums but I don't want to spam this topic to advertise :P

Advertisement: