Thursday, 21 February 2013

CSS Lava Lamp Menu For Blogger


Yesterday, I found this excellent CSS menu, which bases on "Lava Lamp Menu" concept. Also, this menu is available for download or demo at this link. In September, we shared a jquey based Lava Lamp menu, which was based on jQuery.

This menu is available in three different styles, you can check a demo at this link. This menu is created by Paulina Hetman from Pepsized. This menu is coded so beautiful, and basic mark-up of all three menus are same.

First two menus are pure CSS based and third menu uses a heart and arrow image, which is adorable (Just kidding :p).

Add This Menu To Blogger:

  • Go To Blogger > Template > Edit HTML > Click on "Proceed."
  • Search for ]]></b:skin> and post following css just above it:

/* --- for all three examples ----*/

.nav {
  text-align: center;
  overflow: hidden;
  margin: 2em auto;
  width: 480px;
  position: relative; }
  .nav a {
    display: block;
    position: relative;
        float: left;
        padding: 1em 0 2em;
    width: 25%;
        text-decoration: none;
      color: #393939;
      -webkit-transition: .7s;
      -moz-transition: .7s;
      -o-transition: .7s;
      -ms-transition: .7s;
      transition: .7s; }
      .nav a:hover {
        color: #c6342e; }

.effect {
    position: absolute;
  left: -12.5%;
  -webkit-transition: 0.7s ease-in-out;
  -moz-transition: 0.7s ease-in-out;
  -o-transition: 0.7s ease-in-out;
  -ms-transition: 0.7s ease-in-out;
  transition: 0.7s ease-in-out; }

    .nav a:nth-child(1):hover ~ .effect {
      left: 12.5%; }
    .nav a:nth-child(2):hover ~ .effect {
      left: 37.5%; }
    .nav a:nth-child(3):hover ~ .effect {
      left: 62.5%; }
    .nav a:nth-child(4):hover ~ .effect {
      left: 87.5%; }

/* ----- line example -----*/

.ph-line-nav .effect {
  width: 90px;
  height: 2px;
  bottom: 36px;
  background: #c6342e;
  box-shadow: 0 1px 0 white;
  margin-left:-45px;
}

/* ----- dot example -----*/

.ph-dot-nav:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 1px;
  background: #c6342e;
  bottom: 40px; }
.ph-dot-nav a:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  bottom: 38px;
  left: 50%;
  margin-left: -2px;
  background: #c6342e;
  border-radius: 100%; }
.ph-dot-nav .effect {
  width: 10px;
  height: 10px;
  bottom: 36px;
    margin-left: -5px;
  background: #c6342e;
  border-radius: 100%; }

/* ----- heart example -----*/

.ph-heart-nav .effect, .ph-heart-nav a:after, .ph-heart-nav a:before {
  background: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgypDTU3dQfrADAzdL1jBL-uasgRdoGOi8eoCaWdzAADif6IQ-eV4TxdQkUrE-xWutf4PC_xhsvK0WJBM2iyhTF9qCc1TisIceohG_um9HLBf8vFFoJGvaXH0_Wv-gKHEBIFreWGSlEncg/s1600/heart.png') no-repeat; }
.ph-heart-nav .effect {
  position: absolute;
  bottom: 26px;
  background-position: 0 0;
  height: 8px;
  width: 62px;
  margin-left:-31px; }

.ph-heart-nav a:before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 20px;
  background-position: -62px 0;
  height: 20px;
  width: 11px;
  margin-left: -11px; }

.ph-heart-nav a:after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 1;
  background-position: -73px 0;
  height: 20px;
  width: 11px; }

  • Save Template....All done with template editing. Now, it's time to edit you layout.
  • Go To Blogger > Layout > Add A Widget > HTML/JavaScript
  • Paste any of the following code:

First Style:

    <div class="ph-line-nav nav">
        <a href="#">Home</a>
        <a href="#">About</a>
        <a href="#">Gallery</a>
        <a href="#">Contact</a>
        <div class="effect"></div>
    </div>

Second Style:

    <div class="ph-dot-nav nav">
        <a href="#">Home</a>
        <a href="#">About</a>
        <a href="#">Gallery</a>
        <a href="#">Contact</a>
        <div class="effect"></div>
    </div>

Third Style:

    <div class="ph-heart-nav nav">
        <a href="#">Home</a>
        <a href="#">About</a>
        <a href="#">Gallery</a>
        <a href="#">Contact</a>
        <div class="effect"></div>
    </div>

  • Save your widget. Now visit your blog and see the css magic.... :)

Don't forget to leave your valuable comments.....:)

Wednesday, 20 February 2013

Post Views Counter Widget For Blogger


Finally, MBT found a great way to display post view count on Blogger. We will do this by using Firebase. With Firebase you can now create dynamic and data-driven plugins for blogger without worrying about backend development. Firebase's Free plan gives you 10GB Free bandwidth and 5GB Free storage.

The postviews count wont change when you refresh the blog homepage but it will change only when you visit individual posts. This plugin will display views only once pages are visited. It is not synchronized with your Google analytics stats data, therefore it will only display correct views for the new posts that you publish.

Create Your Firebase Account And Database:

First you need to create a Firebase account to use this widget, which is free at this link. Fill up the easy steps sensibly and then once your account has been activated, you must create your first Firebase database.

  • Towards the bottom right side of your account, you will find the following submit box:

  • Inside this box input your desire firebase name. This generated the following firebase URL: https://example.firebaseio.com.

Installing Postviews Plugin:

  • Go To Blogger > Template > Click Edit HTML > Tick the box "Expand widget Templates"
  • Search for ]]></b:skin>
  • Just above it paste the following CSS code:

    /*-------- Post Views  ----------*/
    #views-container {
    width: 75px;
    float: right;
    }

    .mbtloading {
    background: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc5Wn8iV8T3XKzrW6q_bia_k7TKh0Olhkl8t3snEMxjMLXElRyFILWr8vlzqaQyeMx4CCKXU1yifPts2an9fgbsWvzKelvzfq8AzWREJyE_TMDoipuGqvM5Cnb_Mga2hU4lj93XTxL8BE/s1600/loading.gif') no-repeat left center;
    width: 16px;
    height: 16px;
    }

    .viewscount {
    float: right;
    color: #EE5D06;
    font: bold italic 14px arial;
    }

    .views-text {
    float: left;
    font: bold 12px arial;
    color: #333;
    }

    .views-icon{
    background: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm_xSfbai8v-mrbnf6zQr3oVzBNQOKsIG4lse6IlGh2HQq2IRcMtIo5Ugigv-WFjlqKtmJyOKImqCVGfFlKBqgeMJtIK5UFwe4Mn9LIiQHkFnmxOB2Cgxe3PyP-1cklSbvqVDoiJmgAGE/s1600/postviews.png') no-repeat left;
    border: 0px;
    display: block;
    width: 16px;
    height: 16px;
    float: left;
    padding: 0px 2px;
    }

  • Now search for </body> and just above it paste the following JavaScript code:

<!-- Post Views Script by BWidgets -->
<script type='text/javascript'>
    window.setTimeout(function() {
        document.body.className = document.body.className.replace(&#39;loading&#39;, &#39;&#39;);
      }, 10);
  </script>
<script src='https://cdn.firebase.com/v0/firebase.js' type='text/javascript'/>
<script>
$.each($(&#39;a[name]&#39;), function(i, e) {
var elem = $(e).parent().find(&#39;#postviews&#39;).addClass(&#39;mbtloading&#39;);
var blogStats = new Firebase(&quot;https://example.firebaseio.com/pages/id/&quot; + $(e).attr(&#39;name&#39;));
blogStats.once(&#39;value&#39;, function(snapshot) {
var data = snapshot.val();
var isnew = false;
if(data == null) {
data= {};
data.value = 0;
data.url = window.location.href;
data.id = $(e).attr(&#39;name&#39;);
isnew = true;
}
elem.removeClass(&#39;mbtloading&#39;).text(data.value);
data.value++;
if(window.location.pathname!=&#39;/&#39;)
{
if(isnew)
blogStats.set(data);
else
blogStats.child(&#39;value&#39;).set(data.value);
}
});
});
</script>

  • Replace the example with your firebase name. Make sure you replace it correctly. Time for the final step.  Find this code:

<data:post.body/>

  • Just above it paste the following HTML,

<!-- Post Views Counter by BWidgets-->
<div id='views-container'><span class='views-icon'/><div class='views-text'>Views:</div> <div class='mbtloading viewscount' id='postviews'/></div>

  • Hit save and you are all done!

Having Trouble?

If you are finding multi occurrences of <data:post.body/> code then choose the first occurrence. Also, this widget will only display correct views for the new posts that you publish. Thanks to MBT for this amazing script.

Sunday, 17 February 2013

Adding Disqus Combination Widget To Blogger


Previously, I shared three Disqus widget, you can check all of them at this link. Finally, It's time to share last widget of Disqus widgets series. This is a Disqus Combination widget, which is a combination of all three previous widgets. Nothing much to explain about this. Let's get started. You can also use below code on your html document or wordpress:

  • Go To Blogger > Layout > Add A Gadget > HTML/JavaScript > Paste below code:

<div class="heading blue">
            <h2>Community</h2>
        </div>
        <script type="text/javascript" src="http://wwefansnation.disqus.com/combination_widget.js?num_items=5&hide_mods=1&color=grey&default_tab=recent&excerpt_length=30"></script>
    </div>

  • Replace wwefansnation.disqus.com with your site's Disqus ID.
  • Replace 5 with the number of items your want to display.
  • Replace grey with your preferred color.
  • Replace 1 with 0 if you want to display moderator's name on this widget.

Disqus Combination Widget For WordPress:

You can download add Disqus Combination Widget to WordPress with this plugin.

Recent Posts With Scrollbar Widget For Blogger


Finally, we are back with another widget with a generator. I was trying to find this widget for my blog since I started blogging, i never got success in searching this widget. Last night, I created this widget using recent-posts-with-titles-only.js script.

This awesome script is created by blogsolute.com, and modified by madtomatoe.com. With this widget you can show upto recent 25 posts of your blog in a small box. Width of this widget is 100%, which means it automatically adjusts on your blog's sidebar. If you're sharing this post then don't forget to give me a backlink.

Below is our Widget Generator with several fields:

Friday, 15 February 2013

Reasons To Buy A Custom Domain For Your Blog

When you start blogging with Blogger or any other other free blogging platform, you get a free subdomain to kick off your blog. Soon all your visitors get familiar with your free subdomain. But when you finally decide to purchase a custom domain you get confused with several questions in mind. You start thinking whether or not you'll lose your spot in Google, reputation, rankings, and more.

You can buy a custom domain as low as $7-$8 from GoDaddy and BigRock for a full year, which is less than your internet and phone bill. Following reasons will tell you why should you buy a custom domain as soon as possible:

Reputation Among Other Bloggers:

Blogs with a custom domain, e.g. .com, .net, .org, are more respected among other bloggers than blogs with sub domains such as .blogspot.com. Nobody takes .blogspot stuff seriously, just like Twitter accounts with default profile picture.

I'd prefer to visit www.bwidgets.com rather than www.widcraft.blogspot.com. It shows that you are taking your work serious by spending some money on the service that you use and you are not just another monkey with a computer (some of them are awesome).

Easy To Remember And Share:

Blogs with a custom domain are always easy to remember. This is the reason why blogs with subdomain don't get much attention on social media, which is important in blogging. A blog with custom domain gets a good amount of traffic from social media.

Blogs with a custom domain are likely to get more shares on social media then blogs with subdomain. Let's face it, we all prefer to put gmail.com on our address bar rather than mail.google.com.

More Earning With Custom Domain:

Some big advertising sites like BuySellAds do not accept subdomains. Also, direct advertisers prefers to advertise their content on a blog with a custom domain. Believe me, you will get more for the same content with a custom domain. Also, never use GoDaddy affiliates with a free domain :p

You Can Use More Services:

That's right, you can use more services with your custom domain, e.g. Google Apps, bitly Custom Short Links, Custom Emails, and more. That's right, your domain provider will provide you one or two free emails, e.g. admin@yoursite.com. It's great to use your own email for your site. Also, you can create a short link service with your custom domain, like go.bwidgets.com.

Unlimited Subdomains:

You can create unlimited subdomains with your custom domain, such as mail.bwidgets.com. You can host your other blogs with your own custom subdomain, which is way better than using .blogspot.com domain. You can also use your subdomain in another services, such as Google Sites, Newsletters, and more.

Boost Up Your Rankings:

As more and more people notice your blog and bookmark and share it, your ranking on SERPs which is search engine results page will increase. Also, after changing your domain, you'll loose your PageRank only at temporary basis. Once Google robots locate all your redirected links, your rankings will be granted back to you on next PageRank update.

Still here? Just visit GoDaddy or BigRock to buy a custom domain for your blog. Don't forget to leave a comment...

Thursday, 14 February 2013

Improve Your Google PageRank


Earlier this week, I posted about Google PageRank at this link. Now, I'll tell you several ways to improve your site's Google PageRank. Your website's PageRank depends upon quality backlinks you get for your website and total count of your website pages.

1.Write Quality Content:

Everybody likes to share some good content. Create content that users want and will share with others, which will get you bunch of backlinks from other sites. Don't forget to give me a backlink from this point.

2.Guest Blogging Is A Great Move:

Seriously, guest blogging is a great way to backlink you site from an another blog or site. Also, don't forget to submit your articles to various web directories and forums. Good content never goes waste. You can also submit a guest post for our blog at this link.

3.Publicize Your Site Everywhere:

Add your site’s URL, e.g. www.bwidgets.com, into your content. Never miss a change to show off, e.g., newsletter, business cards, email signatures, press releases and more.

4.Get Backlinks From High-Quality Websites:

Ask "high-quality" websites to give a backlink on their blog. It'll improve your PageRank for sure. If your site links to delisted websites, your website might also be removed from Google’s index. Always check site's reputation before asking for a backlink.

5.Check Site's Reputation Before You Link Back:

If you receive a request for a link, check the site's reputation before giving them a backlink on your site. Also, always use 'rel=nofollow' attribute to link back to delisted or low-quality website.

6.Provide RSS Feed:

RSS (Really Simple Syndication) makes it easy for other sites to distribute your headlines and content, your RSS feed will be indexed by popular Blog search engines, including BlogSearch, and Ask.com Bloglines.

7.Keep It Up:

If your site is dead for an extended period, Google may reduce the ranking of your site. Allow your visitors to submit guest posts for new articles.

8.Make Use Of rel=nofollow:

rel=nofollow attribution tell search engines "Don't follow links on this page" or "Don't follow this specific link." This means that Google does not transfer PageRank or anchor text across these links.

Here are some cases in which you might want to consider using nofollow:
  • Untrusted content: Most importantly, always use nofollow for example, untrusted user comments or guestbook entries — you should nofollow those links. Which will keep spammers away from your site.

  • Paid links: In order to prevent paid links from influencing search results and negatively impacting users, make use of nofollow.

  • Crawl prioritization: Search engine robots can't sign in or register as a member on your forum, so there's no reason to invite Googlebot to follow "register here" or "sign in" links.

9.Give Away:

Enable others to copy, distribute, and make use of your articles and content, as long as they give your site credit. Also, write newsletter to remind your visitors about your site. Create an embed-able widget of your site for your users.

10.Never Try To Cheat Google:

If Google suspects that you are trying to deceive it web crawler and thus its users by including hidden text, misleading or repeated words, pages that don’t match your sites description, deceptive redirects, duplicate site or pages, or other disingenuous tactics, then Google may delist your site from its index.

Wednesday, 13 February 2013

Using Custom Short Domain With bitly


bitly (bit.ly or bitly.com) is a URL shortening and bookmarking service owned by Bitly, Inc., a Betaworks company. The current CEO is Peter Stern. It offers URL redirection service with real-time link tracking.

It's always a great move to use your own url shortner, bitly allows you to use your own custom domain to create short links for free. Google Short Links is also a great way to build your own custom url shortner but the fact is that Google Short Links is no more a free product. Still, you can check our Google Short Links at go.bwidgets.com.

A custom short domain is a great way to brand your content across the web! For example, the New York Times uses "nyti.ms" as a custom short domain, and TechCrunch uses "tcrn.ch".

If you were to use "example.me" as a custom domain, instead of appearing like this: bitly.com/example

your links would appear like this: example.me/example

Purchase A Domain:

BigRock is a great place to begin your search for exotic short domains. Your short domain name needs to be 15 characters or less (including the dot). You can also use your existing domain or a sub-domain. Wikipedia maintains a list of top-level domains (TLDs).

Using Custom Domain:

For using your top-level domain (example: bwidgets.com), you need to update your "A-Records" and "CNAME Records." Your domain name must be 15 characters or less (including the dot):

  • Log into your domain registrar's website.
  • Select the short domain you want to modify.
  • Find the section for managing DNS entries. The name of this section varies, but is usually something like "DNS Configuration," "DNS Records", "Advanced DNS," "Total DNS", "Host records," or similar.


Add or edit the existing A-Record for your site. You can click on images for a larger look. Also, don't copy any other IP or anything from images. There all are just for example, I'am not really editing any records DNS records.



Edit the existing A-Record for your site and change the IP address to 69.58.188.49 If there is no existing A record (which is uncommon), add a new one. The A record's "host name" should be either the character @ or your base domain (both mean the same thing). You should only have one A Record. If you have more than one, remove all others and leave only the one pointing to bitly's IP.



After editing A-Records, it's time to add a CNAME Record in your DNS.



In your DNS, enter "www" as your host name name, and that it points to value 'cname.bitly.com'. For example, if your short domain was 'fred.me' you'd point your CNAME record for 'www.fred.me' to 'cname.bitly.com.'

All done in your DNS Manager. Now, scroll down to the "adding your domain to bitly" point for next step.

Using Custom Sub-Domain:

For using your sub-domain (example: sl.bwidgets.com), you need to update your "CNAME Records." Your domain name must be 15 characters or less (including the dot):

  • Log into your domain registrar's website.
  • Select the short domain you want to modify.
  • Find the section for managing DNS entries. The name of this section varies, but is usually something like "DNS Configuration," "DNS Records", "Advanced DNS," "Total DNS", "Host records," or similar.



In your CNAME Reconds, click on "Add CNAME Record." Every domain registrar has their on unique look.



In Host Name, put your desire sub-domain name (example: sl.bwidgets.com). In Value, put cname.bitly.com. All done in your CNAME Records. Now, it's time to add your domain to bigly.

Add Your Domain To bitly:

After setting up your custom domain, it's time to add your domain to bitly. It can take up to 48 hours for domain changes to propagate. It's easy:



Sign in to your bitly account, go to "settings" from the upper right pull-down menu, (or click here) and click on "Advanced" tab.



Enter your short domain under under "Custom Short Domain." (Located under the "Advanced" tab.)



Now, in this screen, you'll see instruction that we mentioned earlier on this tutorial. However, don’t take this step until you have updated your DNS Records. If you've already completed DNS setup, which we mentioned above then click on "Verify" button.



After clicking on "Verify," you'll see above screen. That's IT!!!

If bitly is showing some sort of error then try to double check all steps. Also, DNS changes can take up to 48 hours for domain changes to propagate. In my case, it took about two hours to update DNS. Now, your sub-domain or domain's root directory will redirect you to bitly's homepage. Don't forget to leave a comment....

Sunday, 10 February 2013

What Is Google PageRank And Why Should I Use It?


What Is Google PageRank?

Google PageRank is a link analysis algorithm, named after Larry Page and used by Google Search. Your website's PageRank depends upon quality backlinks you get for your website and total count of your website pages.

The Google Toolbar's PageRank feature displays a visited page's PageRank as a whole number between 0 and 10. The most popular websites have a PageRank of 10. The least have a PageRank of 0.

Courtesy of Wikipedia, here is an example image of how Google PageRank works:


Mathematical PageRanks for a simple network, expressed as percentages. (Google uses a logarithmic scale.) Page C has a higher PageRank than Page E, even though there are fewer links to C; the one link to C comes from an important page and hence is of high value. If web surfers who start on a random page have an 85% likelihood of choosing a random link from the page they are currently visiting, and a 15% likelihood of jumping to a page chosen at random from the entire web, they will reach Page E 8.1% of the time. (The 15% likelihood of jumping to an arbitrary page corresponds to a damping factor of 85%.) Without damping, all web surfers would eventually end up on Pages A, B, or C, and all other pages would have PageRank zero. In the presence of damping, Page A effectively links to all pages in the web, even though it has no outgoing links of its own.


Why Should I Use It?

Google PageRank is a great way to know about, which type of sites give you a backlink. The higher a page is ranked, the better it will perform in organic search results.

If you want to generate income from search engine marketing such as paid links, pay per click or banner ads, how much you will get will largely depend on your page rank. The higher your page rank is, the higher your advertisers will pay you.

PageRank is updated every 3-6 months at Google's discretion, and therefore should not be used as a definitive way to judge the trust of a website; it only gives us an idea of the website's authority and link power based on Google's algorithm.

How To Check PageRank?

There are lots of sites, where you can check your site's PageRank. We recommend you to use PRChecker.net. In this article, we effected Wikipedia and PRChecker's PageRank, by giving them a backlink.

You can also embed your site's PageRank on your site by using following code:


<a href="http://www.prchecker.net" title="PageRank Checker"><img src="http://www.prchecker.net/lookup.php?site=http://www.bwidgets.com&badge=img1"/></a>

In above code, replace www.bwidgets.com with your site's url. Don't forget to leave a comment.

Saturday, 9 February 2013

Beautify Your CSS Code


Messy CSS codes just cause problems in coding. It's always hard to edit messy CSS files on your notepad. Well formatted CSS codes are really easy to read and edit. While creating templates, we write hundreds of CSS codes, and it's really hard for us to format all lines.

Also, when we write CSS codes for others, we really don't focus on code formatting, which cause some problems in future when we have to re-edit those stylesheets.

If you're thinking about to manually formatting you old codes, then it's just a waste of time when we can use an automatic CSS formatting tool.

CSS Beautify automatically formats your style to be consistent and easy to read. It's an open-source project from Sencha Labs. If you want then you can also download this tool at this link.

By using CSS Beautify, you'll be able to format you CSS codes in no time. It's way too much easy, even for Justin Bieber fans(no comments on this point).

Just put your messy CSS codes in first field, and you'll get beautifully formatted CSS code instantly:


Hope this will help you in future....Also, i want to share this good news with you all.

Thursday, 7 February 2013

Customized Labels Cloud Widget For Blogger


Here is a great Labels Cloud styling/widget invented my MBT. It looks a bit old-school but it's looks so beautiful in plain or white style templates. MBT widgets never gets old for sure. It for Labels Cloud widget so don't forget to choose Labels Cloud option in Layout section. Don't worry, i'll explain everything:

  • Go To Blogger > Layout > Click add a gadget and choose Labels
  • Inside the settings make sure to choose the cloud display.
  • Now save the widget and go to settings > Template
  • Click Edit HTML > Search for ]]></b:skin>
  • Just above it paste the following CSS code:

/*-----Custom Labels Cloud widget by www.BWidgets.com----*/
.label-size{
margin:0 2px 6px 0;
padding: 3px;
text-transform: uppercase;
border: solid 1px #C6C6C6;
border-radius: 3px;
float:left;
text-decoration:none;
font-size:10px;
color:#666;
}

.label-size:hover {
border:1px solid #6BB5FF;
text-decoration: none;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
-webkit-transition: all 0.5s ease-out;
-ms-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
-moz-transform: rotate(7deg);
-o-transform: rotate(7deg);
-webkit-transform: rotate(7deg);
-ms-transform: rotate(7deg);
transform: rotate(7deg);
filter: progid:DXImageTransform.Microsoft.Matrix(
                    M11=0.9961946980917455, M12=-0.08715574274765817, M21=0.08715574274765817, M22=0.9961946980917455, sizingMethod='auto expand');
zoom: 1;
}

.label-size a  {
text-transform: uppercase;
float:left;
text-decoration: none;
}
.label-size a:hover  {
text-decoration: none;
}

Save your template....All Done......Don't forget to leave a comment for any help.....

Popular Posts

 
Powered by Blogger.