Advertisement:

Author Topic: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts  (Read 118422 times)

Offline JBlaze

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,159
  • Gender: Male
    • @fragicide on Twitter
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #20 on: September 19, 2011, 08:53:17 AM »
hello thanks for this script, but i immediately i did this it destroy everything i have to rest it back pls help me out i think am lost somewhere
Destroy everything how? Have a screenshot?
Jason Clemons
Former Lead Customizer/Support Specialist
Twitter | Facebook | Instagram

Offline ~Dragon~

  • Jr. Member
  • **
  • Posts: 301
  • Gender: Male
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #21 on: October 19, 2011, 05:18:47 AM »
Thank you so much tutorial posts
Please do not PM or email, Thank respond please post fast to SMF!

Offline stang7043

  • Semi-Newbie
  • *
  • Posts: 20
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #22 on: November 03, 2011, 01:52:27 PM »
How to modify to make this work in 1.1.14 or is there some ready TIP to add Facebook Like button in 1.1.4..

I am looking for the same ... Did anyone let you know how to modify this for 1.1.14 ?

Offline Sir Charles

  • Semi-Newbie
  • *
  • Posts: 31
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #23 on: December 10, 2011, 07:02:44 PM »
Is there a way of using this in Simpleportal to display on articles? It works great on my topics but I would like them on my portal articles too if possible.

Offline Jeet Chowdhury

  • Jr. Member
  • **
  • Posts: 239
  • Gender: Male
  • Running SMF 2.0.2
    • MuSKiL AShaN
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #24 on: January 10, 2012, 02:45:50 AM »
see this:

http://muskilashan.com/index.php?topic=838.0

horizontal scroll bar come in browser with this code....

how to remove this unnecessary scroll bar?
« Last Edit: January 10, 2012, 03:30:30 AM by Jeet Chowdhury »

Offline Jeet Chowdhury

  • Jr. Member
  • **
  • Posts: 239
  • Gender: Male
  • Running SMF 2.0.2
    • MuSKiL AShaN
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #25 on: January 10, 2012, 01:02:24 PM »
bump...

Offline Home 4 Answers

  • Newbie
  • *
  • Posts: 8
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #26 on: February 01, 2012, 01:49:19 AM »
For the FB like do I need to add the og tags?
If so any heads up on accomplishing this?

Thanks heaps!

Offline -[Reece]-

  • Newbie
  • *
  • Posts: 9
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #27 on: February 01, 2012, 07:14:11 AM »
Very nice, I'm now able to remove two mods!

Thanks a bunch.

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #28 on: February 04, 2012, 02:46:56 PM »
it works, thank you!

For adding gplus button beside twitter and facebook

Code: [Select]
<span class="floatright" style="margin: 6px;" id="gplus">
<g:plusone href="' . $scripturl . '?topic=' . $context['current_topic'] . '" size="medium"></g:plusone>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
</span>
« Last Edit: February 04, 2012, 03:23:13 PM by Farmacija »

Offline userquote

  • Newbie
  • *
  • Posts: 8
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #29 on: February 19, 2012, 10:46:17 PM »
Thank you. It worked beautifully at my website.  :P

Offline glennk

  • Sr. Member
  • ****
  • Posts: 899
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #30 on: April 13, 2012, 02:24:57 PM »
Hi guys, this is good. But I have a problem. Once I click like, it opens a box for me to comment ?? However the box can hardly be seen as it stays within the restraints of the blue bar, ie the blue bar does not expand to the size of the comments box.

Also Is there a way to make the icons bigger and have them somewhere more prominant, perhaps within the post just before the opening sentence ??

Offline BinkyM

  • Semi-Newbie
  • *
  • Posts: 49
  • Gender: Female
  • I've been running forums since 1987 (not a typo!).
    • @lilMMAsweetie on Twitter
    • Snarkish
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #31 on: April 24, 2012, 12:46:43 PM »
Quote
just add this code in your theme's Display.template.php

I hate sounding like a noob, but in this case, I'm an SMF noob. The theme I created doesn't have its own Display.template.php. Should it? If so, where should I grab it from?

Thanks for the tip,

Binky

TheListener

  • Guest
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #32 on: April 24, 2012, 12:51:25 PM »
Quote
just add this code in your theme's Display.template.php

I hate sounding like a noob, but in this case, I'm an SMF noob. The theme I created doesn't have its own Display.template.php. Should it? If so, where should I grab it from?

Thanks for the tip,

Binky

If the theme you use doesn't have its own display.template then try the default one.

Offline BinkyM

  • Semi-Newbie
  • *
  • Posts: 49
  • Gender: Female
  • I've been running forums since 1987 (not a typo!).
    • @lilMMAsweetie on Twitter
    • Snarkish
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #33 on: April 28, 2012, 02:46:37 PM »
Thanks, Fossil. Will do! I'm getting better at bumbling around at a rapid pace!

Binky

Offline psycho180

  • Newbie
  • *
  • Posts: 2
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #34 on: April 30, 2012, 04:24:12 AM »
Is there any mod avlble for this post???

i tried but didn't work check it out plz help me sir...

Offline psycho180

  • Newbie
  • *
  • Posts: 2
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #35 on: April 30, 2012, 05:02:57 AM »
hey thnks man i did... but facing little bit prbm...

adding screenshot help me out plz


Offline BinkyM

  • Semi-Newbie
  • *
  • Posts: 49
  • Gender: Female
  • I've been running forums since 1987 (not a typo!).
    • @lilMMAsweetie on Twitter
    • Snarkish
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #36 on: April 30, 2012, 03:18:00 PM »
Wow, JBlaze; it looks really nice in your screenshot, but all I get it the word "Tweet," and that's it. I'm still on my hunt for Facebook and Twitter buttons!

(Not that my users even *use* these things, but I'm trying to drag us all into the 21st century.) (I only just created a FB page a couple months ago, and it's a fake one. I needed it for some reason or another.) (I haven't anything mundane enough to tweet.)

Binky

Offline Andrew103

  • Newbie
  • *
  • Posts: 1
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #37 on: May 05, 2012, 08:41:40 PM »
Did you have a code for Google +1 ? thanks for code of twitter and facebook it really help to my website what I need is now Google +1 and other coding.




Pools Above Ground

TheListener

  • Guest
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #38 on: May 05, 2012, 08:48:15 PM »
Hi Andrew103

Welcome to smf.

Would THIS help?

Offline cyberhat

  • Semi-Newbie
  • *
  • Posts: 89
Re: [TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
« Reply #39 on: May 20, 2012, 09:23:10 AM »
thanks for the share