Advertisement:

[TIP] Facebook Share Button

Begonnen von Mick., Juli 20, 2010, 01:24:31 NACHMITTAGS

Vorheriges Thema - Nächstes Thema

adamgilchrist2012

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


wdh280

Zitat von: metalmaragato in Juli 15, 2011, 01:38:21 VORMITTAG
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-
Zitat von: marci_n in Juli 22, 2011, 05:43:45 NACHMITTAGS


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


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.

Zitat von: PLAYBOY in August 29, 2012, 01:24:59 VORMITTAG
Zitat von: PLAYBOY in Juli 15, 2011, 01:43:39 VORMITTAG
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

Zitat von: Mick G. in November 26, 2012, 07:54:42 NACHMITTAGS
Zitat von: PLAYBOY in August 29, 2012, 01:24:59 VORMITTAG
Zitat von: PLAYBOY in Juli 15, 2011, 01:43:39 VORMITTAG
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

Zitat von: winsoft in November 28, 2012, 04:21:55 NACHMITTAGS
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: