Changing Blogger Mobile Template

Changing Blogger Mobile TemplateThe Blogger Mobile templates is something pretty cool, and blogger provides you with 27 mobile templates to choose from. You cannot completely customize the mobile template(as of now) but you can pick any of the available templates.

All of these templates come with Post Thumbnails, and a custom excerpt rendered using the data:post.thumbnailUrl and data:post.snippet variables. These templates also support the swipe navigation. You can swipe left and right to move across pages on your Touch screen mobile

Here is a preview of how this Blog looks on a Samsung Galaxy S2

bloggerplugins.org_on_sgs2

Lets see how we can change the blogger mobile template

1. Login to Blogger in Draft : http://draft.blogger.com

2. Go to the Template Section

image

3. Click on that button below the mobile version

image

3. From the next screen you will be able to enable the mobile template, and select the template which you like. Use the dropdown and the slider to pick the perfect template

image

4. When you are done selecting the template, Click the Save button.

You might have noticed a QR code on the Template Selection Screen. Scanning this from your mobile will take you directly to the mobile version of your blog.

If you visit your blog from your mobile, you should be automatically taken to the mobile version of your blog.


Source: http://www.bloggerplugins.org/2011/08/changing-blogger-mobile-template.html

New UI on Your Blogger Dashboard

New UI on Your DashboardThe Blogger’s new UI has now migrated from Blogger Daft to the regular Dashboard.If you are a regular reader here, then you must have already seen screenshot of the new UI. Blogger has now made some improvements to  the new UI, and has plugged it into the regular dashboard.The new UI also includes an option to Edit your Template Code.

When you login to your Blogger Dashboard, you should see a notification asking you to check out the New UI.

image

 

If you dismissed this notification, don’t worry, you can still switch to the new UI.In your Old Dashboard, you will see a link asking you to try the new UI.

image

If you are not able to figure that out, just follow this link and you will be taken to the new UI.

Here are a few Screen Shots: (Click the image for a larger version)

Blogger Dashboard

Blogger Reading List

Blog Overview

Blog Posts

Blog Pages

Blog Comments

Blog Stats

Blog Earnings

Blog Layout

Blog Template

Edit Template HTML

Blog Settings

If you don’t like the new Interface, you can switch back to the old one.

image


Source: http://www.bloggerplugins.org/2011/09/new-ui-on-your-dashboard.html

Recent Posts Widget with Thumbnails

At least some of you would be familiar with My "Recent Posts with Thumbnails" Gadget for Blogger. I had got so many complaints that the Gadget fails to load or has some issues. So I decided to make a Widget version of the same.

Why the other Gadget fails at times?

The other gadget is made using the Gadget API. The API renders the gadget as an iFrame with all the parameters appended to the iFrame URL. When the iFrame url becomes too big, browsers have issues rendering the gadget. This primary reason behind this is that the API appends so many style parameters to the iFrame URL thereby making it pretty lengthy.The current page url is also a parameter.That is why some people complain that it is working on the home page, whereas it doesn't work on some of the post pages. The reason is that your home page url is shorter in length than your post page url. So it is almost impossible to make the gadget error free.

So What now?

This new Widget doesn’t rely on the Gadget API, and is not loaded as an iFrame. This is a plain JavaScript widget, and will work across all browsers.

What’s special about this new Widget?

If you are good at CSS, you can make the widget exactly as you want. There is no limit in customizing this Widget. This doesn’t mean that it is useful only to those who are familiar with CSS. The Widget by default will inherit your Blog’s Styling. So it should look pretty neat with the default Styling

Options in the Widget Installer

  1. Blog URL: This should be the URL of a blogger Blog. If you are installing the Widget on the same blog then you can leave this field blank . This field is useful for those who have multiple blogs..
  2. Number of Posts – The number of posts displayed in the Widget
  3. Maximum title Length – This option can be used to chop off really long Post Titles. If a post title is longer than this length, the widget will chop off the rest of the title
  4. Show Thumbnail – It’s pretty much obvious from the name
  5. Show Default Thumbnail – If this option is selected, and your post doesn’t have an image, then a default image will be displayed.
  6. Thumbnail Dimension – The gadget can generate square thumbnails of any size. Use this option to set the dimension of the thumbnail.
  7. Float Thumbnail to – This option can be used to align the image thumbnail to the left or to the right
  8. Thumbnail Margin – You can set a 5px margin to the image, so that the thumbnail stays apart from the post summary. You can override the margin by selecting No.(You can then manually style it using CSS)
  9. Show summary
  10. Summary size – If summary is more than this length, then the widget will chop off the rest
  11. Show post date
  12. Show Comment Number
  13. Show Read more Link
  14. Read More Text – This is the Text Shown on the Read More Link
  15. Use Full Feed – By default the Widget will use the Blogger Summary feed which is smaller in size. If you select the Full Feed option, it will use the Full Feed which is bigger in size, and hence the Widget would get slower. The advantage is that, you would get thumbnails of YouTube videos that you have posted.
  16. Sorting – Helps you in displaying the recently published posts or recently updated posts.

Now that you are clear with the options, use the below button to add the Widget to your Blog.

Add Recent Posts Widget

Advanced Options:

1. Default Thumbnail

If the Widget is unable to find an image in the Post and if Options 4 and 5 are checked, then the Gadget will use the following image by default

If you want to change this default thumbnail, then you will have to first upload the Thumbnail somewhere. The best place to upload is blogger. So create a new post(or edit an existing one) and add the image to the post. Now Switch to the Edit HTML view of the Post Editor. There you will find a URL which contains “/s1600/” in it. Copy that URL. Change /s1600/ to /s72-c/. So finally you will get some URL like

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7FMd9dkP8OQDazVTyjwp2_J3mobeb1bGOFA0QgnX2lHQ-E_liEHPRhTdf9pPEmdtI_GFa3xIsgmZaJ5TN3k0jaAzJsidonuJ0IkmpTU6vQLfZBnUOAWipI8upnabslbryIPLu_5HGIHw/s72-c/default.png

This is your default Thumbnail's URL. Now it’s time to tell the script to make use of this Image. For that Edit the HTML/JavaScript Widget(Recent Posts) and add the following variable:

var defaultImage=”THUMBNAIL_URL_WHICH_HAS_/s72-c/_IN_IT”;

(Off course you will have to edit the above line)

If you are not sure where to add the variable, then add it just before

var numberOfPosts

Save the Gadget and you are done.

2. CSS Styling:

If you are using CSS Styling, make sure that the Thumbnail Margin is set to None. You can also set the Thumbnail Float to None. This will prevent the Widget JavaScript from adding any Styles to the Post List.

You can add your CSS at Template Designer > Advanced > Add CSS

Some Sample CSS snippets are there in the comments.

3. Tracking the Widget Usage

I have appended a utm_src parameter to the recent post URLs.This will help you in tracking the widget usage from your Google Analytics account(Traffic Sources > Campaigns).

4. Remove the Powered By Link

If you can’t stand the powered by Link at the bottom of the widget, then you can hide it. To do that Add this CSS snippet :( :(

.bp_footer{display:none;}

If you don’t know how to add CSS read the CSS Styling (2) part in these Advanced Options.


Hmmm at the moment, I’m a little lazy to create a Demo Blog. You can expect that sometime soon.


If you have any doubts or questions or suggestions, feel free to comment here and I will try my best to reply to each of your comments.


I know that many bloggers are having issues in using the old Gadget. So kindly help others by sharing this new post :)


Source: http://www.bloggerplugins.org/2011/09/recent-posts-thumbnails-blogger-widget.html

Grid Layout For the Popular Posts Widget

Grid Layout For Popular Posts BloggerA few days back, I published the JavaScript version  of the Recent Posts widget, and I loved the Grid Layout of the Widget. One of the most popular Widgets used by Bloggers is Blogger’s Official Popular Post Widget. So I decided to edit the gadget, and give it the Grid Style.

How does the Gadget Look like after tweaking it?



image image

So Here are the Steps to make your Popular Posts Widget act like an Image Grid

1. Go to the Layout Page and add the Popular Posts Gadget, if you haven’t already added it.

image

2. Edit the Gadget Settings so that it displays the Thumbnails and not the Snippet

image

3. Now Go to Template/Design > Edit HTML . DO NOT Click on the Expand Widget Templates checkbox. Leave it unchecked, and look for  PopularPosts1 (Do a Ctrl +F to find it in your template) and you will get some line like this

<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>

4. Change This line to

<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
<b:includable id='main'>
<b:if cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content popular-posts'>
<ul>
<b:loop values='data:posts' var='post'>
<li>
<b:if cond='data:showThumbnails == "false"'>
<b:if cond='data:showSnippets == "false"'>
<!-- (1) No snippet/thumbnail -->
<a expr:href='data:post.href'><data:post.title/></a>
<b:else/>
<!-- (2) Show only snippets -->
<div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
<div class='item-snippet'><data:post.snippet/></div>
</b:if>
<b:else/>
<b:if cond='data:showSnippets == "false"'>
<!-- (3) Show only thumbnails -->
<div class='item-thumbnail-only'>

<div class='item-thumbnail'>
<a expr:href='data:post.href' expr:title='data:post.title'>
<b:if cond='data:post.thumbnail'>
<img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
<b:else/>
<img alt='' border='0' expr:height='data:thumbnailSize' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7FMd9dkP8OQDazVTyjwp2_J3mobeb1bGOFA0QgnX2lHQ-E_liEHPRhTdf9pPEmdtI_GFa3xIsgmZaJ5TN3k0jaAzJsidonuJ0IkmpTU6vQLfZBnUOAWipI8upnabslbryIPLu_5HGIHw/s72-c/default.png' expr:width='data:thumbnailSize'/>
</b:if>
</a>
</div>
</div>
<b:else/>
<!-- (4) Show snippets and thumbnails -->
<div class='item-content'>
<b:if cond='data:post.thumbnail'>
<div class='item-thumbnail'>
<a expr:href='data:post.href' target='_blank'>
<img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
</a>
</div>
</b:if>
<div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
<div class='item-snippet'><data:post.snippet/></div>
</div>
<div style='clear: both;'/>
</b:if>
</b:if>
</li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

5. Save your Template

6. Now Go to Template Designer > Advanced > Add CSS and paste the following CSS snippet there, and apply to your Blog

.popular-posts .item-thumbnail{float:left;}
.popular-posts ul{padding-left:0px;}
.popular-posts ul li {list-style-image: none;list-style-type: none;display:inline;}

The image URL present in the Widget Code is the Default Thumbnail which will be displayed if the post doesn’t have a thumbnail associated with it. You can modify it to get a custom default thumbnail. You can spice up the CSS to make the grid look more eye catching. I would leave that to you :)

Reverting Back to the old one

If you are not satisfied by the way it looks, then revert it back. Here are the steps:

  1. Just Remove the Popular Posts Widget from the Layout Page.If you need the original version, then add it back again

  2. Remove the CSS which you added to Template Designer > Advanced > Add CSS

  3. That’s it.


I think that this Hack would work out well on Recipe and Photography Blogs. Try it out, and let me know if it is useful :)


Source: http://www.bloggerplugins.org/2011/09/grid-layout-for-popular-posts-widget.html

Post Thumbnails for Blogger

Post Thumbnails for BloggerI had got quite some number of questions regarding how I display post thumbnails here on my blog. So I decided to write a tutorial about the different methods that you can use to display post thumbnails. Post Thumbnails will look good on your blog if you are using the Blogger Jump Break Feature to efficiently control the post excerpt that gets displayed on non-post pages.  So here are the methods:

1. Using the data:post.thumbnailUrl Template Tag

This tag will give you a 72x72px thumbnail of your post image.So you can use this tag in your template to render a small thumbnail image.This is the same image which will be displayed on the Mobile version of your Blog.This tag also renders YouTube Thumbnails(small version) and Flickr Thumbnails. To render the thumbnail, you can use the following code snippet

<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:post.thumbnailUrl'>
<img class="postthumb" expr:src ="data:post.thumbnailUrl" expr:alt="data:post.title"/>
</b:if>
</b:if>

This code should be added just before <data:post.body/> in your template(Expand your Widget templates, and use the keyboard shortcut Ctrl +F to find)

Remove the Green lines if you want the thumbnails on Post Pages as well

Now to spice up the Thumbnail image, you can add the Following CSS.

CSS can be added at Template Designer > Advanced  > Add CSS

.postthumb {
padding: 5px;
float:left;
border: 1px solid #eeeeee;
-moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
-webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
}

2. A bigger thumbnail image using data:post.thumbnailUrl tag

As I had mentioned above, you get a 72px image using this Blogger Template tag.If you need something bigger than 72px, then you will have to add a small flavor of JavaScript to your Template. This is the code that I’m talking about, and it should be added above <data:post.body/> in your template.(Expand your Widget templates, and use the keyboard shortcut Ctrl +F to find)

<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:post.isFirstPost'>
<script type="text/javascript">
//<![CDATA[
function bp_thumbnail_resize(image_url,post_title)
{
var image_size=150;
var show_default_thumbnail=true;
var default_thumbnail="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7FMd9dkP8OQDazVTyjwp2_J3mobeb1bGOFA0QgnX2lHQ-E_liEHPRhTdf9pPEmdtI_GFa3xIsgmZaJ5TN3k0jaAzJsidonuJ0IkmpTU6vQLfZBnUOAWipI8upnabslbryIPLu_5HGIHw/s72-c/default.png";
if(show_default_thumbnail == true && image_url == "") image_url= default_thumbnail;
image_tag='<img src="'+image_url.replace('/s72-c/','/s'+image_size+'-c/')+'" class="postthumb" alt="'+post_title+'"/>';
if(image_url!="") return image_tag; else return "";
}
//]]>
</script>
</b:if>
<script type="text/javascript">
document.write(bp_thumbnail_resize("<data:post.thumbnailUrl/>","<data:post.title/>"));
</script>
</b:if>

The script above will display a image of size 150 pixels(you can alter that by modifying the code). It also uses a default thumbnail if the post has no image in it(you can turn it off by setting show_default_thumbnail to false. You can also alter the default thumbnail if you want). If you want the thumbnail to appear on the post page as well, then remove the 2 green lines in the code.

You can use the same CSS(as in method 1) to decorate the thumbnail.

Note: This method won’t give you bigger YouTube thumbnails. The next available size of the YouTube Thumbnail is 480x360px, and I don’t want to load such a huge image as a thumbnail. so the script doesn’t handle that.Similarly this Script doesn’t handle Flickr Thumbnails. So you will be getting the default versions of these thumbnails.

The next 2 methods are for advanced users

3. I know what to do.

Just add an image to the beginning of the post, and add the class name postthumb to it.

So your post should be in the following format:

<img src="the post thumbnail url" class="postthumb" align="left" title="Post name"/> The Post excerpt <!—more –> The Rest of the post

You can use the same CSS mentioned in the first method.It will be a better idea to specify the width and height parameters in the CSS.This image will appear in your Feed as well.

Now if you want to hide this thumbnail on the post pages, then add the following snippet above </head> in your template

<b:if cond='data:blog.pageType != "index"'> 
<style type="text/css">
.postthumb{display:none;}
</style>
</b:if>

This is the method that I use here on my blog

4. Using Enclosure Links and making them work similar to Word Press Custom Fields

You can hack up the blogger enclosure links and make them work like Word Press Custom Fields

The code to render the Enclosure image(post thumbnail):

<b:if cond='data:blog.pageType == "index"'>
<b:loop index='i' values='data:post.enclosures' var='enclosure'>
<b:if cond='data:i == "0"'>
<b:if cond='data:enclosure.mimeType == "image/jpeg"'>
<img expr:src="data:enclosure.url" class="postthumb" expr:alt="data:post.title"/>
<b:else/>
<b:if cond='data:enclosure.mimeType == "image/png"'>
<img expr:src="data:enclosure.url" class="postthumb" expr:alt="data:post.title"/>
<b:else/>
<b:if cond='data:enclosure.mimeType == "image/gif"'>
<img expr:src="data:enclosure.url" class="postthumb" expr:alt="data:post.title"/>
<b:else/>
<b:if cond='data:enclosure.mimeType == "image/bmp"'>
<img expr:src="data:enclosure.url" class="postthumb" expr:alt="data:post.title"/>
</b:if>
</b:if>
</b:if>
</b:if>
</b:if>
</b:loop>
</b:if>

This code can be added above <data:post.body/> and you can use the same CSS as in the other methods . Remove the Green lines if you want the thumbnails on Post Pages as well. .It would be a good idea to specify the width and height in the CSS.When you add an Enclosure link, Blogger post editor will automatically set the mime Type. This mime type is used in the above code. So don’t give any wrong values for mime Type. Always provide the valid mime type. The code uses the First enclosure link only. So your post thumbnail should be added as the first enclosure link.

image

The Enclosures added to the post will appear in the Blog Feed.

5. The Old way of doing it.

Using the automatic post summary JavaScript is an old outdated method. If you are using it, make sure that you use jump breaks as well


Source: http://www.bloggerplugins.org/2011/09/post-thumbnails-for-blogger.html

Featured Posts Widget for Blogger with Thumbnails

imageThis Widget Displays posts from a particular Label on your  blog’s Sidebar. The display can be customized just like the Recent and Random Posts Widgets. The Widget includes resizable Post Thumbnails.

I have made two different versions of this Widget:

Demo:

Demos

1. Featured Posts Gadget Using the Blogger Gadget API

This Gadget is much easier to configure. The screenshot shows the various options available in the Gadget

