I am presenting a most advanced recent comments widget for Blogger. I am thankful to Mr. MS-potilas who is the original author of it. I am just slightly changing this widget to make it more powerful for my readers. You have to just change my name ‘Vinay Prajapati’ in line number 88 and 110 with your name if you’re keenly interested to show just blog readers’ comments rather than yours. Hiding blog admin in recent comments is a good idea if you reply frequently on blog readers comments because if you have 5 comments to reply and you give 5 replies then all old widgets will show only your comments in the widget and this looks very bad.
The main features of this recent comments widget are as follows:
- Able to hide the blog author’s own comment
- You can set number of comments to display
- You can also set a maximum number of comments per post to prevent a flood from a single post
- You can set the length of comment for the widget to display
- You can translate this widget for own language like Hindi, Gujarati, Tamil & others
- If you are displaying blog author comments you can highlight an author
- You can simply configure commentators profile images, blog favicons, and non-registered user image
- Avatar size can be easily configured.
Get the script at GitHub:
Recent comments for Blogger script possible customizations
- numRecentComments: Number of comments to display in the widget
- numPerPost: Maximum number of comments per post to prevent a flood from a single post
- maxCommentChars: Number of characters of reader’s comment to show in the widget
- maxPostTitleChars: Set the length of a post title or set 0 if you want to display the full title
- txtWrote: Customize ‘wrote’ word as per your choice
- txtMore: If a comment is longer then a customized ‘Continue ››’ message will appear you can change it.
- txtToolTip: A text to display when you hover at the name of the commentator
- txtAnonymous: If your language is English then nothing to change else write custom synonyms for Anonymous in your language
- getTitles: if set true, fetch titles from post feed and if set false then titles are generated from a permalink
- trueAvatars: if set true, uses Blogger profile images from comment feed else Blogger default favicon
- maxResultsPosts: Let it be empty or for example “&max-results=100” where 100 is the number of posts to get from posts feed to get post titles
- maxResultsComments: Let it be empty or for example “&max-results=300” where 300 is a number of comments to get from comments feed
- sizeAvatar: You can define the avatar size default is 32px. It is better to choose avatar size in multiples of 8 i.e. 8, 16, 24, 32, 40, 48, 56…
More important if you want to show the blog author’s own comments and replies in this widget you can refer “MS-potilas” old script. ›› https://gist.github.com/vinayprajapati/4956108
For this you can also configure two more variables in this script:
- urlMyAvatar: Leave it as it is if want to display default profile avatar else define image link for a custom avatar
- urlMyProfile: Leave it as it is if want to display default profile URL else define custom profile URL i.e. Facebook, Google+, Twitter or others
How to use any of these scripts on my blog?
If you are using an older version of internet explorer 7 or 8 and have a problem with this widget then you can change following meta tag given below in Blogger template. Find this line somewhere below <head>
<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>
and change this line with the following code:
<meta content='IE=edge' http-equiv='X-UA-Compatible'/>
Please leave a comment to have something to say or share with us.
7 thoughts on “How to Hide Blog Admin in Recent Comments Widget for Blogger?”
Very Useful and SUPERB post!!!!!!
Most welcome Yashwant ji
good work thanks bro……….i m using it
Most welcome Mr Dilip
This is the good blog and the contents are really nice. and good to know about this blog very well. thanks for sharing her with us.
Comments widget should be awesome like yours because it helps in building a relationship with readers and engaging conversation, many of the top bloggers like you have written about it and also give importance to it. Thanks for sharing.
It seems fine, but… my own comments and replies are still showing…