Wednesday, March 27, 2013


When Time to choose web hosting plan, we face many problems like which hosting plan I choose? which company offer more economical plan? which hosting server need to choose? In this post We are going to discus which web hosting server is better for hosting a website.

1. Server Access

Both Window and Linux server allow to access directly using FTP, but only Linux server can allow to set up telnet or ssh access. Some window server administrator allow to access using telnet.

2. Language

Window and Linux both server allow JavaScript and HTML pages. For server side script like PHP, ASP. Linux is best for PHP while window is best for ASP, actually Microsoft is build window as well as ASP language so synchronization between window server and ASP is better.

3. URL Rewriting / Redirection

For URL rewriting or redirecting, Linux server support .htaccess file while Window server does not support .htaccess file, window server support web.config file for rewriting or redirecting rules. 

Actually I am writing this post to share my experience with you. I have another website tutorialdata.com, it started one year ago, when it started, it created using all static pages, each time when want to add page, all other pages related to that category need to update, so that was very complicated and boring. That time I am not familiar with php, then I learn php and create dynamic website and use .htacces to create SEO friendly URL, but that time website is hosted on window server and server does not support .htaccess file. So I decided to switch Linux server and now its fine, very fine.

So If you want to use .htaccess with php Linux server is best and want to use ASP then you need to use web.config for URL rewrite for that Window server is best.

Monday, March 11, 2013

Monday, March 11, 2013

Structure of Blogger Template



This is first part of series Create Your Own Blogger Template. In this part we learn structure of blogger template. So lets begun.
Our ordinary website template is used HTML language to design, but blogger template uses XML language to design. Structure of blogger template is same as structure of HTML file, which contains header ans body section which are enclosed into HTML under the XML tag.

<?xml version="1.0" encoding="UTF-8" ?>
<html>
    <head>
    ....
    <b:skin>
      <![CDATA[
  
      ]]>
    </b:skin>
    ....
    </head>
    <body>
    ....
    </body>
</html>
Head section contains all the meta tag information, css and Blogger variable.
  • Meta Tag : Meta tag information used for search engine optimization purpose, which include all title, description, keyword, author etc. included.
  • CSS :  CSS is used for designing purpose, changing to font style, size, color will be handled in this section. All the CSS code must be written between
    <b:skin><![CDATA[   
    and
    ]]></b:skin>
    Our blogger template is in XML format and css format is not in XML format, may be interrupt the parsing since css code enclosed into CDATA. When blogger template execute,
     <b:skin>..</b:skin>
    is converted into
     <style type="text/css">..</style>
    and
     <![CDATA[...]]>
    converted into comments
  • Blogger variable : Blogger variable is used for creating interface between our template and Blogger Template Designer. See Details into How to make Custom Template into Blogger Designer Friendly Template.
Body Section contains an designing layout of blog, means 1 column ,2 column, 3 column, right sidebar, left sidebar, ... . Below showing some blogger layout design.



Blogger template layout contains mainly four parts,
  • Header
  • Body
  • Sidebar (left or right or both)
  • Footer
Layout of blogger template is build using an section, widget. So first we learn what is section and widget in blogger.


Section is element which indicate part of layout like header, content, sidebar and footer and within section you can add multiple widget like blog archive, blog roll, or event third party HTML/JavaScript code. You can customize look and feel of section using CSS wrapped around it.
Syntax of section look like this

<b:section id='header' class='header' maxwidgets='1' showaddelement='no' growth='vertical'>
</b:section>
Where
  1. id is required field, it is unique id provide to that section for identification, use alphanumeric for given id.
  2. class is optional field, may be given an common name like header, main, sidebar and footer. You can given different name as you want.
  3. maxwidgets is optional field, specify that how many maximum widget are inside that section.
  4. showaddelement is also optional field, which specify in layout management in blogger, there will be show an "Add a Gadget". yes or no value are specify for this attribute, yes is default value.
  5. growth is also optional field, which indicate that if gadget is add, then sequence of adding gadget is vertical or horizontal. vertical is default value.
Widget, as display in above pic, widget added into section, there may multiple widget inside on section. Extra code can not be added directly inside section, for that widget used, code added inside widget and widget added inside section. Syntax of widget as follow
<b:widget id="header" type='Header' locked="yes" > 
</b:widget>
Where
  1. id is unique and alphanumeric, Once assign id can't be changed, until delete or add new one.
  2. type is also required field, which one of the following,
    • BlogArchive
    • Blog
    • Feed
    • Header
    • HTML
    • SingleImage
    • LinkList
    • List
    • Logo
    • BlogProfile
    • Navbar
    • VideoBar
    • NewsBar
  3. locked specify that, you can move widget using page element tab in blogger. If yes then can't move, that widget locked. If no then you can move this widget. Default value is no.
  4. title is specify name of that widget.
  5. pageType specify that on which type of page this widget is display. It can be all, archive, main or item. all is default value.
  6. mobile is indicate this widget is display in mobile view or not.

Friday, February 8, 2013


Now days, it is very hard to find perfect domain name for your website, because of thousand of domain registered per day. There are many domain name suggestion and domain name generator tool available to generator random name for you website. This tools are help to find cool domain name for your website.

 

1)  NameTumbler.com

NameTumbler.com combines the search word with some grammatical words (like adjective, nouns), common words, etc. In result, it give a massive list of domain name.

 

 

2) DomainTools.com

DomainTools.com genrate domain name from combine multiple keyword with their similar, synonyms word.

 

 

3) DomainIt.com

In DomainIt.com you can add multiple keywords separated by space. If you want any keyword must add, then add + sign before that keyword. It give the facility to choose a level of topical word (current topic or popular words), basic (prefix or suffix), similar words, also choose maximum length of domain name.


 

4) Bust A Name

Bust A Name is simple but efficient domain name suggester tool, It combine suggesting word  with keyword and suggest some cool domain name.

 

 

5) w-global

w-global give a much better options for combining keywords. Here you can combine the keyword according to numbers or prefix and suffix. Also using some similar, synonyms, ect word or use condition to suggest domain names.


Sunday, February 3, 2013

Normally Window 8 PC Shutdown by moving mouse in bottom right corner of PC to bring up charm bar. Select the setting charm allow you to then select power option and finally shutdown.
If you point, it takes four steps to shutdown, rather than two steps in previous versions of window. Therefore creating simple shortcut might be useful.


On the start screen click on desktop tab. Then right click anywhere on desktop and select New > Shortcut. In the box type

shutdown -s -f -t 0


And click next. You can leave shortcut name as shutdown or you can change to something else like Power off PC.
Now you have shortcut,when it clicked will immediately shutdown Window 8 PC.
You can also change the shortcut icon to something better. Right click on shortcut and select properties. Select change icon and choose something more suitable.
Also you can right click on shortcut and select pin to start.
Then go to start screen to see shutdown tab is created. This will also allow you to shut down your pc in just one step.


Saturday, February 2, 2013

Saturday, February 02, 2013

Free PDF Convertor - PDFMate

PDFMate is a free PDF convertor have six powerful tool. Interface of PDFMate is very beautiful and user-friendly. PDFMate can convert PDF file into other format like word, EPUB, text, image, HTML, SWF formats. Conversion of file is very fast. You can download free version from http://www.pdfmate.com/download.html


You can add file for conversion using file browser or 'drag n drop' facility. You can drag and drop PDF file into queue for conversion. Also you can convert multiple file at the same time. The queue of file display name size of file, number of pages into file and status of  file. PDFMate allow to choose output location.
In advance option, you can choose the output PDF file format like A3, A4, A5.  Also you can set password for open or other permission for edit, copy or print.
It convert PDF file with excellent quality, maintain quality as original source. Converted file is well supported on Window, Unix and Mac. Also one fantastic option for convert PDF file into HTML for publish on web. PDFMate allow to shrink PDF file.
Free version of PDFMate allow to convert PDF file into EPUB, text, image, HTML and SWF formats.
Pro version allow convert PDF into all type above mention as well as in word format. Pro version also allow, convert specific page or rang of PDF file.

Like

  1. Excellent output quality.
  2. Fast conversion.
  3. Mutliple file conversion at same time.
  4. PDF file shrink.

Dislike

  1. No pause option.
  2. In HTML out file, element display using position property, some time element appease at wrong place.

Tuesday, January 29, 2013

Email Subscription of blog is way to get a regular updates of blog. In this way reader not missing any important updates from blogs. Feedburner allow to customize subscription box with font, color, logo, etc. Also it allow track and manage the subscriber in easy way. So in this post I am going to explain how to create an email subscription for blog using feedburner.
  1. Go to http://feedburner.google.com and logging with your Google account.
  2. Enter address of blog and click on next.


  3. If  your blog have more than one feeds (rss or atom) then select one and click next.


  4. Choose the title and address of blog feed and click on next.


  5. After create a feedburner, you need to enable email subscription for feed. For that go to Publicize > Email Subscription and click Activate.


  6. After activation select widget type and click Go!.


  7. Now you can see the email subscription box in blog.


In this way you can enable email subscription and add subscription box into your blog. In next post I am going to tell you how to customize an subscription box using CSS.
Subscribe for getting more updates.

Friday, January 25, 2013


What is Breadcrumb ?

Breadcrumb is navigation system, which trail from current page back to home page. Breadcrumb is mostly display above the title of post. Breadcrumb help to navigate visitors from related categories. For example,
Home >> Category >> Subcategory >>Post Name
In above trail Home is followed by Category and subcategory, which indicate that where are you? from Home to Post. Breadcrumb is actual display path of current page from homepage.

Advantages

  1. Breadcrumb navigation is user friendly navigation system, which allow visitor to jump back directly to categories or subcategories.
  2. For large website, breadcrumb help to show structure of website, which given an idea to visitor for where are you? and keep the visitor in right track.
  3. Breadcrumb does not take huge space from webpage, it place in single line.

SEO with Breadcrumb 

Breadcrumb is part of Google Rich Snippets. If you install an breadcrumb in blog or website, breadcrumb is display for your website URL in Google search result, as display below.


Which helps visitor jump directly to category or subcategory from search result page.

Installation

  1. Login to Blogger
  2. Go to  Template > Edit HTML
  3. Check Expand Widget Templates.
  4. Search for
    <b:includable id='post' var='post'>
  5. Copy below code and paste after above code
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
      <div class='breadcrumb' xmlns:v='http://rdf.data-vocabulary.org/#'>
      <ul class='bcrumb'>
       <span typeof='v:Breadcrumb'><li class='first'><a expr:href='data:blog.homepageUrl' property='v:title' rel='v:url'>Home</a></li></span>
        <b:loop values='data:posts' var='post'>
          <b:if cond='data:post.labels'>
            <b:loop values='data:post.labels' var='label'> 
            <li><span typeof='v:Breadcrumb'> <a expr:href='data:label.url' property='v:title' rel='v:url'>
              <data:label.name/>
              </a></span></li>
            </b:loop>
            <b:else/>
            <li>Unlabelled</li> </b:if>      
          <li class='last'><data:post.title/></li>
           </b:loop>
          </ul>
      </div>
    </b:if>
  6. Now find
     ]]></b:skin>
  7. And copy the one of the following CSS style from below Breadcrumb Style.
  8. Finally save template.

 Breadcrumb Style

Style 1
.breadcrumb {
    border-bottom:#06F 3px double;
    border-top:#06F 3px double;
    font-family:Verdana, Geneva, sans-serif;
    font-size:11px;
    margin-top:3px;
    margin-bottom:5px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline;
    padding:0px 5px;
}
.bcrumb li a {
    color:#000;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:underline;
}
.bcrumb li:after {
    padding-left:10px;
    content:'\00BB';
}
.bcrumb li.last:after {
    content:'';
}
Style 2
.breadcrumb {   
    font-family:Tahoma, Geneva, sans-serif;
    font-size:12px;
    margin-top:3px;
    margin-bottom:5px;
    margin-left:20px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline-block;
    padding:5px 20px 5px 10px;
    background-color:#f4f4f4;
    border-top-right-radius:15px;
    border-bottom-right-radius:15px;
    margin-left:-15px;
    border:#999 solid 1px;   
}
.bcrumb li:hover{
    background-color:#f9f9f9;
}
.bcrumb li a {
    color:#000;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:underline;
}
Style 3
.breadcrumb {   
    font-family:Tahoma, Geneva, sans-serif;
    font-size:12px;
    margin-top:3px;
    margin-bottom:5px;
    margin-left:20px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline-block;
    padding:5px 30px 5px 10px;
    background-color:#f4f4f4;   
    margin-left:-20px;
    border:#999 solid 1px;
    box-shadow:2px 2px 5px 5px #C9C9C9;
 -webkit-box-shadow:2px 2px 5px 5px #C9C9C9;
 -moz-box-shadow:2px 2px 5px 5px #C9C9C9;

  /* For IE<9 */ 
  filter:
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=0,strength=5),
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=45,strength=2),
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=90,strength=5),
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=135,strength=5),
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=180,strength=5),
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=225,strength=5),
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=270,strength=5),
  progid:DXImageTransform.Microsoft.Shadow(color=#C9C9C9,direction=315,strength=2);
}
.bcrumb li:hover{
    background-color:#f9f9f9;
}
.bcrumb li a {
    color:#000;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:underline;
}
Style 4
.breadcrumb {
    border-bottom:#1d658d 3px solid;   
    font-family:Verdana, Geneva, sans-serif;
    font-size:11px;
    margin-top:3px;
    margin-bottom:5px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline;
    padding:0px 5px;
}
.bcrumb li a {
    color:#000;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:underline;
}
.bcrumb li:after {
    padding-left:10px;
    content:'\00BB';
}
.bcrumb li.last:after {
    content:'';
}
Style 5
.breadcrumb {   
    font-family:Tahoma, Geneva, sans-serif;
    font-size:12px;
    margin-top:3px;
    margin-bottom:5px;
    margin-left:20px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline-block;
    padding:5px 20px 5px 10px;
    background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGp-RkxyzmFztZflagBEl2XbbsLA0LYdFeXmmpFbEptw0LO7GxhHYduLj3wUtn9OlPAlBJ00jNcH9zHnBYlpKAlA-S8rybKnDxEBlIJ73doCm8v-7oLc3DqTJfdeu2JReOsI7BzJSzDUw/h120/breadcrumb-separator.gif);
    background-position:right center;
    background-repeat:no-repeat;
   
}
.bcrumb li:hover{
    background-color:#f9f9f9;
}
.bcrumb li a {
    color:#06F;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:underline;
}

.bcrumb li.last{
    background-image:none;
}
Style 6
.breadcrumb {
    font-family:Tahoma, Geneva, sans-serif;
    font-size:12px;
    margin-top:3px;
    margin-bottom:5px;
    margin-left:20px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline-block;
    padding:4px;
    border:#666 solid 1px;
    margin-left:-5px;
}
.bcrumb li.last {
    padding:6px;
    font-weight:bold;
    -moz-box-shadow: 0px 3px 3px #a4a4a4;
    -webkit-box-shadow: 0px 3px 3px #a4a4a4;
    box-shadow-bottom: 5px #000;
    /* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=180, Color='#d4d4d4')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=180, Color='#d4d4d4');
}
.bcrumb li:hover {
    background-color:#f9f9f9;
}
.bcrumb li a {
    color:#06F;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:underline;
}
.bcrumb li.last {
    background-image:none;
}
Style 7
.breadcrumb {
    font-family:Tahoma, Geneva, sans-serif;
    font-size:12px;
    margin-top:3px;
    margin-bottom:5px;
    margin-left:20px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline-block;
    padding:5px;
    border:#666 solid 1px;
    margin-left:-3px;
    -moz-box-shadow: 0px 3px 3px #a4a4a4;
    -webkit-box-shadow: 0px 3px 3px #a4a4a4;
    box-shadow-bottom: 5px #000;
    /* For IE 8 */
   -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=180, Color='#d4d4d4')";
   /* For IE 5.5 - 7 */
   filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=180, Color='#d4d4d4');
}
.bcrumb li:nth-child(1){
    padding:5px;
}
.bcrumb li:nth-child(2){
    padding:6px 5px;
}
.bcrumb li:nth-child(3){
    padding:7px 5px;
}
.bcrumb li:nth-child(4){
    padding:8px 5px;
}
.bcrumb li:nth-child(5){
    padding:9px 5px;
}
.bcrumb li:nth-child(6){
    padding:10px 5px;
}
.bcrumb li:nth-child(7){
    padding:11px 5px;
}
.bcrumb li:nth-child(8){
    padding:12px 5px;
}
.bcrumb li:hover {
    background-color:#f9f9f9;
}
.bcrumb li a {
    color:#06F;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:underline;
}
.bcrumb li.last {
    background-image:none;
}
Style 8
.breadcrumb {
    font-family:Tahoma, Geneva, sans-serif;
    font-size:12px;
    margin-top:3px;
    margin-bottom:5px;
    margin-left:20px;
}
.bcrumb {
    padding:5px;
}
.bcrumb li {
    display:inline-block;
    padding:5px 8px;
    margin-left:-1px;
    background: #fceabb; /* Old browsers */
    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZjZWFiYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjM3JSIgc3RvcC1jb2xvcj0iI2ZjY2Q0ZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjcwJSIgc3RvcC1jb2xvcj0iI2Y4YjUwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmYmRmOTMiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, #fceabb 0%, #fccd4d 37%, #f8b500 70%, #fbdf93 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fceabb), color-stop(37%, #fccd4d), color-stop(70%, #f8b500), color-stop(100%, #fbdf93)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #fceabb 0%, #fccd4d 37%, #f8b500 70%, #fbdf93 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #fceabb 0%, #fccd4d 37%, #f8b500 70%, #fbdf93 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #fceabb 0%, #fccd4d 37%, #f8b500 70%, #fbdf93 100%); /* IE10+ */
    background: linear-gradient(to bottom, #fceabb 0%, #fccd4d 37%, #f8b500 70%, #fbdf93 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#fbdf93', GradientType=0 ); /* IE6-8 */
    -moz-box-shadow: 0px 3px 3px #a4a4a4;
    -webkit-box-shadow: 0px 3px 3px #a4a4a4;
    box-shadow-bottom: 5px #000;
    /* For IE 8 */
   -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=180, Color='#d4d4d4')";
   /* For IE 5.5 - 7 */
   filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=180, Color='#d4d4d4');
    border-radius:3px;
}
.bcrumb li:hover {
    background: #f6f8f9; /* Old browsers */
    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y2ZjhmOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjM4JSIgc3RvcC1jb2xvcj0iI2U1ZWJlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjYxJSIgc3RvcC1jb2xvcj0iI2Q3ZGVlMyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmNWY3ZjkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, #f6f8f9 0%, #e5ebee 38%, #d7dee3 61%, #f5f7f9 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6f8f9), color-stop(38%, #e5ebee), color-stop(61%, #d7dee3), color-stop(100%, #f5f7f9)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #f6f8f9 0%, #e5ebee 38%, #d7dee3 61%, #f5f7f9 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #f6f8f9 0%, #e5ebee 38%, #d7dee3 61%, #f5f7f9 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #f6f8f9 0%, #e5ebee 38%, #d7dee3 61%, #f5f7f9 100%); /* IE10+ */
    background: linear-gradient(to bottom, #f6f8f9 0%, #e5ebee 38%, #d7dee3 61%, #f5f7f9 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f8f9', endColorstr='#f5f7f9', GradientType=0 ); /* IE6-8 */
}
.bcrumb li a {
    color:#000;
    text-decoration:none;
}
.bcrumb li a:hover {
    text-decoration:none;
}

If you like this style please subscribe for latest update. Happy blogging!!!

Thursday, January 24, 2013

Thursday, January 24, 2013

Load Disqus Comment When Visitors Want

Disqus is a popular comment management system for blog or website. But it take time to load and increase page load time of website. In this post I'm telling you how to load disqus comment only when visitor want to add or view comment. Initially display only button or link, labeled with  Add a comment or Post a comment, when someone click on that link/button then disqus comment will start to load.

Why ?

  1. This will decrease the page load time, and speed up your website or blog.
  2. Decrease the comment spamming.
Following code for loading disqus comment box when click on button.


<div id='disqus_thread'/>
<div id='disqus_loader' style='text-align: center'>
  <button class='disqusbutton' onclick='load_disqus()'>Add comment</button>
  <script>
    function load_disqus()
    {
      var dsq = document.createElement(&#39;script&#39;); dsq.type = &#39;text/javascript&#39;; dsq.async = true;
      dsq.src = &quot;http://YOUR-DISQUS-SHORT-NAME.disqus.com/embed.js&quot;;
      (document.getElementsByTagName(&#39;head&#39;)[0] || document.getElementsByTagName(&#39;body&#39;)[0]).appendChild(dsq);
      var ldr = document.getElementById(&#39;disqus_loader&#39;);
      ldr.parentNode.removeChild(ldr);
    }
  </script>
</div>
YOUR-DISQUS-SHORT-NAME replace with your disqus short name.

Use CSS for customizing button style. 


.disqusbutton{
    font-family:Verdana, Geneva, sans-serif;
    font-size:14px;
    text-transform:capitalize;
    background-color:#06C;
    color:#f9f9f9;
    text-outline:#000;
    font-weight:900;
    padding:7px;
    border-radius:8px;
    cursor:pointer;
}
back to top