image

I will explain a few of the Options

Name of the Featured Label – This is the name of the label from which the Gadget should pull posts from. This field is case sensitive, and if you don’t fill this properly, the Gadget wont work.

Maximum Length of Post Title – If the post title is more than this length(in characters), then the rest of it will be chopped off.If you don’t want to show the post title, set this to 0

Summary Length – The Gadget can display a excerpt of the Post. If the excerpt is longer than the summary length, then the rest will be chopped off.

Feed – Summary Feeds will be faster. You can change to Full Feed if you need YouTube Thumbnails, but it would be slower.

I need a Grid Layout. What should I do?

Use these Settings:

  1. Maximum Length of the Post Title : 0

  2. Snippet Style : Thumbnail Only

  3. Post Meta Style : None

  4. Extra Styling : Float Image to Left

  5. Border Color : No Border


The other options can be set according to your needs.Use this button to add the Featured Posts Gadget to Blogger

2. HTML/JavaScript Widget for Featured Posts

This is the HTML/JavaScript Version of the above Gadget. This one has greater customizability and will properly blend with your Blog styles.

 

This has a Few Extra Settings:

  1. Blog URL: This should be the URL of a blogger Blog. If you are installing the Widget on the same blog then you can leave this field blank . This field is useful for those who have multiple blogs..

  2. Show Default Thumbnail – If this option is selected, and your post doesn’t have an image, then a default image will be displayed.

  3. Thumbnail Margin – You can set a 5px margin to the image, so that the thumbnail stays apart from the post summary. You can override the margin by selecting No.(You can then manually style it using CSS)

  4. Sorting – Helps you in displaying the recently published posts or recently updated posts from the featured Label.

  5. Grid Layout – This button will automatically adjust the settings to give you a grid like layout.


Other Fields are similar to those in Method 1, or are self explanatory..Use this button to add the Featured Posts Widget:

Add Recent Posts Widget

 
Advanced Options for the HTML/JavaScript Featured Widget:

1. Default Thumbnail

If the Widget is unable to find an image in the Post and if Options 4 and 5 are checked, then the Gadget will use the following image by default

If you want to change this default thumbnail, then you will have to first upload the Thumbnail somewhere. The best place to upload is blogger. So create a new post(or edit an existing one) and add the image to the post. Now Switch to the Edit HTML view of the Post Editor. There you will find a URL which contains “/s1600/” in it. Copy that URL. Change /s1600/ to /s72-c/. So finally you will get some URL like

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7FMd9dkP8OQDazVTyjwp2_J3mobeb1bGOFA0QgnX2lHQ-E_liEHPRhTdf9pPEmdtI_GFa3xIsgmZaJ5TN3k0jaAzJsidonuJ0IkmpTU6vQLfZBnUOAWipI8upnabslbryIPLu_5HGIHw/s72-c/default.png

This is your default Thumbnail's URL. Now it’s time to tell the script to make use of this Image. For that Edit the HTML/JavaScript Widget(Recent Posts) and add the following variable:

var feat_defaultImage=”THUMBNAIL_URL_WHICH_HAS_/s72-c/_IN_IT”;

(Off course you will have to edit the above line)

If you are not sure where to add the variable, then add it just before

var feat_numberOfPosts

Save the Gadget and you are done.

2. CSS Styling:

If you are using CSS Styling, make sure that the Thumbnail Margin is set to None. You can also set the Thumbnail Float to None. This will prevent the Widget JavaScript from adding any Styles to the Post List.

You can add your CSS at Template Designer > Advanced > Add CSS

Some Sample CSS snippets are there in the comments.

3. Tracking the Widget Usage

I have appended a utm_src parameter to the recent post URLs.This will help you in tracking the widget usage from your Google Analytics account(Traffic Sources > Campaigns).

4. Remove the Powered By Link

