Friday, June 17, 2011

How to increase E-mail subscribers on Blogger Blogs - Pop up Subscriber box

There is a big problem for Bloggers that if they put an E-Mail subscriber form on their blog page,they actually did not get sufficient subscribers for their blog. If you put something like this ' subscribe now and get a FREE ......' then you will have more subscribers to your blog ;). But in this post I am not going to tell you that kind of  trick. In some websites you can see POP UP subscriber form whenever user visit to that site and user must close that box to continue browsing.This tip is really working trick to increase their subscription lists.So why dont we try out this method. But the bad thing is most of these kind of popup forms provided by paid e-mail marketing systems like aweber etc. Here is the method to add pop up form to  your free hosted blogger blog too.Just three steps,Totally free,Fully customizable Pop up form. Try it out and install on your blog you will get easily more subscribers to your blogs. More subscribers means more traffic and more revenue from your online campaigns. 
First you can view a working DEMO of this form on my blog

Follow this easy three steps to install this on your blog too.

Go to blogger Dashboard > Design > Edit HTML and make sure to tick 'Expand Widget Templates' box. Before Edit your template Remember to Backup template in case of if something went wrong.

1. Find This Code - ]]></b:skin>
 Add this CSS Code right before(top) of  ]]></b:skin>
 #popupContactClose{
cursor: pointer;
text-decoration:none;
}
#backgroundPopup{
display:none;
position:fixed;
_position:absolute; /* hack for internet explorer 6*/
height:100%;
width:100%;
top:0;
left:0;
background:#000000;
border:1px solid #cecece;
z-index:1;
}
#popupContact{
display:none;
position:fixed;
_position:absolute; /* hack for internet explorer 6*/
height:384px;
width:408px;
background:#FFFFFF;
border:2px solid #cecece;
z-index:2;
padding:12px;
font-size:13px;
}
#popupContact h1{
text-align:left;
color:#6FA5FD;
font-size:22px;
font-weight:700;
border-bottom:1px dotted #D3D3D3;
padding-bottom:2px;
margin-bottom:20px;
}
#popupContactClose{
font-size:14px;
line-height:14px;
right:6px;
top:4px;
position:absolute;
color:#6fa5fd;
font-weight:700;
display:block;
}


 2. Then Find this </body> 
 Add this HTML code right before </body> 
<div id="popupContact">
         <a id="popupContactClose">x</a>
         <h1>Subscribe Now </h1>         
         <p id="contactArea">
            Feed Burner Form Code
         </p>
     </div>
     <div id="backgroundPopup"></div>

You can customize 'Subscribe Now' /Feed Burner Form Code as your like. I personally recommend to use Feedburner as your feed burner.


3.Finally same as previous steps find </head>
 and Add this jquery code just right before </head>
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js" type="text/javascript"></script>   
<script src="http://dinhquanghuy.110mb.com/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript">
     var popupStatus = 0;
//this code will load popup with jQuery magic!
function loadPopup(){
    //loads popup only if it is disabled
    if(popupStatus==0){
        $("#backgroundPopup").css({
            "opacity": "0.7"
        });
        $("#backgroundPopup").fadeIn("slow");
        $("#popupContact").fadeIn("slow");
        popupStatus = 1;
    }
}

//This code will disable popup when click on x!
function disablePopup(){
    //disables popup only if it is enabled
    if(popupStatus==1){
        $("#backgroundPopup").fadeOut("slow");
        $("#popupContact").fadeOut("slow");
        popupStatus = 0;
    }
}

//this code will center popup
function centerPopup(){
    //request data for centering
    var windowWidth = document.documentElement.clientWidth;
    var windowHeight = document.documentElement.clientHeight;
    var popupHeight = $("#popupContact").height();
    var popupWidth = $("#popupContact").width();
    //centering
    $("#popupContact").css({
        "position": "absolute",
        "top": windowHeight/2-popupHeight/2,
        "left": windowWidth/2-popupWidth/2
    });
    //only need force for IE6   
    $("#backgroundPopup").css({
        "height": windowHeight
    });
   
}
//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
    if ($.cookie("anewsletter") != 1) {   
        //centering with css
        centerPopup();
        //load popup
        loadPopup();   
    }       
    //CLOSING POPUP
    //Click the x event!
    $("#popupContactClose").click(function(){
        disablePopup();
        $.cookie("anewsletter", "1", { expires: 7 });
    });
    //Click out event!
    $("#backgroundPopup").click(function(){
        disablePopup();
        $.cookie("anewsletter", "1", { expires: 7 });
    });
    //Press Escape event!
    $(document).keypress(function(e){
        if(e.keyCode==27 && popupStatus==1){
            disablePopup();
            $.cookie("anewsletter", "1", { expires: 7 });
        }
    });
});
</script>

Then Click 'Preview' button and if you get any errors like 'XML well not formed' 500 etc you will have to Go here and encode this jquery code(step 3). after you encoded make sure to replace encoded code with step 3 non encoded code. Finally save your template and if you did nothing wrong you will have your own pop up subscription form in your blog next time you visit.

Note: This script automatically saves cookies and show popup form only for first visit.Then it will not be displayed for another 7 days for that visitor. You can adjust this time period by changing the value of  { expires: 7 .

Enjoy !



No comments:

Post a Comment