Showing posts with label Widget. Show all posts
Showing posts with label Widget. Show all posts

Monday, February 23, 2015

Today, we will learn a simple and useful tutorial on how to add an attractive and fast-loading Disqus Recent Comments widget on a Blogger blog. Widgets like these let readers know about the conversations going on at your blog, and if you're fairly active, it adds up to a good impression. This widget in question is well-scripted and the JavaScript is hosted at Disqus so as to reduce the load time on your blog. So lets learn how to add it to blogger.

Adding Disqus Recent Comments Widget to Blogger.

You can add this widget code inside any text/html block inside your blog.
  • Go to Blogger >> Layout
  • Click on Add a Gadget
  • Choose the HTML/JavaScript widget
  • Now add it anywhere you like on your blog
Now copy and paste the following code inside the HTML/JS widget.

<div id="RecentComments" class="dsq-widget">
<script type="text/javascript" src="http://mybloggerworld.disqus.com/recent_comments_widget.js?num_items=5&hide_mods=0&hide_avatars=0&avatar_size=32&excerpt_length=50"></script>
</div>
The code above contains a URL. You need to change the text mybloggerworld with your own domain name (yourdomain.disqus.com).

Configuration.

After the ? in the URL, you can see a bunch of parameters. These are used to customize the functionality of the widget. Here is a brief description for each of them.
num_items - Number of comments to show in the widget
hide_mods - Hide moderators' comments (1 for hidden, 0 for disabled)
hide_avatars - Hide display images (1 for hidden, 0 for shown)
avatar_size - Avatar size in pixels (32 by default)
excerpt_length - Character-length of the excerpt (1000 by default)

Friday, January 2, 2015

Table Of Contents(TOC) is a very important feature which assembles your all blog posts under categories you earlier specified . It is very helpful in search engine optimisation . It helps visitors to navigate through the posts easily as it saves a lot of time for them.

You can view live demo here.

How To Create ?


We have to follow some simple steps :




  • Login to your Blogger account .

  • Click on Pages.

  • Create a new page and select HTML.

  • Paste the code given below.