If you can’t stand the powered by Link at the bottom of the widget, then you can hide it. To do that Add this CSS snippet :( :(

.bp_footer{display:none;}

If you don’t know how to add CSS read the CSS Styling (2) part in these Advanced Options.

If you like this Gadget, please share it with other Bloggers :)


Source: http://www.bloggerplugins.org/2011/09/featured-posts-widget-for-blogger.html

Facebook Comments For Blogger

Facebook Comments For BloggerFacebook Comments can bring better interactivity into your Blog. These comments will work like a Facebook Wall.This tutorial will help you to easily setup Facebook Commenting on your Blogger Blog.

Demo

Features:

  1. Threaded Comments

  2. Comment Permalinks

  3. Likability

  4. Can Subscribe or unsubscribe to comments

  5. Can Moderate Comments at one place

Drawbacks:

1. Won’t Sync with your Existing Blogger Comments

Adding Facebook Comments to Blogger:

1. Hide Existing Comments - The best way to start off is by hiding the comments made from the Blogger System. To do that, go to Settings > Posts and Comments and set the Show Comments option to Hide and Save the Settings

image

2. Create a Facebook App To display Facebook Comments on your Blog you should have a Facebook Application. Don’t get worried by the name. You can do that with a few clicks.

Go to this URL https://developers.facebook.com/apps and click on the Create New App button

image

Enter Some name for your App Agree to the Terms and click on the continue button

image

If it issues a Captcha verification, type the Captcha and click on the Submit Button

image

Now you will be taken to a Settings Screen

image

In the App Domain Field give blogspot.com (If you are using a custom domain give that) Give your Blog Address in the Site URL field under “Website” and Save The Changes. Copy the Application ID from the screen

3. Add Application and Moderator Meta Tags

Modify the below code with the application id copied in step 2.

<meta content='YOUR_FACEBOOK_APPLICATION_ID'   property='fb:app_id'/>

Go to Template/Design > Edit HTML and paste the above code just below

<head>

and Save the Template

image

You should create the Facebook Application and the above fb:app_id meta tag should be added to your Blog. Otherwise you won’t be able to manage/moderate your Comments from a single Place(you will have to go to posts one my one and moderate and that too is possible only if you have added the fb:admins open graph meta tag).

4. Add FB Comments - Now you have to add the Facebook Comment Form to your Blog Template. To do that Go to Template/Design > Edit HTML and click on the “Expand Widget Templates” checkbox

Find the following code in your template(Use the keyboard shortcut Ctrl + F), and immediately below that paste the following code:

<div class='post-footer-line post-footer-line-3'>

If you can’t find this, then find

<p class='post-footer-line post-footer-line-3'>

If you cant find that as well, then find

<data:post.body/>

Paste the following code just below the line that you just found out

<b:if cond='data:blog.pageType == "item"'>
<div id="fb-root"></div>
<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>

<fb:comments width='450' colorscheme='light' expr:title='data:post.title' expr:href='data:post.canonicalUrl' expr:xid='data:post.id'/>
</b:if>

If you want to alter the width, then you can change 450 to the width that you want. If you want the dark version of Facebook comments, then change light to dark in the above code.

5.FB Namespace Declaration - Next you have to add the fb namespace to your template tag.Your template should have the specification for the fb tag that you have used. The following XML namespace declaration will take care of that. To declare the namespace, find

<html

and change it to

<html xmlns:fb="https://www.facebook.com/2008/fbml"

(there is a space after the 2008/fbml” )The following screenshot will help you out.

image Save the Template. This namespace declaration is necessary for all FBML widgets using the fb tag. So if you have already added the namespace declaration while adding some other FB plugin, then you can skip this.

6. Hey! You are done.. Now you should see the Comment box on your Blog :)

If you can’t see it, then it would probably be because you have added some Non-FBML Facebook Plugin. If that is the case, then remove it and add the FBML versions of those widgets. All Facebook Plugins Provided here use the FBML markup(at the time of writing).

Managing Your Comments

When you are logged in to your Facebook account, the Facebook comment plugin will detect that you are the admin(it will detect you if you have added the fb:app_id or fb:admins meta tags). You will be able to manage the Settings and moderate the comments from there:

image

Check the “Other Login Providers” (Yahoo AOL and Hotmail)option and Save the settings if you want non-Facebook users to leave comments.

You can moderate your comments from this URL

http://developers.facebook.com/tools/comments

Displaying Facebook Comment Count

Use the following code in the post loop to get a Comment Count Display with a link to the comment form. This code should be added within the post loop. For example, this can be added below <data:post.body/>

<b:if cond='data:post.isFirstPost'>   
<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>

</b:if>
<a expr:href='data:post.url + "#fb-root"'><fb:comments-count expr:href='data:post.canonicalUrl'></fb:comments-count> comments</a>

If you get into trouble, then feel free to comment on :)


Source: http://www.bloggerplugins.org/2011/09/facebook-comments-for-blogger.html
 
Play : Agame | Y8 Games | Y3 Games
Copyright © 2011. Blogger Tips And Tricks 2012 - All Rights Reserved

Proudly powered by Blogger