Advertisement:

Author Topic: [TIP] Facebook Share Button  (Read 60969 times)

Offline adamgilchrist2012

  • Newbie
  • *
  • Posts: 2
Re: [TIP] Facebook Share Button
« Reply #40 on: September 15, 2012, 07:59:59 AM »
Thanks for the nice tips and I have tried it on my personal web page. It works.


Offline wdh280

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Male
Re: [TIP] Facebook Share Button
« Reply #42 on: September 23, 2012, 02:51:45 AM »
it work for SMF 1.1.14 and work fine with the Google +1 Topics MOD

Google +1 Topics code
Code: [Select]
// 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
Code: [Select]
// 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]


Offline ViperGoy.CoM

  • Newbie
  • *
  • Posts: 4
Re: [TIP] Facebook Share Button
« Reply #44 on: October 30, 2012, 11:50:34 PM »
Let's do it ^^ nice tutorial

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: [TIP] Facebook Share Button
« Reply #45 on: November 09, 2012, 07:16:40 AM »
How can we make it visible only to visitors?
It adds a lot to the load time if added to every post.

Offline kikwan

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
Re: [TIP] Facebook Share Button
« Reply #46 on: November 09, 2012, 09:14:20 AM »
Very thank ;D

Offline nualchan

  • Semi-Newbie
  • *
  • Posts: 18
Re: [TIP] Facebook Share Button
« Reply #47 on: November 11, 2012, 10:17:42 PM »
Nice tutorial thank you kha   ;)

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: [TIP] Facebook Share Button
« Reply #48 on: November 12, 2012, 05:23:43 AM »
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-


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

« Last Edit: November 19, 2012, 05:25:22 AM by PLAYBOY »

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: [TIP] Facebook Share Button
« Reply #49 on: November 19, 2012, 05:31:30 AM »
Can anybody help me please?

Offline Xhoi

  • Newbie
  • *
  • Posts: 4
Re: [TIP] Facebook Share Button
« Reply #50 on: November 20, 2012, 10:32:16 AM »
ill add this to my plugin im making, hoping ill publish it soon  :-\

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: [TIP] Facebook Share Button
« Reply #51 on: November 20, 2012, 12:48:01 PM »
Cool. Please let us know when done.

Offline rafmak10

  • Newbie
  • *
  • Posts: 8
Re: [TIP] Facebook Share Button
« Reply #52 on: November 24, 2012, 11:42:28 AM »
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

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: [TIP] Facebook Share Button
« Reply #53 on: November 26, 2012, 07:54:42 PM »
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

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: [TIP] Facebook Share Button
« Reply #54 on: November 27, 2012, 01:07:25 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?

Offline winsoft

  • Semi-Newbie
  • *
  • Posts: 54
    • Search UK Jobs
Re: [TIP] Facebook Share Button
« Reply #55 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.

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: [TIP] Facebook Share Button
« Reply #56 on: November 28, 2012, 04:51:08 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?