This Is A Sample Of Sticky Post

The Problem is: to do this trick, we must use HTML code to make up the text... But don't worry, if you are not capable with HTML Codes, there are simple and fast way to make your sticky post without learn it. Use your "New Post" to make a sample of your sticky post, set the display as close as your real post, use the Preview to check your sticky post display then copy-paste into your content collumn text add gadget.

Learn how to make this sticky post in

How To Make A Recent Comments II (JavaScript)

>> Tuesday, March 9, 2010

In previously post we have already discuss how to make a recent comments with Feed Widget Because using the URL Feed facilities, the possibility problem that will be arrise is when the server of URL Feed that we used is going "Down". Although this was very rare.

In this article we will discuss how to make a recent comments with JavaScript.

Actually there are several reason why these method are usually avoided by the blog/site owner to use it.
The negative point's of using JavaScript, Beside can make a web page loading become slow, nearly most of the Recent Comments Tutorial using JavaScript, upload their scripts onto their external sites and provide you a code for insertion into your template, this makes the site/blog owner being worried about the possibility of inserted code that could endanger their site/blog or malicious script.

Usually, inside the code that they provide willl have the script that look like this :

<script src="http//">
From the blog visitors, when the page loads, their browser will visited that external site to read and run the script of .js file. That is where the problems will come "if" the .js file contained with malicious script.
Because of this situation, many users decided to configured their browser to disable the script, so that the script will not be able to see/read, and this means that your visitor couldn't be able to view your recent comments.
So.. please be carefulll if you have an external JavaScript file link make sure that there is no malicious script inside, and regularly check the script from the initial script change. More better if you have your own Script on your own server.

To avoid the problem above, in this article, we are not going to upload the script to our site and makes you link to it. We'll let you have the full JavaScript code that we have used so that you know what goes into it. 

Go to your Dashboard >> Layout >> Page Elements >> and Add a Gadget >> Choose and click HTML/JavaScript gadget.
Named your new gadget, write in title column ex: New Blogger Tips Recent Comments.
Copy  the code below and Paste into the Content column.
<ul><script style="text/javascript">
function showrecentcomments(json) {
for (var i = 0; i < 5; i  ) {
var entry = json.feed.entry[i];
var ctlink;

if (i == json.feed.entry.length) break;
for (var k = 0; k <; k  ) {
if ([k].rel == 'alternate') {
ctlink =[k].href;
ctlink = ctlink.replace("#", "#comment-");
var ptlink = ctlink.split("#");
ptlink = ptlink[0];
var txtlink = ptlink.split("/");
txtlink = txtlink[5];
txtlink = txtlink.split(".html");
txtlink = txtlink[0];
var pttitle = txtlink.replace(/-/g," ");
pttitle =;
if ("content" in entry) {
var comment = entry.content.$t;}
if ("summary" in entry) {
var comment = entry.summary.$t;}
else var comment = "";
var re = /<\S[^>]*>/g;
comment = comment.replace(re, "");

document.write('<a href="'   ctlink   '">'[0].name.$t   '</a>');
document.write(' on '   pttitle);
if (comment.length < 100) {
comment = comment.substring(0, 100);
var quoteEnd = comment.lastIndexOf(" ");
comment = comment.substring(0, quoteEnd);
document.write(comment   '...<a href="'   ctlink   '">(more)</a>');
document.write('<div style="font-size:75%;text-align:center"><a href="">Learn How To Make This Widgets</a></div>');
<script src="">
<noscript>You need to enable JavaScript to read this.</noscript>
You can set your "recent comments" display, by adjust these value..

The 5 value is the number of the last comment that will appear in your recent comments gadget.
The 100 value is the number of lenght characters comment in your recent comments gadget.
Don't forget to change with your URL Site / Blog.

After finished configuring your HTML/JavaScript (setting the value and replace the URL) click save, and view your blog. You should have a Recent Comments widget showing the latest comments posted on your Blog.

This script has been added to the anticipation if our visitor disabled the JavaScripts browser, There will be warning text below our "recent comments title" that's says "You Need to enable JavaScript to read this"
That's all... Happy controlling your Recent Comments...


Brochures Printing Online March 8, 2010 at 6:57 PM  

Wow this is really nice, comments are really important in a blog. But also having to be able to control it would be really cool. Thanks for sharing this and hope to see more latest post from you.

tampa movers March 15, 2010 at 2:20 PM  

Been wondering how to do that, myself. Thanks for the information.

Blogs March 15, 2010 at 11:18 PM  

I too get confused with using javascripts in my blogger blog. Anyway I will try this one.

wawa May 1, 2010 at 11:01 PM  

thanks for this tips..been looking for it for a while

Amy May 6, 2010 at 6:57 AM  

WoW. Thank you soo much!! I gotta ask you something in regards to youtube videos. I want the videos to be displayed in a customized width & height. So could you please provide me the details/script on how to get this done..?

çizgi film izle May 17, 2010 at 10:48 AM  

I usually don’t post in Blogs but your blog forced me to, amazing work.. beautiful …

Dean July 25, 2010 at 5:29 PM  

greetings to all.
I would first like to thank the writers of this blog by sharing information, a few years ago I read a book called guanacaste costa rica in this book deal with questions like this one.

javieth August 5, 2010 at 4:22 PM  

JavaScript is a good program and very easy to use. I don´t like a complex program. I prefer javascript because i consider it like a device very eficient and it have a good quality.
I always looking for the quality that is why i prefer to buy viagra because i always have a great result in my sexual life.

eco tours September 15, 2010 at 7:06 PM  

Very nice blog, is really interesting and fabulous
Really nice!!!

Free online Dating Service USA April 11, 2011 at 12:51 AM  

Thanks For Sharing Such nice Material and its very intellectual.

Lindasy Rosenwald April 23, 2011 at 12:14 AM  

Nice blogging, My review is very good example.
Lindsay Rosenwald Dr. Lindsay Rosenwald is one of the re-known venture capitalists and the hedge fund managers in the world.

KVM Switches April 25, 2011 at 4:44 AM  

I really happy to read this post, I am so glad this technical thing works.
This is so nice inform at this post. I am very impressive this good blog. Thanks share this great inform.

Phone Sex May 22, 2011 at 10:15 PM  

A good site for you guys to check out is text link adds, you should do a search in google and you will see what I’m talking about.

seo sydney May 25, 2011 at 2:20 AM  

Your piece of writing is noteworthy. I will read your post on a regular basis and it’s very supportive.

IIT EXAM August 21, 2011 at 6:52 PM  

Hello.This article was extremely fascinating, especially because I was browsing for thoughts on this topic last week.

Ultimatch November 16, 2011 at 8:40 PM  

Thanks for this blog, worth reading for. Lot of information gathered here.

Home Mortgage March 15, 2012 at 3:33 AM  

To prevent the issue above, in the following paragraphs, we are not going to publish the program to our website and creates you weblink to it.

website design company April 23, 2012 at 1:06 AM  

I wanted to thank you for this great blog! I really enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

Start Business in Delhi March 18, 2015 at 11:12 PM  

Great article, Thanks for your great information, the content is quiet interesting. I will be waiting for your next post.

ravisharmas April 10, 2015 at 8:59 PM  

Apply for a FREE TRIAL CLASS. Prepare for JEE Mains / JEE Advanced with the Best JEE Coaching Class..IIT JEE coaching online

Mobile App Developers April 29, 2015 at 1:23 AM  

Very great post. I simply stumbled upon your blog and wanted to say that I have really enjoyed browsing your weblog posts. After all I’ll be subscribing on your feed and I am hoping you write again very soon!

Post a Comment


  © New Blogger Tips For Us Free Blogger Template by Mc 2010.

Back to TOP