Customizing SMF > Tips and Tricks

[TIP] Facebook Share Button

(1/12) > >>

Mick.:
Very simple to implement.

Open:
Themes/default/Display.template.php

Find:

--- Code: --- // Maybe they want to report this post to the moderator(s)?
--- End code ---

Add before:

--- Code: ---                      if ($message['id'] == $context['topic_first_message'])
                            echo '<br /><br /><a name="fb_share" type="box_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><br /><br />';
                            };
--- End code ---

DoctorMalboro:
Both versions?

Wow... i remember that if sentence for my first mod... :P

Mick.:

--- Quote from: DoctorMalboro on July 20, 2010, 10:04:15 PM ---Both versions?

Wow... i remember that if sentence for my first mod... :P

--- End quote ---

What both versions?  Nevermind.    Yeah, RC3

rakicko:
where to put share image?

Masterd:
You don't need any image.

Navigation

[0] Message Index

[#] Next page

Go to full version