<style type="text/css">
#toc{
width:99%;
margin:5px auto;
border:1px solid #2D96DF;
-webkit-box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2);
-moz-box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2);
box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2);
}
.labl{
color:#FF5F00;
font-weight:bold;
margin:0 -5px;
padding:1px 0 2px 11px;
background:-moz-linear-gradient(right,#C2EAFE 0%,#055A85 40%);
background:-webkit-gradient(linear,left 10,right 80,color-stop(0.20,#055A85),color-stop(1,#C2EAFE));
border:1px solid #2D96DF;
border-radius:4px;-moz-border-radius:4px;
-webkit-border-radius:4px;box-shadow:3px 3px 1px #bbb;
-moz-box-shadow:3px 3px 1px #bbb;-webkit-box-shadow:3px 3px 1px #bbb;display:block;
}
.labl a{
color:#fff;
}
.labl:first-letter{t
ext-transform:uppercase;
}
.new{
color:#FF5F00;
font-weight:bold;
font-style:italic;
}
.postname{
font-weight:normal;
background:-moz-linear-gradient(right,#C2EAFE 0%,#fff 40%);
background:-webkit-gradient(linear,left 80,right 10,color-stop(0.60,#fff),color-stop(1,#C2EAFE));
}
.postname li{
border-bottom: #ddd 1px dotted;
margin-right:5px
}
</style>
<div id="toc"><script type="text/javascript" src="http://mybloggerworld.net/tools/MyTOC.js"></script>
<script src="/feeds/posts/default?max-results=9999&amp;alt=json-in-script&amp;callback=loadtoc">
</script></div>


  •  It's done.


[callout bg="#f3b8b8" color="#a65959" border="#f3b8b8"]You can also change colors by editing css.[/callout]

 

Wednesday, December 31, 2014

There are a lot of Famous Bloggers keep sharing their awesome Blogger tricks or widgets from time to time. Some advanced tricks involve of template modification, while beginner or intermediate tricks need only "add new gadget" in the Blogger layout console. However, even the "add new gadget" may difficult for new Bloggers to follow. Therefore, to help new Blogger for installation of new widget we will then create a "Add to Blogger" button for simplify the installation process. And this button generator, is used to aid those widget sharer to create that "Add to Blogger" button.

All you need to do is to fill up the "Widget Title", "Blog Url", "Logo Url", & your widget content in html/Javascript. Once the code is created, it's ready to be published in your Blogger post. Enjoy!





Thursday, October 30, 2014


Finally the plugin of Facebook Recommended Bar is on your blogger. In order to engage readers more and let your visitors spend more time on your website Facebook has finally launched the "Recommendations Bar" in beta version. It's designed to display additional recommended articles right after readers have finished reading an article or spent some time on your blog. Only those articles are displayed that are previously liked or shared on Facebook. The number of likes are displayed under each article along with page title and a thumbnail. It also contains a like button and previously contained an Add to Timeline button that has been removed now. Unlike Facebook Recommendations box which offered related stories but with lack of user friendly interface and engagement, Facebook bar will force readers to stay longer on your site leading to increased pageviews, page impressions and thus traffic. It's a smart alternative to Recommended Post Slides widgets that we previously published.

Install it to Blogger

It can be installed easily on both BlogSpot blogs and Wordpress but with a little patience. We have kept the installation extremely easy and ignored unnecessary steps like installation ofOpen Graph Meta Tags. We would install necessary codes to keep the structure clean and make the widget work just fine. The code we are sharing is optimized and will display your blog titles and featured images correctly and with a lot of control attributes.

Creating Facebook Appication

First of all you have to create a Facebook Application. Here are the instruction that how you can create your facebook application. Click here to create a Facebook App.


Adding Recommended to your Blogger

Follow these steps to add the recommended bar to your blogger.

  • Go to Blogger > Template
  • Click on Edit HTML
  • Now Search for

<html
and replace it with


<html xmlns:fb='http://ogp.me/ns/fb#'

  • Now Search for <body> tag. and paste the following code just below it. 

<div id='fb-root'/>
<script>
//Facebook Recommendation bar by www.mybloggerworld.net
//<![CDATA[
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=***************";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
//]]> 
</script> 
<b:if cond='data:blog.pageType == &quot;item&quot;'><b:if cond='data:blog.pageType != &quot;static_page&quot;'><div style='z-index:999999; position:absolute;'> 
<fb:recommendations-bar action='like' max_age='0'num_recommendations='3' read_time='10' side='right'site='http://www.mybloggerworld.net' trigger='40%'/></div> 
</b:if></b:if>
Now replace http://www.mybloggerworld.net with your blog url
By default it will show on right side if you want to change its site replace right

  • Now save the template and now you will see it on your blog.

Wednesday, October 29, 2014


Hello Friends toady I will show you that how you can add facebook static jquery hover likebox on your blogger or website.

Facebook Static Jquery Likebox with Hover

First of all go to Blogger Dashboard > Layout > Click on add widget. Then select HTML/Javascript. Now paste the following below code on it.

<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<style type="text/css">
.mbwfbplikebox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.mbwfbplikebox span a{color: #808080;text-decoration:none;}
.mbwfbplikebox span a:hover{text-decoration:underline;}
/*<![CDATA[*/
#fbplikebox{display: block;padding: 0;z-index: 99999;position: fixed;}
.fbplbadge {background-color:#3B5998;display: block;height: 150px;top: 50%;margin-top: -75px;position: absolute;right: -47px;width: 47px;background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoZjnzhBS5NRkknZHKPbTQn9MMExVvcNEEMhAhcEsKf9ACzaxBgyu8UngoT5hQEaVMvalfsKqsA5YHfxepT2GF6MSk9WCOgqIBxjOF9ivgWmuHQbuNUdc6ma7MrPzI72-wWLyFV0W-PUh0/s1600/mbw_vertical-left.png");background-repeat: no-repeat;overflow: hidden;-webkit-border-top-right-radius: 8px;-webkit-border-bottom-right-radius: 8px;-moz-border-radius-topright: 8px;-moz-border-radius-bottomright: 8px;border-top-right-radius: 8px;border-bottom-right-radius: 8px;}
/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/
    (function(mbw){
        mbw(document).ready(function(){
            var $dur = "medium"; // Duration of Animation
            mbw("#fbplikebox").css({left: -250, "top" : 100 })
            mbw("#fbplikebox").hover(function () {
                mbw(this).stop().animate({
                    left: 0
                }, $dur);
            }, function () {
                mbw(this).stop().animate({
                    left: -250
                }, $dur);
            });
            mbw("#fbplikebox").show();
        });
    })(jQuery);
/*]]>*/
</script>
<div class="mbwfbplikebox">
<div id="fbplikebox" style="display:none;">
    <div class="fbplbadge"></div> 
    <iframe src="http://www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/mybloggerworlds&amp;width=250&amp;height=250&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23C4C4C4&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;background:#F5EBF5;" allowTransparency="true"></iframe><span>
By <a href="http://www.mybloggeworld.net/">My Blogger World</a> / <a href="http://www.mybloggerworld.net/2014/10/facebook-static-jquery-likebox-with.html">+Get This!</a>
</span>
</div>
</div>
Now replace  https://www.facebook.com/mybloggerworlds with your facebook fan page url. After Changing these thing you are done.


Note : If you want to change the color of likebox replace this color code F5EBF5 with the color you want

Tuesday, September 23, 2014


Facebook Jquery Popup

How to add Facebook Jquery Pop Like-Box Timer Widget to Blogger

1. Go to Blogger > Layout
2. Click | Add a Widget |
3. Select . HTML/JavaScript
4. Add the following below code on Widget.
<style type='text/css'>
#BLOGGERWORLDpopup{
position: fixed;
top:100px;
z-index:9999;
display:none;
padding:0px;
right:600px;
border:10px solid rgba(82, 82, 82, 0.7);
-webkit-background-clip: padding-box; /* for Safari */
background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
-webkit-border-radius:8px 8px 8px 8px;
-moz-border-radius:8px 8px 8px 8px;
border-radius:4px 4px 4px 4px;
width:400px;
height:400px;
overflow:hidden;
}
#BLOGGERWORLDpopup span{
font-size:20px !important;
font-weight:bold !important;
}
#BLOGGERWORLDpopup h1{
background:#6d84b4 url() 98% no-repeat;
border:1px solid #3b5998 !important;
color:#FFFFFF !important;
font-size:20px !important;
font-weight:700 !important;
padding:5px !important;
margin:0 !important;
font-family:"lucida grande",tahoma,verdana,arial,sans-serif !important;
overflow:hidden !important;
}
.htmlarea{
font-size:12px !important;
font-weight:normal !important;
height:265px !important;
padding:1px !important;
background:#fff !important;
border-bottom:2px solid #ddd;
overflow:hidden !important;
}
#bwfooter{
text-align:left;
background:#F2F2F2 !important;
height:56px !important;
padding:10px 10px 10px 10px !important;
overflow:hidden !important;
}
#bwclose{
float:right;
background-color:#eee !important;
border:1px solid #ccc !important;
color:#111 !important;
font-weight:bold !important;
padding:5px 8px 5px 8px !important;
text-decoration:none !important;
display:inline-block !important;
font-family:"lucida grande",tahoma,verdana,arial,sans-serif !important;
outline:none !important;
position:relative !important;
font-size:18px !important;
margin:1px !important;
}
#bwclose:active{
top:1px;
left:1px;
}
.grabthis{
bottom:80px;
font:8px "lucida grande",tahoma,verdana,arial,sans-serif;
position:absolute;
right:6px;
text-align:right;
z-index: 99999;
}
.grabthis a{
color: #000;
text-decoration:none;
}
.grabthis a:hover{
text-decoration:underline;
}
</style>
<script type='text/javascript'>
jQuery(document).ready(function() {
function BLOGGERWORLD_ppopup()  {var sec = 10
var timer = setInterval(function() {
   $("#bwfooter span").text(sec--);
   if (sec == 0) {
      $("#BLOGGERWORLDpopup").fadeOut("slow");
      clearInterval(timer);
   }
},1000);
  var bwwh = jQuery(window).height();
  var bwpph = jQuery("#BLOGGERWORLDpopup").height();
  var bwfromTop = jQuery(window).scrollTop()+50;
 jQuery("#BLOGGERWORLDpopup").css({"top":bwfromTop});}
jQuery(window).fadeIn(BLOGGERWORLD_ppopup)
.resize(BLOGGERWORLD_ppopup)
 //alert(jQuery.cookie('sreqshown'));
 //var bwww = jQuery(window).width();
 //var bwppw = jQuery("#BLOGGERWORLDpopup").width();
 //var bwleftm = (bwww-bwppw)/2;
   var bwleftm = 500;
 //var bwwh = jQuery(window).height();
 //var bwpph = jQuery("#BLOGGERWORLDpopup").height();
 //var bwfromTop = (jQuery(window).scrollTop()+bwwh-bwpph) / 2;
 jQuery("#BLOGGERWORLDpopup").animate({opacity: "1", left: "0" , left:  bwleftm}, 0).show();
     jQuery("#bwclose").click(function() {
jQuery("#BLOGGERWORLDpopup").animate({opacity: "0", left: "-5000000"}, 1000).show();});});
</script>
<div id="BLOGGERWORLDpopup">
<h1>Join us on Facebook</h1>
<div class="htmlarea">
<iframe src="//www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/pages/Blogger-World/261451374043830&width=400&colorscheme=light&show_faces=true&border_color=%23fff&stream=false&header=false&height=250" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:250px;" allowtransparency="true"></iframe>
<div class="grabthis">
By <a href="https://bloggerwrld.blogspot.com" target="_blank">Blogger World</a> / <a href="http://bloggerwrld.blogspot.com/2014/09/facebook-jquery-pop-like-box-timer.html" target="_blank">+Get This!</a>
</div>
</div>
<div id="bwfooter">Please wait..<span>10</span> Seconds<a href="#" id="bwclose" onclick="return false;">Close</a>
</div>
</div>
<!-- End popup -->

5. Replace Facebook url https://www.facebook.com/pages/Blogger-World/261451374043830 with your Fan Page url
6. We have add default 10 Sec to Display. If u want to change Display Seconds then Replace 10 with Seconds you want


Monday, September 15, 2014



How to Use it

1. Fill the below form
2. Choose your Label
3. Your Blog URL
4. Click Generate 
5. Then Add this Widget to your Blog

Wednesday, September 10, 2014


Hello Friends, Today i will show you that how you can Stick your Widget in your Blog. If you want to do. Follow the following steps below












How To Create A Sticky Widget 

1. Go to Blogger > Layout 
2. Click Add Widget and then save
3. Now Go to Template > Edit HTML
4. Get the ID of your widget which you want to stick
5. Search for </body> tag
6. After Search, Paste the folloung below code above </body>

<script>
//<![CDATA[
bs_makeSticky("Your Widget ID"); // enter your widget ID here
function bs_makeSticky(elem) {
    var bs_sticky = document.getElementById(elem);
    var scrollee = document.createElement("div");
    bs_sticky.parentNode.insertBefore(scrollee, bs_sticky);
    var width = bs_sticky.offsetWidth;
    var iniClass = bs_sticky.className + ' bs_sticky';
    window.addEventListener('scroll', bs_sticking, false);
    function bs_sticking() {
        var rect = scrollee.getBoundingClientRect();
        if (rect.top < 0) {
            bs_sticky.className = iniClass + ' bs_sticking';
            bs_sticky.style.width = width + "px";
        } else {
            bs_sticky.className = iniClass;
        }
    }
}
//]]>
</script>

<style>
.bs_sticking {background:#f8f8f8 !important; position:fixed; top:0; z-index:9999; box-shadow:0px 10px 4px -5px rgba(0,0,0,0.3);}
</style> 
Find “YOUR_WIDGET_ID”. For example if the widget ID is HTML9, then code would look as bs_makeSticky(“HTML9″); 
6. Now Finally, Replace "Your Widget ID"   with your Widget ID
7. Click Save Template & View Your Blog

Important: You Can Change Your Widget Background Also f8f8f8  change this code to your color code


Sunday, August 31, 2014

How To Show And Hide Blogger Widgets On Certain Pages


Today I will show you that How you can hide or show blogger widget on pages you want.



How To Control Blogger’s Official Widgets


This is the Procedure applied to Blogger’s official widgets like About Me, Archives, Poll etc. For controlling that widgets do this,
  1. Go To Blogger >> Design (or) Template(for new interface) >> Edit HTML
  2. Backup your template
  3. Check the Expand Widgets Templates Box
  4. Search for the title of the widget you want to control
  5. The code for the widget will look something similar to this one,
<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>
WIDGET CODE GOES HERE
</b:includable> </b:widget>

On finding the title in place of WIDGET-TITLE-HERE you will find two similar codes like those I have shown in blue. You just need to add the Controlling codes in the following manner. For example if you wish to show a widget at Homepage only then do this,

<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
WIDGET CODE GOES HERE
</b:if>
</b:includable> </b:widget>


where "WIDGET CODE GOES HERE" is the code of the widget you want to show or hide. 

How To Show Widgets Only On Homepage 

<b:if cond='data:blog.url == data:blog.homepageUrl'>

    WIDGET CODE WILL GO HERE

    </b:if>


How To Hide Widgets On Homepage 

<b:if cond='data:blog.pageType == "item"'>

    WIDGET CODE WILL GO HERE

    </b:if>


How To Show Widgets Only On Static Pages

   <b:if cond='data:blog.pageType == "static_page"'>

    WIDGET CODE WILL GO HERE

    </b:if>


How To Hide Widgets On Static Pages

   <b:if cond='data:blog.pageType != "static_page"'>

    WIDGET CODE WILL GO HERE

    </b:if>


How To Show Widgets On Selected Post Only

    <b:if cond='data:blog.url == "URL OF Selected Post"'>

    WIDGET CODE WILL GO HERE

    </b:if>


How To Hide Widgets On Selected Post

    <b:if cond='data:blog.url != "URL OF Selected Post"'>

    WIDGET CODE WILL GO HERE

    </b:if>


How To Display Widgets On Archive Pages

    <b:if cond='data:blog.pageType == &quot;archive&quot;'>

    WIDGET CODE WILL GO HERE

    </b:if>

How To Display Widget On Post Pages And Homepage

    <b:if cond='data:blog.pageType != &quot;static_page&quot;'>

    WIDGET CODE WILL GO HERE

    </b:if>

How To Display Widget On Homepage And Static Pages

    <b:if cond='data:blog.pageType != &quot;item&quot;'>

    WIDGET CODE WILL GO HERE

    </b:if>

How To Display Widgets On Posts And Static Pages

   <b:if cond='data:blog.pageType != &quot;index&quot;'>

    WIDGET CODE WILL GO HERE

    </b:if>