News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[TIP] Facebook Share Button

Started by Mick., July 20, 2010, 01:24:31 PM

Previous topic - Next topic

adamgilchrist2012

Thanks for the nice tips and I have tried it on my personal web page. It works.


wdh280

Quote from: metalmaragato on July 15, 2011, 01:38:21 AM
it work for SMF 1.1.14 and work fine with the Google +1 Topics MOD

Google +1 Topics code

// Start Google +1 Mod smfhacks.com
if ($message['id'] == $context['topic_first_message'] )
{
echo '<div style="float: left"><g:plusone href="' . $scripturl . '?topic=' . $context['current_topic'] . '" size="small"></g:plusone>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script></div>';
}
// End Google Plus +1 Mod smfhacks.com


This tip with some changes change the button for button_count

// Start Facebook share
if ($message['id'] == $context['topic_first_message'] )
{
        echo '<div style="float: left"><a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>';
                            }
// End Facebook share





Doesn't work for me, when i share facebook share button it doesn't pull the thread id. It ends up looking like this www.example.com/forums/index.php/null [nofollow]


ViperGoy.CoM


PLAYBOY

How can we make it visible only to visitors?
It adds a lot to the load time if added to every post.

kikwan


nualchan


PLAYBOY

#48
1- How can we make it visible only to visitors?
2- How can we add a logo to the share post? Right now It adds the title and part of the message but there is no logo.
3- Is there anyway to make the count box smaller?
4- How to make this button "Not appear" in some posts/boards ?


5-
Quote from: marci_n on July 22, 2011, 05:43:45 PM


How come mine shows a very big count box? How can i remove the count?


PLAYBOY


Xhoi

ill add this to my plugin im making, hoping ill publish it soon  :-\

PLAYBOY

Cool. Please let us know when done.

rafmak10

Hi,
Do you have any idea ho to change smf code to share topic on facebook not only as a text but text with pictures?
I have thise problem becouse if image is as a attachment I cant share topic with image :(

Best

Mick.

Quote from: PLAYBOY on August 29, 2012, 01:24:59 AM
Quote from: PLAYBOY on July 15, 2011, 01:43:39 AM
It think it would be a helpful mod for ones who dont like to do manual changes.

There is still not a mod to do this right?
i think someone made a mod

PLAYBOY

Quote from: Mick G. on November 26, 2012, 07:54:42 PM
Quote from: PLAYBOY on August 29, 2012, 01:24:59 AM
Quote from: PLAYBOY on July 15, 2011, 01:43:39 AM
It think it would be a helpful mod for ones who dont like to do manual changes.

There is still not a mod to do this right?
i think someone made a mod

Can you give the link or the name of the mod?

winsoft

unfortunately it's not working anymore. Facebook forcing us to use like instead share for some reasons.

PLAYBOY

Quote from: winsoft on November 28, 2012, 04:21:55 PM
unfortunately it's not working anymore. Facebook forcing us to use like instead share for some reasons.

It works on my site. FShare is pretty good. But it needs some repair and improvements.


I know there is something like
"Like button but when you click also a comment box popsup so you add a comment there too."
Can we make this current like button like that?

Advertisement: