Showing posts with label Blogger Widgets. Show all posts
Showing posts with label Blogger Widgets. Show all posts
Thursday, November 06, 2014

Add Feedburner Recent Comment In Blogger

Recent comment widget is such an amazing tools which is developed by feedburner and successfully launched on four major popular blogging platform also including blogger proudly. To learn published recent comments the most discussed article across readers or visitors, instant feedback from them. There is no alternative or quick solution without Google feedburner recent comment widget. This widget allows both readers and authors comments on specific topic. So guys today in this post we will discuss that how to recent comment widget in blogger and to drive more traffic to blog which helps to increase click and impressions to make money. Follow the below tutorial for adding recent comment widget to blogger.
Blogger Widgets, Blogger Tutorials, Blogging Tips

How To Add Feedburner Recent Comment In Blogger ?

  • Goto blogger dashboard.
  • Layout >> HTML/JavaScript
  • Copy the below code and paste it inside pop up window.
<style type="text/css">
.recent-comment        { margin-bottom:10px; padding-left: 24px; }
.recent-comment img {
border: 1px solid #666;
padding: 2px;
opacity: 0.4;}
.recent-comment img:hover {
border: 1px solid #ddd;
opacity: 0.9;
}
.recent-comment a {
color:#ddd;}
.recent-comment-admin  { background-color: #fff; }
.recent-comment-ico    { margin-left:-20px;margin-top:4px;float:left;margin-right:3px;}
.recent-comment-header {}
.recent-comment-body   {
font-size: 90%;
font-style: italic;
font-family: helvetica;
color: #888;}
.recent-comment-footer { font-size: 85%; }
</style>
<script type="text/javascript">
//
// CONFIG:
var numRecentComments = 6;
var numPerPost = 2; // max comments per post (to try) or 0
var maxCommentChars = 100;
var maxPostTitleChars = 0; // if 0, use full post title
var txtWrote = 'says:';
var txtMore = 'More &#187;';
var txtTooltip = '[user] on &quot;[title]&quot; - [date MM/dd/yyyy hh:mm]';
var txtAnonymous = ''; // empty, or Anonymous user name localized
// Variables [xxx] in texts:
// supports [title], [user], [date], [time], [datetime], [date format]
// format supports: yyyy=long year, yy=short year, MM=month(01-12), dd=monthday, hh=hour, mm=min, ss=sec
var getTitles = true;   // false faster
var trueAvatars = true; // false faster
var urlMyAvatar = '';   // can be empty (then it is fetched) or url to image
var urlMyProfile = '';  // set if you have no profile gadget on page
//
var cropAvatar = true;
var sizeAvatar = 16;
var urlNoAvatar = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxX00GPL4zCuF1cCN3lOItHeGxxrEVXEzH_w-vYuQEy31jWYE0gslEkO-jORI7a9AOT8P22qE2xkqO-lS4r6XK6Ueq7R2IaB3kS_IJQjaS-NTRF6uQwB9P-w5y5uu8KQ-nGGnFvUh2iN0/"+sizeAvatar+"/avatar_blue_m_96.png"; // http://www.blogger.com/img/avatar_blue_m_96.png resizeable
//
var urlAnoAvatar = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxX00GPL4zCuF1cCN3lOItHeGxxrEVXEzH_w-vYuQEy31jWYE0gslEkO-jORI7a9AOT8P22qE2xkqO-lS4r6XK6Ueq7R2IaB3kS_IJQjaS-NTRF6uQwB9P-w5y5uu8KQ-nGGnFvUh2iN0/s15/avatar_blue_m_96.png?d=mm&s=' + sizeAvatar;
var maxResultsPosts = "";       // or for example "&max-results=100"
var maxResultsComments = "";    // or for example "&max-results=300"
// CONFIG END
var urlToTitle = {};
function replaceVars(text, user, title, date) {
  text = text.replace('[user]', user);
  text = text.replace('[date]', date.toLocaleDateString());
  text = text.replace('[datetime]', date.toLocaleString());
  text = text.replace('[time]', date.toLocaleTimeString());
  text = text.replace('[title]', title.replace(/\"/g,'&quot;'));
  var i = text.indexOf("[date ");
  if(i > -1) {
    var format = /\[date\s+(.+?)\]/.exec(text)[1];
    if(format != '') {
      var txtDate = format.replace(/yyyy/i, date.getFullYear());
      txtDate = txtDate.replace(/yy/i, date.getFullYear().toString().slice(-2));
      txtDate = txtDate.replace("MM", String("0"+(date.getMonth()+1)).slice(-2));
      txtDate = txtDate.replace("mm", String("0"+date.getMinutes()).slice(-2));
      txtDate = txtDate.replace("ss", String("0"+date.getSeconds()).slice(-2));
      txtDate = txtDate.replace("dd", String("0"+date.getDate()).slice(-2));
//or: txtDate = txtDate.replace("dd", date.getDate());
      txtDate = txtDate.replace("hh", String("0"+date.getHours()).slice(-2));
//or: txtDate = txtDate.replace("hh", date.getHours());
      text = text.replace(/\[date\s+(.+?)\]/, txtDate)
    }
  }
  return text;
}
if(urlMyProfile == "") {
  var elements = document.getElementsByTagName("*");
  var expr = /(^| )profile-link( |$)/;
  for(var i=0 ; i<elements.length ; i++)
    if(expr.test(elements[i].className)) {
      urlMyProfile = elements[i].href;
      break;
    }
}
function getPostUrlsForComments(json) {
  for(var i = 0 ; i < json.feed.entry.length ; i++ ) {
    var entry = json.feed.entry[i];
    for (var k = 0; k < entry.link.length; k++ ) {
      if (entry.link[k].rel == 'alternate') {
        href = entry.link[k].href;
        break;
      }
    }
    urlToTitle[href] = entry.title.$t;
  }
}
function showRecentComments(json) {
  var postHandled = {};
  var j = 0;
  if(numPerPost) {
    while(numPerPost < numRecentComments) {
      for(var i = 0 ; i < json.feed.entry.length ; i++ ) {
        var entry = json.feed.entry[i];
        if(entry["thr$in-reply-to"]) {
          if(!postHandled[entry["thr$in-reply-to"].href])
              postHandled[entry["thr$in-reply-to"].href] = 1;
          else
              postHandled[entry["thr$in-reply-to"].href]++;
          if(postHandled[entry["thr$in-reply-to"].href] <= numPerPost)
            j++;
        }
      }
      if(j >= numRecentComments)
        break;
      numPerPost++;
      j = 0;
      postHandled = {};
    }
    if(numRecentComments == numPerPost)
       numPerPost = 0;
  }
  postHandled = {};
  j = 0;
  for(var i = 0 ; j < numRecentComments && i < json.feed.entry.length ; i++ ) {
    var entry = json.feed.entry[i];
    if(numPerPost && postHandled[entry["thr$in-reply-to"].href] && postHandled[entry["thr$in-reply-to"].href] >= numPerPost)
      continue;
    if(entry["thr$in-reply-to"]) {
      if(!postHandled[entry["thr$in-reply-to"].href])
          postHandled[entry["thr$in-reply-to"].href] = 1;
      else
          postHandled[entry["thr$in-reply-to"].href]++;
      j++;
      var href='';
      for (var k = 0; k < entry.link.length; k++ ) {
        if (entry.link[k].rel == 'alternate') {
          href = entry.link[k].href;
          break;
        }
      }
      if(href=='') {j--; continue; }
      var hrefPost = href.split("?")[0];
      var comment = "";
      if("content" in entry) comment = entry.content.$t;
      else                   comment = entry.summary.$t;
      comment = comment.replace(/<br[^>]*>/ig, " ");
      comment = comment.replace(/<\S[^>]*>/g, "");
      var postTitle="-";
      if(urlToTitle[hrefPost]) postTitle=urlToTitle[hrefPost];
      else {
        if(hrefPost.match(/\/([^/]*)\.html/)) postTitle = hrefPost.match(/\/([^/]*)\.html/)[1].replace(/_\d{2}$/, "");
        postTitle = postTitle.replace(/-/g," ");
        postTitle = postTitle[0].toUpperCase() + postTitle.slice(1);
      }
      if(maxPostTitleChars && postTitle.length > maxPostTitleChars) {
        postTitle = postTitle.substring(0, maxPostTitleChars);
        var indexBreak = postTitle.lastIndexOf(" ");
        postTitle = postTitle.substring(0, indexBreak) + "...";
      }
      var authorName = entry.author[0].name.$t;
      var authorUri = "";
      if(entry.author[0].uri && entry.author[0].uri.$t != "")
        authorUri = entry.author[0].uri.$t;
 
      var avaimg = urlAnoAvatar;
      var bloggerprofile = "http://www.blogger.com/profile/";
      if(trueAvatars && entry.author[0].gd$image && entry.author[0].gd$image.src && authorUri.substr(0,bloggerprofile.length) == bloggerprofile)
        avaimg = entry.author[0].gd$image.src;
      else {
        var parseurl = document.createElement('a');
        if(authorUri != "") {
          parseurl.href = authorUri;
          avaimg = 'http://www.google.com/s2/favicons?domain=' + parseurl.hostname;
        }
      }
      if(urlMyProfile != "" && authorUri == urlMyProfile && urlMyAvatar != "")
        avaimg = urlMyAvatar;
      if(avaimg == "http://img2.blogblog.com/img/b16-rounded.gif" && urlNoAvatar != "")
        avaimg = urlNoAvatar;
      var newsize="s"+sizeAvatar;
      avaimg = avaimg.replace(/\/s\d\d+-c\//, "/"+newsize+"-c/");
      if(cropAvatar) newsize+="-c";
      avaimg = avaimg.replace(/\/s\d\d+(-c){0,1}\//, "/"+newsize+"/");
      if(authorName == 'Anonymous' && txtAnonymous != '' && avaimg == urlAnoAvatar)
        authorName = txtAnonymous;
      var imgcode = '<img height="'+sizeAvatar+'" width="'+sizeAvatar+'" title="'+authorName+'" src="'+avaimg+'" />';
      if (authorUri!="") imgcode = '<a rel="nofollow" href="'+authorUri+'">'+imgcode+'</a>';
      var clsAdmin = "";
      if(urlMyProfile != "" && authorUri == urlMyProfile)
          clsAdmin = " recent-comment-admin";
      var datePart = entry.published.$t.match(/\d+/g); // assume ISO 8601
      var cmtDate = new Date(datePart[0],datePart[1]-1,datePart[2],datePart[3],datePart[4],datePart[5]);
      var txtHeader = txtWrote;
      if(txtWrote.indexOf('[')==-1)
        txtHeader = authorName + ' ' + txtWrote;
      else
        txtHeader = replaceVars(txtHeader, authorName, postTitle, cmtDate);
      var tooltip = replaceVars(txtTooltip, authorName, postTitle, cmtDate);
      if(!/#/.test(href)) href += "#comments";
      document.write('<div title="'+tooltip+'" class="recent-comment'+clsAdmin+'">');
      document.write('<div title="'+tooltip+'" class="recent-comment-header'+clsAdmin+'"><div title="'+tooltip+'" class="recent-comment-ico'+clsAdmin+'">'+imgcode+'</div><a title="'+tooltip+'" href="' + href + '">' + txtHeader + ' </a></div>');
      if(comment.length < maxCommentChars)
        document.write('<div title="'+tooltip+'" class="recent-comment-body'+clsAdmin+'">' + comment + '</div>');
      else {
        comment = comment.substring(0, maxCommentChars);
        var indexBreak = comment.lastIndexOf(" ");
        comment = comment.substring(0, indexBreak);
        document.write('<div title="'+tooltip+'" class="recent-comment-body'+clsAdmin+'">' + comment + '...</div>');
        if(txtMore != "") {
          var moretext = replaceVars(txtMore, authorName, postTitle, cmtDate);
          document.write('<div title="'+tooltip+'" class="recent-comment-footer'+clsAdmin+'"><a title="'+tooltip+'" href="' + href + '">' + moretext + '</a></div>');
        }
      }
      document.write('<div style="clear:both;"></div></div>');
    }
  }
}
if(getTitles)
  document.write('<script type="text/javascript" src="http://'+window.location.hostname+'/feeds/posts/summary?redirect=false'+maxResultsPosts+'&alt=json-in-script&callback=getPostUrlsForComments"></'+'script>');
document.write('<script type="text/javascript" src="http://'+window.location.hostname+'/feeds/comments/default?redirect=false'+maxResultsComments+'&alt=json-in-script&callback=showRecentComments"></'+'script>');
</script>
<!--<style>
div.feedburnerFeedBlock ul li {
list-style-type: circle;
margin:0 0 0px 10px;
padding:5px 5px 5px 5px !important;
}
div.feedburnerFeedBlock ul li:hover {
list-style-type: disc;
}
div  #creditfooter{
display: none;
}
</style>
<script src="http://feeds2.feedburner.com/truebloggingtrickscomments?format=sigpro" type="text/javascript"></script>-->
<div class='clear'></div>
  • Click on save button and you done it. 

Customization

  • Replace truebloggingtricks with your blog feedburner username.
  • Set number of comments to show 6
If you are facing any kind of problem related to this tutorial feed free and ask in the below box.
Read more
Sunday, October 19, 2014

Attractive Popular Posts Numbering Widget For Blogger

Popular posts is widget on blogger which is always displayed with default style by blogger and it is always customized with different styles in custom templates. Many newbies don't know about the customization of popular post widget. It is very process to customize this widget in blogger and we have already published a tutorial about how to customize popular post widget in blogger. But today's tutorial is different and more advance because i have customized this widget for you which will your popular posts more stylish, attractive and beautiful. It will be working fine including on all blogger templates and also on the on the custom templates, so let's start to add in the blogger. After adding the popular post widget to your blog your blog will looking different and awesome if you want to customize your popular post attractive follow the below tutorial.
Blogger Tricks, Blogger Tutorials, Blogger Widgets

How To Add Popular Posts Widget In Blogger ?

  • Goto blogger dashboard.
  • Template >> Edit Html.
  • Find the below code.
]]></b:skin>
  • Copy the below code and paste it above/before ]]></b:skin>
#PopularPosts1 ul li a:hover{color:#fff;text-decoration:none}
#PopularPosts1 ul li a {-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  color: #333333; display: block; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px 10px 0px -5px; min-height: 30px; orphans: 2; padding: 0px; text-align: -webkit-auto; text-decoration: none !important; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; }
#PopularPosts1 ul li .item-thumbnail{float:left;border:0;margin-right:10px;background:transparent;padding:0;width:51px;height:51px}
#PopularPosts1 ul li:first-child:after,
#PopularPosts1 ul li:first-child + li:after,
#PopularPosts1 ul li:first-child + li + li:after,
#PopularPosts1 ul li:first-child + li + li + li:after,
#PopularPosts1 ul li:first-child + li + li + li + li:after,
#PopularPosts1 ul li:first-child + li + li + li + li + li:after,
#PopularPosts1 ul li:first-child + li + li + li + li + li + li:after,
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li:after,
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li + li:after,
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li + li + li:after{position:absolute;top:10px;right:5px;border-radius:50%;border:2px solid #ccc;background:#353535;-webkit-box-shadow:0px 0px 5px #000;-moz-box-shadow: 0px 0px 5px #000;width:30px;height:30px;line-height:1em;text-align:center;font-size:28px;color:#fff}
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li {background:#DF01D7;width:90%}
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li:after{content:"8"}
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li +li{background:#B041FF;width:90%}
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li + li:after{content:"9"}
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li +li +li{background:#F52887;width:90%}
#PopularPosts1 ul li:first-child + li + li + li + li + li + li + li + li + li:after{content:"10"}
#PopularPosts1 ul li:first-child + li + li + li + li +li{background:#7ee3c7;width:90%}
#PopularPosts1 ul li:first-child + li + li + li + li + li:after{content:"6"}
#PopularPosts1 ul li:first-child + li + li + li + li + li +li{background:#f6993d;width:90%}
#PopularPosts1 ul li:first-child + li + li + li + li + li + li:after{content:"7"}
#PopularPosts1 ul li:first-child + li + li + li + li{background:#33c9f7;width:90%}
#PopularPosts1 ul li:first-child + li + li + li + li:after{content:"5"}
#PopularPosts1 ul li:first-child + li + li + li{background:#c7f25f;width:90%}
#PopularPosts1 ul li:first-child + li + li + li:after{content:"4"}
#PopularPosts1 ul li:first-child + li + li{background:#ffde4c;width:90%}
#PopularPosts1 ul li:first-child + li + li:after{content:"3"}
#PopularPosts1 ul li:first-child + li{background:#ff764c; width:90%}
#PopularPosts1 ul li:first-child + li:after{content:"2"}
#PopularPosts1 ul li:first-child{background:#ff4c54 ;width:90%}
#PopularPosts1 ul li:first-child:after{content:"1"}
#PopularPosts1 ul{margin:0;padding:0px 0;list-style-type:none}
#PopularPosts1 ul li{position:relative;margin:6px 0;border-radius:25px 0px 25px 0px;border:2px solid #f7f7f7;-webkit-box-shadow:3px 3px 3px #000;-moz-box-shadow: 3px 3px 3px #000;padding:10px;}
#PopularPosts1 img {
border-radius:200px;
width:60px; height:60px;
margin-left:4px;
}
  • Just save your template and you are all done.
Now view your blog and see the beautiful popular posts widget in the sidebar. If you faced any problem then post it in the comment box. Cheers and Enjoy !!! 
Read more
Saturday, October 18, 2014

Add Twitter Follow And Facebook Like Button Below Every Post in Blogger

Blogger Widgets, Social Widgets
In today's tutorial i m going to show that how to add Twitter Follow and Facebook like button Below every blog post in blogger. This widget will help to increase the Facebook likes and Twitter followers. It is very attractive and easy to install in your blog. It is compatible to work in all browsers. So in this post i m giving a code of social subscription widget to your blogger. So let's start to add this beautiful widget and getting more likes and twitter followers.

How To Add Twitter Follow And Facebook Like Button Below Every Post in Blogger ?

  • Goto blogger dashboard.
  • Click on template >> Edit Html
  • Find the piece of code by pressing Crtl+F
<data:post.body/>
OR
<div class=’post-footer-line post-footer-line-1′>

  • Now copy the code and paste it below/after the above code.
 <div style='margin:5px 0px 10px 0px; padding:10px; width:590px;float:none; '>
<div style='float:left; width:272px; border-right:1px solid #ddd;'>
<iframe allowtransparency='true' frameborder='0' scrolling='no' src='http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fofficialtbt&amp;width=292&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=62' style='border:none; overflow:hidden; width:292px; height:62px;'/>
</div>
<div style='margin:15px 15px 0px 0px; padding:0px; float:right; width:260px;'>
<iframe allowtransparency='true' class='twitter-follow-button' frameborder='0' scrolling='no' src='http://platform.twitter.com/widgets/follow_button.html#_&amp;id=twitter-widget-0&amp;lang=en&amp;screen_name=haiderkhalil88&amp;show_count=true&amp;show_screen_name=true&amp;size=l' style='width: 266px; height: 32px;' title='Twitter Follow Button'/>
<script src='http://platform.twitter.com/widgets.js' type='text/javascript'/>
</div> </div>

  • Save your template and you done it.

Customization

  • Replace offcialtbt with your Facebook username and haiderkhalil88 with your Twitter username.
If you found any problem related with this post feel free and mention it in the comment. I will reply as soon as possible.

Read more
Thursday, October 09, 2014

How To Customize Comment Box In Blogger ?

Blogger Tricks, Blogger Tutorials, Blogger Widgets
Do you ever imagine of customize comment box in blogger ? Although Google experts works very hard to improve its features and results can be seen in new blogger interface. Blogger commenting system is only element which is necessities some sort of complement. If you want to make your blog more successful then you need friendly commentators instead of loyal commentators. This is the only way to keep your old article alive is to reply to comments. But if you aren't getting any comment then surely your post will die in quick succession. So today we are going to customize blogger comment box with this users will not hesitate while publishing a comment.

How To Customize Comment Box In Blogger

  • Login to blogger dashboard >> Template.
  • Click on Edit Html.
  • Backup your template in-case of any thing goes wrong.
  • Now search the below code by pressing Ctrl+F
]]></b:skin>
  • Copy the below code and paste it above/before ]]></b:skin>.
#tbt-comment iframe{
      background:#ffffff url(IMAGE-Here) repeat;
             border:1px solid #ddd;
             -moz-border-radius:6px;
             -webkit-border-radius:6px;
             box-shadow: 5px 5px 5px #CCCCCC;
             padding:5px;
             font:normal 12pt "ms sans serif", Arial;
             color:#2F97FF ;
             width:560px; height:213px !important;
}
#tbt-comment a{
           color:#fff;
}
  • Replace IMAGE-Here with the background image Url that you want to see in blogger comment box, we have already listed below some background links so you may enjoy attractive comment box.
  • Again find the below code.
<div class='comment-form'>
  • Replace the above with below code.
 <div id='tbt-comment'>
  • Now save your template and you are ready to enjoy your new blogger comment box.

Comment Box Background

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaEVSkc-zElrWyEqlIrEkvQ6X32oma5bxoTg3dpxQT0a5pSaPgYdTmKPYRVDp5q72j1Rqtnb8MfcRXIkbS8jNBn1h3JnkOLMGqLyfPOiojgczEmDwYDfR-JqPkyoW1EH-SsPOf4Fc7SUs5/s400/11.png
Blogger Tricks, Blogger Tutorials, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdZIWpjzN_G1QnRVTKXNnj9ThKE_fZqHSnYtpaGdtDWIYkTnvtd_yQRsclxMqUnDwMdWIyWbUdzUIweDP-3LTLmhaYRmf1IBcKm9GtxRBp39mn9nxAyCOrhUZY1FAr8w_l_FAhoZe3KEs/s1600/HP-Laptop-Luster.png
Blogger Tricks, Blogger Tutorials, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigjhzJZkePILuiN_ryfZoAoX3xGOZfCnSrnlNMZhZ1JbOsXQT4Nc5o1uvZkHKdB2qKzpKm46-vQEHcgYUZdE_wfimYNmu8-wNSwAlLXwhLNdU5wbMLp7EEyhoMdnjmPgyrH-xl6Vg-aVo/s1600/Moon-Ramadan-Theme-.jpg
Blogger Tricks, Blogger Tutorials, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCkmazJhY1FVGAQdZgymlbUbxFX3CE0xdHb-xYJlinSHv53vr3AtNWh2oDvY6RPwtSjkaZtRc50tDt-KKMnaleV7WVAM2YtvH8tFakfxdJzS2oW7UBNX1ABUBoHzXh_F4MJj4lu0tPgEY/s1600/Eid-Theme.png
Blogger Tricks, Blogger Tutorials, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGFE6ZBsJ7TtXDi6JlEO64EW4wcVnYAdoDeC0pes2xV_Gd6EVFp_CGHn_X1DYQPp7zm_Q0SYSkKICakHLOTFknZb7mgCXLjeBeDm9sZBB2asj-7wdQUlzMa-1gxoEOL2YV_HaKrSGBY8s/s320/Zeebra.png
Blogger Tricks, Blogger Tutorials, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqXIcnW_aSeb_4mPo2s7fL0MTwxkEnKReiJep_jjYbSfVYWh91iEI7Yy0IRPFppdFKm3iDHeKlB-WHm44PNp5zMKpUr0eyrIXvlmZDCDLdsvvG2gc7ChwRAF4VvNIfCbWZf1x6VmEJr4k/s1600/Tree-RED.png
Blogger Tricks, Blogger Tutorials, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSdgN1LJsBlQy6tsuhMWxS2qeFzK-xTUHkRVTbg7Dq5QdZ_VE6I_igBnerLu9qhDYA2hZzcp_WzhdOb9xB7PK8XSc6tv6C8oV7DCjfxagxZcPrINZ_rHxBBA__mNnYo0PjOy4dNyjSIlE/s1600/SnowFall.png
Blogger Tricks, Blogger Tutorials, Blogger Widgets

Final Words

So i hope you enjoyed this trick. If you think we missed some good themes just leave it in the below comment box we would love to include them in our list, till then happy blogging.
Read more
Wednesday, September 24, 2014

How to Add Percentage Value to a Scrollbar in Blogger

Blogger Tricks, Blogger Widgets
In recent tutorials we have already shown the way through which you can customize a lot of blogger widgets. Recently one of our reader asked that how to add a percentage value to scroll bar in blogger ? Basically it shows the percentage of page while scrolling. It might turn out extremely useful for your readers and visitors to find out how much page have been scrolled or how much content, post or article is left to be read. This widget is very attractive and effective for those who's knows about scroll percentage. So in this widget i have calculated the total page as 100% and added value which will changing after scrolling. When you will be at the tops of the blog the value will be 0% and when you scrolling the page it will display the value of scrolling. This widget is made with pure CSS, it consists of Black and Royal Blue percentage with fading effect and i think trick i pretty much cool.

How to Add Percentage Value to a Scrollbar in Bloggers

  • Login to your blogger dashboard.
  • Goto template.
  • Click on Edit Html.
  • Find the below code by pressing Ctrl+F.
]]></b:skin>
  • Paste the below code above/before ]]></b:skin>
#TricksBloggingTricksScroll {
display: none;
position: fixed;
top: 0;
right: 10px;
z-index: 500;
padding: 3px 8px;
background-color:#000000;
color: #fff;
border-radius: 3px;
}
#TricksBloggingTricksScroll:after {
content: " ";
position: absolute;
top: 50%;
right: -7px;
height: 0x;
width: 0;
margin-top: -4px;
border: 4px solid transparent;
border-left-color: rgb(4, 189, 250);
}
@media screen and (max-width:600px){
#TricksBloggingTricksScroll{
display:none;
}
  • Now find <body> by pressing Ctrl+F.
  • Paste the below code after <body>
<div id='TricksBloggingTricksScroll'/>
  • Now find </body> by pressing Ctrl+F
  • Paste the below code above/before </body>
<script type='text/javascript'>
//<![CDATA[
var scrollTimer = null;
$(window).scroll(function() {
   var viewportHeight = $(this).height(),
       scrollbarHeight = viewportHeight / $(document).height() * viewportHeight,
       progress = $(this).scrollTop() / ($(document).height() - viewportHeight),
       distance = progress * (viewportHeight - scrollbarHeight) + scrollbarHeight / 2 - $('#TricksBloggingTricksScroll').height() / 2;
    $('#TricksBloggingTricksScroll')
        .css('top', distance)
        .text(' (' + Math.round(progress * 100) + '%)')
        .fadeIn(100);
    if (scrollTimer !== null) {
        clearTimeout(scrollTimer);
    }
    scrollTimer = setTimeout(function() {
        $('#TricksBloggingTricksScroll').fadeOut();
    }, 1500);
});
//]]>
</script>
  • Click on save button.
Now check your blog and see scrollbar with effects if you have any query feel free and ask in comment box.
Read more
Monday, September 22, 2014

Colorful Customized Flat UI Cloud Widget For Blogger

Blogger Tricks, Blogger Widgets
Improving of blog bringing awesomeness and professionalism to blog and themes and templates is always good. There are several reasons like getting approval of Google Adsense, BuySellAds and also getting approval from big advertising companies. There are several professional templates available on internet which can be use but might not have uniqueness because they are made for the public users. After theme or template it also have some important widgets such like labels, popular post widget, social sharing and related posts etc. If you are enough smart in web designing then you can easily bring in professionalism if you are not them don't worry there are awesome ready made widgets available on internet by which you can make your blog professional. Today in post we are going to do trick which helps to beautify our blog theme a little bit. I have customize my blogger labels widget and below i m going to share it with all.

Colorful Flat UI Labels Cloud Widget

Now a days Flat UI or metro designs are most trending in web designing. Today when i came to my blog and i was thinking about topic. I thought why not today we play with some blogger widgets and share it here. Then started choosing for customization and came to know that labels widget have old looking on all blogs so i started something new to it so i made this Colorful Flat UI Label Cloud Widget.

This is the Colorful Flat UI Cloud Widget in which colors or tag having different multiple colors. That's why we add "Color" word its name. After this it look is inspired from Flat UI colors. Another specialty is that when someone hovers the mouse cursor on label it gives a beautiful effect on hover. This widget is customized using CSS3 and have no JavaScript or any other language program which means it has no effect on loading of blog speed. You can also have live demo on right side of this blog. We are using it here, so lets started the tutorial on have you can implement this Colorful Flat UI Label widget for blogger.

How To Colorful Customized Flat UI Cloud Widget For Blogger

  • Login to blogger dashboard.
  • Goto layout and click on Add a Gadget.
  • Choose Labels widget.
Blogger Tricks, Blogger Widgets
  • Click on save button
Now the widget has been added to the blog.
  • Now goto template.
  • Click on Edit Html.
  • Search the below code.
]]></b:skin>
  • Copy the below code and the paste above/before ]]></b:skin>
.sidebar .label-size {
  position:relative;
  text-transform: uppercase;
  text-decoration:none;
  font-size:13px;
  font-family:Open Sans;
  color:#fff!important;
  }
.sidebar .label-size a {
  color:#fff!important;
  font-weight:bold;
  padding:8px 10px;
  margin:0 6px 6px 0;
  float:left;
  display:block;
  -moz-transition: all 0.4s ;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s ;
  -ms-transition: all 0.4s ;
  transition: all 0.4s ;
}
.sidebar .label-size-1 a {background:#1abc9c;border-bottom:3px solid #127F69;}
.sidebar .label-size-1 a:hover {background:#16a085;}
.sidebar .label-size-2 a {background:#3498db;border-bottom:3px solid #226693;}
.sidebar .label-size-2 a:hover {background:#2980b9;}
.sidebar .label-size-3 a {background:#2ecc71;border-bottom:3px solid #1F8C4C;}
.sidebar .label-size-3 a:hover {background:#27ae60}
.sidebar .label-size-4 a {background:#9b59b6;border-bottom:3px solid #74398E;}
.sidebar .label-size-4 a:hover {background:#8e44ad}
.sidebar .label-size-5 a {background:#e74c3c;border-bottom:3px solid #922C20;}
.sidebar .label-size-5 a:hover {background:#c0392b}
  • Now save your template.
  • Congrats! you have successfully customized colorful Flat UI label cloud widget in your blog.

Final Words

Guys so that was a colorful Flat UI cloud widget i have shared in this post. I hope this will help to improve the design of the blog, it looks good in the design. If you are facing any problem adding this code fee free to ask in comment. Stay connected with us for latest and upcoming widgets. Don\'t forget to share your views and conjointly share with friends.
Read more
Saturday, September 20, 2014

How To Add Stylish Keyboard Keys In Blogger Posts

Blogger Tricks, Blogger Tutorials, Blogger Widgets
In today's we are going to release stylish Css keyboard for blogger posts. These keys brings more beauty, attractiveness and make your blog more designable. We also alerted all the users of blogspot that they can show a stylish and attractive keyboard keys instead of selective text. They keys are developed in CSS3 to design and have no image or photo, which cannot increase the loading time of your blog. So if your are the true reader of TBT then you might be familiar that recently also shared an Attractive Table Contents Page Sitemap and today we have another splendid tutorial to show you a complete guide. So in this article we are going to guide you that how to add a stylish keyboard keys in blogger posts to make it more designable.

Why To Show The CSS3 Stylish Keyboard Keys In Blogger Posts

Blogger is full of fun and fully customizable even a teenager customize it easily in less a minute. Every a single day bundles of blogger templates releasing with unique stylish designing. So if you want to make your blog more designable you have analyzed each and every corner of the blog. We can also the default text in blogger to switch into Css stylish designing. Generally we use to show blogger default keyboard inside posts whenever learning how to gadget or something like that. Now being as professional blogger that have to understand that we need to add CSS3 designing keyboard  keys to help the newbies very well instead of showing default text.

Adding Css Keyboard Keys In Blogger Template

First of all we have to add a CSS3 code inside blog template. We will copy the below code and paste it inside the template. So whenever we want to write an article and want to add a designable keyboard keys, we need to call by spicific id's or class.

  • Login to blogger dashboard.
  • Goto Template and click on Edit Html.
  • Search the below code.
]]></b:skin>

  • Copy the below code and paste above/before ]]></b:skin>

kbd{
border:1px solid gray;
font-size:1.2em;
box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #ccc, 0 2px 0 3px #444;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
margin:2px 3px;
padding:1px 5px;
}

  • Save your template.
Now  whenever you want to write a new post and want to add a stylish keys of keyboard in specific location you will need to add to the below code inside blogger post editor html.
<kbd>Ctrl</kbd> + <kbd>F</kbd>
Blogger Tricks, Blogger Tutorials, Blogger Widgets

  •  After enclosing you text inside the above tags. then the text will be looks like the below image.
Blogger Tricks, Blogger Tutorials, Blogger Widgets

Need Help

We are confident about this tutorial and hope you learned How To Add Stylish Keyboard Keys In Blogger Posts. If you have still problem and confuse and do not do the customization then we want to post your query in comment box and we will solve your problem as soon as possible. If you wan to know more about blogging tricks then visit our TBT Gadget Portion. Thanks and hope to you next tutorials.

Read more
Wednesday, September 17, 2014

How To Disable Selection of Text and Enable Text Within Blockquotes

Blogger Widgets, Blogger Tricks, Blogging Tips, Blogger Tutorials
Content stealing increasing day by day and they tend to copy the original content from the blog and while publishing on their blog or websites. Sometimes the rank of the duplicators is better than the original blog publisher. They are getting high rank easily without spending bundles of hours on writing posts or articles. This is indeed very awful for the blog owner who's spending his precious time in preparing fresh and unique content and someone easily copy and paste it easily on any where on the web. If you want to make the work more difficult for duplicators who is not try copy your post easily, we must add a Css code to the blog template which will totally disabled the selection of text and also its very difficult for copycats to copying posts from your blog. But at the same time enable the text within enclosed with blockquotes.

Customize Popular Post Widget in Blogger With CSS

Why We Need To Disable Copying Of Text On Blog

There are many plagiarism issues we must take care of our contents and keep eyes on it 24 hours. One the biggest problem for those who's running Google Adsense account Because soon Google will disable Adsense account if they found your content many times on different locations on the internet. So the latest Google Panda have a strict rules against copyrighted contents. So we must check our content trice times a day that who is trying to copy our posts, contents or articles. So below i will provide i Css code which will help you to disable the selection of texts in blogger. So that no can easily copy or steal your content from the blog. So if you run a technology blog and provides a code to users and want to prevent them from copying any other text enclosed with blockquotes follow the below tutorial.

How To Disable Selection of Text and Enable Text Within Blockquotes ?

To know that how to disable how to disable selection of text forever in blogger, so we will provide you a Css code which will completely disable the left click on your blogger blog. So follow the steps carefully which will guide you completely about adding this code.
  • Login Blogger Dashboard.
  • Goto template and click on Edit Html.
  • Find the below code by pressing Ctrl+F.
]]></b:skin>
  • Now the paste the below code above/before ]]></b:skin>
.post blockquote{-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
body {
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}
  • After pasting the above code click on save button and content is being protected from copied.
Read more
Thursday, September 04, 2014

Replace Blogger 404 Page with Beautiful Search Box in Blogger

Blogger Widgets, Blogger Tricks, Blogger Tutorials
Blogger is not a dynamic as WordPress, and not complete with WordPress however experts are every where. So here we found the way by which you can easily replaced 404 page with a beautiful search box. This will your blog beautiful and easy to understand. Whenever someone enter wrong URL or address of your blog it will show a search box and link of a homepage by which he/she  will easily back to the homepage or anything search of your blog for other query. Other thing is that the design of a search box cute and attractive and it will give a great looking to the fancy design of your blog, lets how it's work.

How To Replace Blogger 404 Page with Beautiful Search Box in Blogger ?

  • Login your blogger dashboard.
  • Goto setting.
Blogger Widgets, Blogger Tricks, Blogger Tutorials
  • Then click on Search Preferences.
Blogger Widgets, Blogger Tricks, Blogger Tutorials
  • After that click on Edit (Custom Page Not Found).
Blogger Widgets, Blogger Tricks, Blogger Tutorials
  • Now copy the below whole script and paste inside it.
<style>
#search-button-links1 {
    position: relative;
    top: 0;
    right: 0;
    height: 60px;
    width: 580px;
    font-size: 18px;
    color: #000;
    text-align: center;
    text-decoration:none;
    line-height: 42px;
    border-width: 0;
    background-color: #5caddf;
margin:5px;
    cursor: pointer;
}
#search-box1 {
    position: relative;
    width: 100%;
    margin: 0;
}
#search-form1 {
    height: 40px;
    border: 1px solid #999;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #fff;
    overflow: hidden;
}
#search-text1 {
    font-size: 14px;
    color: #ddd;
    border-width: 0;
    background: transparent;
}
#search-box input[type="text"] {
    width: 90%;
    padding: 11px 0 12px 1em;
    color: #333;
    outline: none;
}
#search-button1 {
    position: absolute;
    top: 0;
    right: 0;
    height: 42px;
    width: 80px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    line-height: 42px;
    border-width: 0;
    background-color: #4d90fe;
    -webkit-border-radius: 0px 5px 5px 0px;
    -moz-border-radius: 0px 5px 5px 0px;
    border-radius: 0px 5px 5px 0px;
    cursor: pointer;
}
</style>
<div id='search-box1'>
  <form action='/search' id='search-form1' method='get' target='_top'>
    <input id='search-tex1t' name='q' placeholder='Search True Blogging Tricks' type='text'/>
    <button id='search-button1' type='submit'><span>Search</span></button>
  </form>
</div>
<p style="color:#e33633; font-family:verdana, sans serif; font-size:16px; padding:24px; text-decoration:none">This Page has been removed for safety purposes <br /> Visit <a href="http://truebloggingtricks.blogspot.com">True Blogging Tricks</a>
  •  Click on save changes.

Customization

You can change the highlighted color to the desired text you need. If you have any problem with this tutorial feel free to comment below and also share this helpful tutorial with friends. Stay blessed and Happy Blogging!
Read more
Sunday, August 24, 2014

How To Insert Attractive Table of Contents Page Sitemap in Blogger

Beginners Guide, Blogger Tutorials, Blogger Widgets, Blogging Tips
It is very important for publisher to add a Sitemap (Table of Contents Page) is his/her blog to make more good and professional. So basically Sitemap (Table of Contents Page) is the place of your blog where all the posts are posts are arrange according to their type and category. That's why we are going to tell you that How To Insert Table of Contents Page in Blogger.
The design of the table of contents in blogger is quite beautiful and will automatically update, you don't need to worry just edit it every time when you publish or create a new post. When you publish a post table of content page will added automatically and it will saves lots of time. The table of content page display all of your post in specific categories (Labels) and display all of your posts well arranged.
This widget is purely designed with CSS so it looks really attractive, and it will show the latest post showing with text News!. So lets begins our finger tips rolling over the tutorial.

Features

  • The Sitemap (Table of Contents) will added latest post when you update your blog.
  • It will tag your new post automatically as a New! in Table of Contents.
  • All of your blog posts will arranged automatically under there given categories.

How to Add a Sitemap (Table Of Contents) in Blogger ?

  • Login to your blogger dashboard.
  • Goto Pages >> New Page >> Blank Page.
  • Write a title of a page.
  • Click on HTML copy the whole code and paste it inside.
