Showing posts with label TipsAnd Tricks For Bloggers. Show all posts
Showing posts with label TipsAnd Tricks For Bloggers. Show all posts

13 June 2008

How to add bookmarker widgets in Blogger


From here

This tutorial will explain simple way to add cool social bookmarker widgets to Blogger pages. In this case we'll use simple Blogger Plugin from BlogSocializer. This plugin allows us to add nine popular bookmarkers button on every pages of our blog. Including Digg, Technorati, Delicious, Yahoo! MyWeb, Google Fusion, Blink, Furl, Simpy, and Stumble upon. Here we go..

1. Go to your Blogger Dashboard. Than click manage layout of your desired blog.

Layout menu in blogger dashboard

2. You'll be in Template page at Page Element Tab. Now click [Add a Page Element]. Just choose where you'll place the widget is. In this case I set it at bottom of every post, so I'll place it below Posting Blog coloumn (See picture).

Add a page element

3. A popup window will appear. There you can choose what kind of page element you want to add. Now select [HTML/JavaScript] element. Than click [Add to Blog] button. A 'Configure HTML/JavaScript' page will appear, leave it first.

Choose page element

4. Go to BlogSocializer and get the code there. Click and copy the given code.

copy BlogSocializer code

5. Go to popup window again. Fill in title of element first than paste the code at 'Content' area (Right click and paste). Lastly, just click [Save Changes] button.

Paste the code

6. Now open your blog and test the widget. Below is example of working BlogSocializer in my blog. You can try how easy this widget in use by submitting this page to Digg, Technorati, and Delicious.

Demo screenshoot

Conclusion.
BlogSocializer is the easiest and simple way to add bookmarker widget in Blogger based page. This Blogger plugin is free to use. I know there are other bookmarker plugins such AddThis.com and Sharethis.com but I still suggest you to use BlogSocializer. Why? because with BlogSocializer we can display the true buttons of originally bookmarker sites. Not other flip button. So benefit of displaying those buttons is to make our blog looked like more cool. Just as Wordpress bookmarker plugin.

Zemanta Pixie

How to Highlight Author Comments


from here

Highlighting author comments using a different background color, border or different style of text helps readers understand when you have personally posted a response.

So far, "How to Highlight Author Comments" has been the most requested article in my Skribit widget, so in this post I'll explain how you can change comments which you have posted yourself to distinguish these from other comments on your posts.


The main obstacle I've faced in writing up this article so far is that different Blogger templates code the comments section differently.

While the easiest method for me to write would have been to say "Find this code and replace it with this", such a method would only be usable by bloggers whose template matches the code.

Instead, my explanation may be a little more complicated than usual, though I hope this explanation will ensure anyone using a Blogger template will understand how to implement the highlighted author comments hack!

Backup your Blogger Template!

Before even attempting to customize your Blogger template, the first thing you should do is back up your template. This ensures you can easily restore your original template if something goes wrong. Also, as most of us cannot see comments unless we are viewing a post page, it would be impossible to see if code changes have adversely affected the comments section.

To make a backup of your Blogger template, simply go to Layout>Edit HTML in your Blogger dashboard, and click on the "Download Full Template" link. This will save your existing template as an XML file which you could use to restore your blog, just in case :)

Finding the Comments Block in your Blogger Template

The first thing we need to do in order to implement this hack is to locate the "comments block" within your Blogger template.

To find the comments section, you will need to tick the "expand widget templates" box as this code is contained within your main "Blog Posts" widget.

As I've already pointed out, the section of code used to display comments varies in different templates, so in order to find this section, you may need to search for some specific tags rather than complete sections of code.

To give you an idea of what you are searching for, here is the complete comments-block code from the Minima template:

<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='data:comment.anchorName'>
<a expr:name='data:comment.anchorName'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
<data:commentPostedByMsg/>
</dt>
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='data:comment.url' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>

If you are using Minima (or a similar template) you should be able to locate this section of code easily. However, some templates use <ul> and <li> instead of <dl> and <dd> tags, in which case the code you are looking for may look more like the section on this page instead, or could even be wrapped in simple

tags.

If you are having trouble locating the comments section in your blog's HTML code, do a CTRL+F (or CMD+F for Mac users) search within your template code for the following template tags:

* <b:loop values='data:post.comments' var='comment'>
* <data:comment.author/>
* <data:comment.body/>

The comments section of your blog's HTML code should contain all three of these template tags. Simply locate these tags and the surrounding code in your template, then work out where this section begins and ends using your discretion.

Generally speaking, this section will usually begin with

or
    or
    and end with a matching closing tag.Changing the comments code to add author highlighting

    Once you have located your comments section in your blog's HTML code, you will need to highlight this entire section of code and replace it with the following section of code instead:



    <ul class='commentlist' style='margin: 0; padding: 0;'>
    <b:loop values='data:post.comments' var='comment'>
    <b:if cond='data:comment.author == data:post.author'>

    <li class='author-comments' style='margin: 0 0 10px 0;'>
    <b:if cond='data:post.dateHeader'>
    <div class='commentcount'/>
    </b:if>
    <cite>
    <b:if cond='data:comment.authorUrl'>
    <a expr:href='data:comment.authorUrl'><data:comment.author/></a>
    <b:else/>
    <data:comment.author/>
    </b:if>
    </cite>
    <br/>
    <div style='clear: both;'/>
    <b:include data='comment' name='commentDeleteIcon'/>
    <p><data:comment.body/></p>
    <div class='commentlink-date'><a class='commentlink' expr:href='"#comment-" + data:comment.id' title='comment permalink'>
    <data:comment.timestamp/>
    </a></div>

    <div class='clear'/>

    </li>


    <b:else/>

    <li class='general-comments' style='margin: 0 0 10px 0;'>
    <b:if cond='data:post.dateHeader'>
    <div class='commentcount'/>
    </b:if>
    <cite>
    <b:if cond='data:comment.authorUrl'>
    <a expr:href='data:comment.authorUrl'><data:comment.author/></a>
    <b:else/>
    <data:comment.author/>
    </b:if>
    </cite>
    <br/>
    <div style='clear: both;'/>
    <b:include data='comment' name='commentDeleteIcon'/>
    <p><data:comment.body/></p>
    <div class='commentlink-date'><a class='commentlink' expr:href='"#comment-" + data:comment.id' title='comment permalink'>

    <data:comment.timestamp/>
    </a></div>
    <div class='clear'/>
    </li>

    </b:if>
    </b:loop>
    </ul>

    The simplest way to change your comment code is to follow these steps:

    1. Copy the code above to your clipboard
    2. Highlight the entire section of your comment code in your Blogger template
    3. Paste the code from your clipboard in place of the existing code by keying CTRL+V (or CMD+V).

    One quick method to check if you have made code errors is to preview your template. If you have accidentally omitted some code, you will receive an error message. In this case, you should press the "clear edits" button and begin again.

    If you don't get an error message, you can then proceed to save your template.

    Adding style for author comments

    At this stage, your own comments will still appear in the same style as other comments. To highlight author comments, we need to add some style code to your blog template.

    This step is much easier than locating and changing the comment section. Simply locate the closing tag in your Blogger template, and immedietly before this, paste the following section of code:

    .author-comments {
    background: #cccccc;
    border: 1px solid #333333;
    padding: 5px;
    }

    If you prefer, you can change the hex colors (#cccccc and #333333) to match the color scheme of your own template (discover the color codes for your preferred schemes using the web color calculator).

    Then save your template.

    Now when you make a comment on your blog while signed in to your Blogger account, your comments will have a different border and background color to comments posted by your readers.

Adding a RSS subscribtion message under posts


from here

Labels:


A friend of mine wanted to know how to add RSS subscription messages under the posts like mine , i saw this messages on BlogOhBlog.com and i wanted to do the same , here how to do it.

If you want a rss subscription message same as mine, go to edit html , expand your widgets and , copy and paste the codes below after this line

<p><data:post.body/></p>



<br/>
<br/>
<div style='padding:5px; border:1px solid #999999; background-color:#efc954; margin-top:1px;'><img align='left' src='http://sdf789zzxx.googlepages.com/rss_tekil.png'/>If
you enjoyed this post,<a href='YOUR-FEED-URL-GOES-HERE'><b>
make sure you subscribe to my RSS feed! </b></a
></div>


Tips
  1. You had better host this image on your googlepages,photobucket or imageshack account to prevent bandwith from exceeding.
  2. You can change border color and background color also the message and image align , thats why i coloured changable lines.
  3. Before saving template , preview it , if you like it then save it . This trick will not cause any problem in your blogger template.
  4. This can be used in blogger classic templates and blogger xml templates.
  5. Do not hesisate to ask question :)
Zemanta Pixie