How can I add a facebook 'share' button
To set up face book share go to the 'header/footer' section and enter the following code in your interblog settings
<?php
global $urlToThisPage;
$blogPostPermaLink="$urlToThisPage?id=".$myEntry['POSTID'];
$postid=$myEntry['POSTID'];
$myTitle=$myEntry['TITLE'];
print "<a name='fb_share' type='button_count' share_url='$blogPostPermaLink' href='http://www.facebook.com/sharer.php?u=$blogPostPermaLink&t=$myTitle'>Share</a>";
?>
Set Interblog to 'insert after 0 posts and then ever 1 post' and check the evaluate PHP code button.
Then in the 'footer' section add the following code
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
Make sure both of the above are set to 'ignore formatting' (pink) by selecting them and hitting cmd-.
Now you should be good to go!
-
Admin
-
RapidBlog
-
FaqMaker
-
Lockdown
-
Sitemap
- What does "Don't allow publish if page defaults are still present"?
- Google says my sitemap appears to be HTML and it's not a supported format.
- Sitemap keeps putting the footer even though I turned it off
- Can I use multiple RapidWeaver files to make a single site and still get my sitemap.xml correct?
- Sitemap keeps a sitemap in the footer even though I turned it off!
- View all (1 more)
-
Pluskit
- Pluskit Examples
- How do I import pages into each other
- There are so many choices for lightbox in pluskit? Which lightbox effect should I use?
- No Really -- I need a step-by-step for importing pictures into blocks and using the lightbox feature?
- How do I change the fonts & colors of the caption in a lightbox?
- View all (13 more)
-
Notablemeals