<style>
p.labels a{color: #242424; text-transform: uppercase;font-size: 15px;}
a.post-titles {color: #0000FF;}
ol li{list-style-type:decimal;line-height:25px;}
</style>
<script>
//<![CDATA[
var postTitle=new Array();var postUrl=new Array();var postPublished=new Array();var postDate=new Array();var postLabels=new Array();var postRecent=new Array();var sortBy="titleasc";var tocLoaded=false;var numChars=250;var postFilter="";var numberfeed=0;function bloggersitemap(a){function b(){if("entry" in a.feed){var d=a.feed.entry.length;numberfeed=d;ii=0;for(var h=0;h<d;h++){var n=a.feed.entry[h];var e=n.title.$t;var m=n.published.$t.substring(0,10);var j;for(var g=0;g<n.link.length;g++){if(n.link[g].rel=="alternate"){j=n.link[g].href;break}}var o="";for(var g=0;g<n.link.length;g++){if(n.link[g].rel=="enclosure"){o=n.link[g].href;break}}var c="";if("category" in n){for(var g=0;g<n.category.length;g++){c=n.category[g].term;var f=c.lastIndexOf(";");if(f!=-1){c=c.substring(0,f)}postLabels[ii]=c;postTitle[ii]=e;postDate[ii]=m;postUrl[ii]=j;postPublished[ii]=o;if(h<10){postRecent[ii]=true}else{postRecent[ii]=false}ii=ii+1}}}}}b();sortBy="titleasc";sortPosts(sortBy);sortlabel();tocLoaded=true;displayToc2();document.write('</br><div class="sitemap-link"><a href="http://www.truebloggingtricks.net/2014/08/how-to-insert-attractive-table-of.html" style="font-size: 10px; text-decoration:none; color: #5146CD;">Get This Widget</a></div>')}function filterPosts(a){scroll(0,0);postFilter=a;displayToc(postFilter)}function allPosts(){sortlabel();postFilter="";displayToc(postFilter)}function sortPosts(d){function c(e,g){var f=postTitle[e];postTitle[e]=postTitle[g];postTitle[g]=f;var f=postDate[e];postDate[e]=postDate[g];postDate[g]=f;var f=postUrl[e];postUrl[e]=postUrl[g];postUrl[g]=f;var f=postLabels[e];postLabels[e]=postLabels[g];postLabels[g]=f;var f=postPublished[e];postPublished[e]=postPublished[g];postPublished[g]=f;var f=postRecent[e];postRecent[e]=postRecent[g];postRecent[g]=f}for(var b=0;b<postTitle.length-1;b++){for(var a=b+1;a<postTitle.length;a++){if(d=="titleasc"){if(postTitle[b]>postTitle[a]){c(b,a)}}if(d=="titledesc"){if(postTitle[b]<postTitle[a]){c(b,a)}}if(d=="dateoldest"){if(postDate[b]>postDate[a]){c(b,a)}}if(d=="datenewest"){if(postDate[b]<postDate[a]){c(b,a)}}if(d=="orderlabel"){if(postLabels[b]>postLabels[a]){c(b,a)}}}}}function sortlabel(){sortBy="orderlabel";sortPosts(sortBy);var a=0;var b=0;while(b<postTitle.length){temp1=postLabels[b];firsti=a;do{a=a+1}while(postLabels[a]==temp1);b=a;sortPosts2(firsti,a);if(b>postTitle.length){break}}}function sortPosts2(d,c){function e(f,h){var g=postTitle[f];postTitle[f]=postTitle[h];postTitle[h]=g;var g=postDate[f];postDate[f]=postDate[h];postDate[h]=g;var g=postUrl[f];postUrl[f]=postUrl[h];postUrl[h]=g;var g=postLabels[f];postLabels[f]=postLabels[h];postLabels[h]=g;var g=postPublished[f];postPublished[f]=postPublished[h];postPublished[h]=g;var g=postRecent[f];postRecent[f]=postRecent[h];postRecent[h]=g}for(var b=d;b<c-1;b++){for(var a=b+1;a<c;a++){if(postTitle[b]>postTitle[a]){e(b,a)}}}}function displayToc(a){var l=0;var h="";var e="Post Title";var m="Click to sort by title";var d="Date";var k="Click to sort by date";var c="Category";var j="";if(sortBy=="titleasc"){m+=" (descending)";k+=" (newest first)"}if(sortBy=="titledesc"){m+=" (ascending)";k+=" (newest first)"}if(sortBy=="dateoldest"){m+=" (ascending)";k+=" (newest first)"}if(sortBy=="datenewest"){m+=" (ascending)";k+=" (oldest first)"}if(postFilter!=""){j="Click to view all"}h+="<table>";h+="<tr>";h+='<td class="header1">';h+='<a href="javascript:toggleTitleSort();" title="'+m+'">'+e+"</a>";h+="</td>";h+='<td class="header2">';h+='<a href="javascript:toggleDateSort();" title="'+k+'">'+d+"</a>";h+="</td>";h+='<td class="header3">';h+='<a href="javascript:allPosts();" title="'+j+'">'+c+"</a>";h+="</td>";h+='<td class="header4">';h+="Read all";h+="</td>";h+="</tr>";for(var g=0;g<postTitle.length;g++){if(a==""){h+='<tr><td class="entry1"><a href="'+postUrl[g]+'">'+postTitle[g]+'</a></td><td class="entry2">'+postDate[g]+'</td><td class="entry3">'+postLabels[g]+'</td><td class="entry4"><a href="'+postPublished[g]+'">Read</a></td></tr>';l++}else{z=postLabels[g].lastIndexOf(a);if(z!=-1){h+='<tr><td class="entry1"><a href="'+postUrl[g]+'">'+postTitle[g]+'</a></td><td class="entry2">'+postDate[g]+'</td><td class="entry3">'+postLabels[g]+'</td><td class="entry4"><a href="'+postPublished[g]+'">Read</a></td></tr>';l++}}}h+="</table>";if(l==postTitle.length){var f='<span class="toc-note">Show All '+postTitle.length+" Posts<br/></span>"}else{var f='<span class="toc-note">Show '+l+" posts by category '";f+=postFilter+"' the "+postTitle.length+" Total Posts<br/></span>"}var b=document.getElementById("toc");b.innerHTML=f+h}function displayToc2(){var a=0;var b=0;while(b<postTitle.length){temp1=postLabels[b];document.write("<p/>");document.write('<p class="labels"><a href="/search/label/'+temp1+'">'+temp1+"</a></p><ol>");firsti=a;do{document.write("<li>");document.write('<a class="post-titles" href="'+postUrl[a]+'">'+postTitle[a]+"</a>");if(postRecent[a]==true){document.write(' - <strong><span style="color: rgb(255, 0, 0);">New!</span></strong>')}document.write("</li>");a=a+1}while(postLabels[a]==temp1);b=a;document.write("</ol>");sortPosts2(firsti,a);if(b>postTitle.length){break}}}function toggleTitleSort(){if(sortBy=="titleasc"){sortBy="titledesc"}else{sortBy="titleasc"}sortPosts(sortBy);displayToc(postFilter)}function toggleDateSort(){if(sortBy=="datenewest"){sortBy="dateoldest"}else{sortBy="datenewest"}sortPosts(sortBy);displayToc(postFilter)}function showToc(){if(tocLoaded){displayToc(postFilter);var a=document.getElementById("toclink")}else{alert("Just wait... TOC is loading")}}function hideToc(){var a=document.getElementById("toc");a.innerHTML="";var b=document.getElementById("toclink");b.innerHTML='<a href="#" onclick="scroll(0,0); showToc(); Effect.toggle(\'toc-result\',\'blind\');">?? Display Table of Contents</a> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYF2XXwQV549hLFLzmPOJ46KsjsvgLznI0jONPiqjlz5oTGDpgKiggTSNwd_sfEASTFAiGIYYngXzZ3_arSPF9L8jCPYp28Tx7x3syqPLIssFVtkgA4jbqumGgjjc1YSuBwr_ocrYJOFlQ/s1600/new_icon.gif"/>'}function looptemp2(){for(var a=0;a<numberfeed;a++){document.write("<br>");document.write('Post Link : <a href="'+postUrl[a]+'">'+postTitle[a]+"</a><br>");document.write('Read all : <a href="'+postPublished[a]+'">'+postTitle[a]+"</a><br>");document.write("<br>")}};
//]]>
</script>
<script src="http://truebloggingtricks.blogspot.com/feeds/posts/default?max-results=9999&amp;alt=json-in-script&amp;callback=bloggersitemap"></script>
  • After pasting the above code click on publish button. 

 Customization

Replace truebloggingtricks.blogspot.com with your blog url. If you want to change font color and size categories replace your color with Red, and if you want to change colors of link then replace your color with the Green.

I hope you like this tutorial, if you have question or feels any difficulties regarding this tutorial feel free and post it in the comment box. Happy Blogging
Read more
Friday, August 22, 2014

How To Add Sliding Floating Facebook Like Box In Blogger

Blogger Widgets, Facebook Widgets
Today's post is about Facebook pop up like box. Now a days many webmasters and blogger used to increase their Facebook fan page traffic in short period of time. Facebook pop up like box gain a popularity day by day and it become well and well known widget in 2013. You might have observed that many bloggers and webmasters promoter their blog or website in different ways and styles. But many of them used this widget and it will surely increase their Facebook fan page traffic and also helps to increase blog traffic. This widget is used widely throughout the world by many bloggers and webmasters to increase their the Facebook fan page popularity. The widget Facebook pop up like box is made is created with the help JavaScript, HTML, CSS and JQuery.

Also Read: Facebook Like Box Plugin For Blogger Blog

How To Add Sliding Floating Facebook Like Box In Blogger ?

Follow the simple below steps.
  • Login to blogger dashboard.
  • Click on Layout >> Add a Gadget >> Html JavaScript Gadget.
  • Copy the below code and paste inside Html.
<script type="text/javascript">
//<!--
$(document).ready(function() {$(".w2bslikebox").hover(function() {$(this).stop().animate({right: "0"}, "medium");}, function() {$(this).stop().animate({right: "-250"}, "medium");}, 500);});
//-->
</script>
<style type="text/css">
.w2bslikebox{background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0vr2QJuhqoP1HETzR3UHuWRE9hOwrMqwDR5W1kh0XJwvxFYIlKmp0eslDimZgxKMippOKeXwITdC226vQKURCtlL78gVZxgaib3abMbJNEzGFW_AgFEizs_EwuNUDHalA4tKhgTQ_f09C/s150/w2b_facebookbadge.pn") no-repeat scroll left center transparent !important;display: block;float: right;height: 270px;padding: 0 5px 0 46px;width: 245px;z-index: 99999;position:fixed;right:-250px;top:20%;}
.w2bslikebox div{border:none;position:relative;display:block;}
.w2bslikebox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.w2bslikebox span a{color: #808080;text-decoration:none;}
.w2bslikebox span a:hover{text-decoration:underline;}
</style><div class="w2bslikebox" style=""><div>
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2F703586603041868&amp;width=245&amp;colorscheme=light&amp;show_faces=true&amp; connections=9&amp;stream=false&amp;header=false&amp;height=270" scrolling="no" frameborder="0" scrolling="no" style="border: medium none; overflow: hidden; height: 270px; width: 245px;background:#fff;"></iframe></div></div>
  • Click on save button.
  • Now again goto blogger dashboard.
  • Goto Template >> Edit Html.
  • Find </head> and paste the below code just before/above it.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js' type='text/javascript'/>
Now you done all and save your template, so visit to your blog you will see a Facebook pop up like box no the right side of your blog home page.

 Customization

There are two customization in this widget the first one is change 703586603041868 with your Facebook fan page username, and second one is if you want to see this widget of left side then simply change float: right to float: left and you done it.
Read more
Sunday, August 10, 2014

How To Add Back To Top Button In Blogger Blog

Back to top is the button once you clicked it navigate user to the top of the post or page. It is basically used for better scrolling, those users who don't to navigate using the scroll bars so they can use this button to reach to the top in less time. Those blogger who have to write long post or video blog where you post lots of image, so this button for your blog. Back to top button saves the time of your visitors, it also adds enjoyment factor to the blog as well. If you want to add back to top button to your blog you need to follow the steps carefully and then you will discover this button in your blogger blog.
Blogger Tricks, Blogger Widgets

How To Add Back To Top Button In Blogger Blog ?

Login to your blogger dashboard. Goto Layout click on Add a Gadget >> HTML/Java Script. Copy the following code and paste into it.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" >
/***********************************************
* Scroll To Top Control script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Modified by www.probloggertricks.com
* This notice MUST stay intact for legal use
* Visit Project Page at http://www.dynamicdrive.com for full source code
***********************************************/
var scrolltotop={
    //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
    //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
    setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
    controlHTML: '<img src="URL Goes Here" />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
    controlattrs: {offsetx:5, offsety:5}, //offset of control relative to right/ bottom of window corner
    anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
    state: {isvisible:false, shouldvisible:false},
    scrollup:function(){
        if (!this.cssfixedsupport) //if control is positioned using JavaScript
            this.$control.css({opacity:0}) //hide control immediately after clicking it
        var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
        if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
            dest=jQuery('#'+dest).offset().top
        else
            dest=0
        this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
    },
    keepfixed:function(){
        var $window=jQuery(window)
        var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
        var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
        this.$control.css({left:controlx+'px', top:controly+'px'})
    },
    togglecontrol:function(){
        var scrolltop=jQuery(window).scrollTop()
        if (!this.cssfixedsupport)
            this.keepfixed()
        this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
        if (this.state.shouldvisible && !this.state.isvisible){
            this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
            this.state.isvisible=true
        }
        else if (this.state.shouldvisible==false && this.state.isvisible){
            this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
            this.state.isvisible=false
        }
    },

    init:function(){
        jQuery(document).ready(function($){
            var mainobj=scrolltotop
            var iebrws=document.all
            mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
            mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
            mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
                .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
                .attr({title:'Scroll Back to Top'})
                .click(function(){mainobj.scrollup(); return false})
                .appendTo('body')
            if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
                mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
            mainobj.togglecontrol()
            $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
                mainobj.scrollup()
                return false
            })
            $(window).bind('scroll resize', function(e){
                mainobj.togglecontrol()
            })
        })
    }
}
scrolltotop.init()
</script>

Customization

Now you can add different images for your back to top button. Here below i have provided few, you can also add you own image too if you want. Just replace any image URL in the code, replace "URL Goes Here" with your selected URL and then click on save button.
Blogger Tricks, Blogger Widgets
http://3.bp.blogspot.com/Jhm_YShNMoc/UujZWfBmHyI/AAAAAAAACSw/RG0ZAtfbUA8/
s1600/back+to+top+Gray+arrow.png

Blogger Tricks, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRNMfSeYHfHS92w2hALMacO2r8zlJ2Nn9I20Jot31kVPclR8KnrJvISAnmwPKn3XHQJbgd1GQwhbw6zlBsLEww8pUWBKJPnNvIScJEAp7iZxcoEyLC6J-mubQf3TzDDbU-kCcuURQdn_Cm/s1600/back+to+top+paw+button.png

Blogger Tricks, Blogger Widgets
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-6IAsy90lv88xdKwnbVPbgMUPAk1ge8de9D8f0yKe2NkEnGrZP1OKY0_qJa7Eejrl78NWosjpOwSG1Qm76F8Hx7jyhH6ssq3LWWPn9ktvYHPKlJq3gclhJQ3GZaB0hyphenhyphenpgeE_uPLytm0RV/s1600/Back+to+top+Circle.png
 I hope you like this article if you face any problem please do comment in the below box.
Read more
Sunday, August 03, 2014

How To Make Your Blog Faster With Lazy Image Loading Script

Blogger Tricks, Blogger Widgets, Blogger Tricks
Are you hated when you websites or blog loads slowly ? Do you even come back to website when it loads slowly ? I think you don't there are many factors but images are the one of the most important factor that affect blog load time. So if you want to reduce your blog load time I have brought a lazy image loading plugin for bloggers. lazy load is a jQuery plugin which loads only images see-able in the visible part of web page. The images which are the initial visible region of the screen are loaded as the readers scrolls them. This plugin really decrease 50% of blog load time. So follow the below tutorial to add this plugin to your blog.

How To Install Lazy Image Loading Script ?

  • Login to blogger dashboard.
  • Goto template >> EDIT HTML.
  • By Pressing Ctrl+F find
</head>
  • Copy below whole code and pasted it after/above </head>
<script type='text/javascript'>//<![CDATA[
(function(a){a.fn.lazyload=function(b){var c={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(b){a.extend(c,b)}var d=this;if("scroll"==c.event){a(c.container).bind("scroll",function(b){var e=0;d.each(function(){if(a.abovethetop(this,c)||a.leftofbegin(this,c)){}else if(!a.belowthefold(this,c)&&!a.rightoffold(this,c)){a(this).trigger("appear")}else{if(e++>c.failurelimit){return false}}});var f=a.grep(d,function(a){return!a.loaded});d=a(f)})}this.each(function(){var b=this;if(undefined==a(b).attr("original")){a(b).attr("original",a(b).attr("src"))}if("scroll"!=c.event||undefined==a(b).attr("src")||c.placeholder==a(b).attr("src")||a.abovethetop(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.rightoffold(b,c)){if(c.placeholder){a(b).attr("src",c.placeholder)}else{a(b).removeAttr("src")}b.loaded=false}else{b.loaded=true}a(b).one("appear",function(){if(!this.loaded){a("<img />").bind("load",function(){a(b).hide().attr("src",a(b).attr("original"))[c.effect](c.effectspeed);b.loaded=true}).attr("src",a(b).attr("original"))}});if("scroll"!=c.event){a(b).bind(c.event,function(c){if(!b.loaded){a(b).trigger("appear")}})}});a(c.container).trigger(c.event);return this};a.belowthefold=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).height()+a(window).scrollTop()}else{var d=a(c.container).offset().top+a(c.container).height()}return d<=a(b).offset().top-c.threshold};a.rightoffold=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).width()+a(window).scrollLeft()}else{var d=a(c.container).offset().left+a(c.container).width()}return d<=a(b).offset().left-c.threshold};a.abovethetop=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).scrollTop()}else{var d=a(c.container).offset().top}return d>=a(b).offset().top+c.threshold+a(b).height()};a.leftofbegin=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).scrollLeft()}else{var d=a(c.container).offset().left}return d>=a(b).offset().left+c.threshold+a(b).width()};a.extend(a.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})})(jQuery);$(function(){$("img").lazyload({placeholder:"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPdYosTm_JibpijsXzBSJiiLREp8XHKQ9v241qxTr1NUIiFaRtJlP2OWrj2pOmAQbJnfjwg7NFKVApgZjdgNhKPuSL_pPEsgks_XrMl6c9Jl9AITAiI9CygN7dLXT4l9AE-bnh8oD_leU/s1600/truebloggertricks.blogspot.com.gif",effect:"fadeIn",threshold:"-50"})})//]]></script>
  •  Now press save button.
  • Goto your blog you will see images fade in lazy loading effect.
If you have any doubt regarding this post please comment and don't forget to share this post with your friends. HAPPY BLOGGING :)
Read more

Contact Form

Name

Email *

Message *

 

Blog Archive

Support Us

About Author

Hi Friends, my name is Rj HaSsan and i m 20 years old, certified SEO consultant, addicted blogger and the Entrepreneur of True Blogging Tricks who based out of the wonderful country name "Pakistan". ...Read More