Monday, December 14, 2009

Advanced Multi Tabbed Widget For Blogger – Fully Widgetized!


multi-tabbed-widget I had published a post on how to add a multi tab widget to your blogger blogs and how to customize it to suit your blog layout some months ago. The only problem with that widget is that it is not fully widgetized i.e you can not add archives, labels, author profile or other blogger official widgets to it unless you have their separate code with you. I just came across a beautiful and a more flexible and advanced tabber widget stylized by Lawny Designs and scripted by Barelyfitz. I have modified lawny’s tutorial and have made some changes to the code so to make it even more simpler to newbie bloggers. You can view this widget hanging on my sidebar.

 

To add this cute multi tab widget to your BlogSpot blogs follow these steps.

  1. Go to Blogger > Layout > Edit HTML
  2. Search For </head>
  3. And paste the code below just above it,

<script type='text/javascript'>
//<![CDATA[
document.write('<style type="text/css">.tabber{display:none;}<\/style>');
function tabberObj(argsObj)
{
  var arg;
  this.div = null;
  this.classMain = "tabber";
  this.classMainLive = "tabberlive";
  this.classTab = "tabbertab";
  this.classTabDefault = "tabbertabdefault";
  this.classNav = "tabbernav";
  this.classTabHide = "tabbertabhide";
  this.classNavActive = "tabberactive";
  this.titleElements = ['h2','h3','h4','h5','h6'];
  this.titleElementsStripHTML = true;
  this.removeTitle = true;
  this.addLinkId = false;
  this.linkIdFormat = '<tabberid>nav<tabnumberone>';
  for (arg in argsObj) { this[arg] = argsObj[arg]; }
  this.REclassMain = new RegExp('\\b' + this.classMain + '\\b', 'gi');
  this.REclassMainLive = new RegExp('\\b' + this.classMainLive + '\\b', 'gi');
  this.REclassTab = new RegExp('\\b' + this.classTab + '\\b', 'gi');
  this.REclassTabDefault = new RegExp('\\b' + this.classTabDefault + '\\b', 'gi');
  this.REclassTabHide = new RegExp('\\b' + this.classTabHide + '\\b', 'gi');
  this.tabs = new Array();
  if (this.div) {
    this.init(this.div);
    this.div = null;
  }
}

tabberObj.prototype.init = function(e)
{

  var
  childNodes,
  i, i2,
  t,
  defaultTab=0,
  DOM_ul,
  DOM_li,
  DOM_a,
  aId,
  headingElement;
  if (!document.getElementsByTagName) { return false; }
  if (e.id) {
    this.id = e.id;
  }
  this.tabs.length = 0;
  childNodes = e.childNodes;
  for(i=0; i < childNodes.length; i++) {
    if(childNodes[i].className &&
       childNodes[i].className.match(this.REclassTab)) {
      t = new Object();
      t.div = childNodes[i];
      this.tabs[this.tabs.length] = t;

      if (childNodes[i].className.match(this.REclassTabDefault)) {
    defaultTab = this.tabs.length-1;
      }
    }
  }
  DOM_ul = document.createElement("ul");
  DOM_ul.className = this.classNav;
  for (i=0; i < this.tabs.length; i++) {

    t = this.tabs[i];

    t.headingText = t.div.title;

    if (this.removeTitle) { t.div.title = ''; }

    if (!t.headingText) {

      for (i2=0; i2<this.titleElements.length; i2++) {
    headingElement = t.div.getElementsByTagName(this.titleElements[i2])[0];
    if (headingElement) {
      t.headingText = headingElement.innerHTML;
      if (this.titleElementsStripHTML) {
        t.headingText.replace(/<br>/gi," ");
        t.headingText = t.headingText.replace(/<[^>]+>/g,"");
      }
      break;
    }
      }
    }

    if (!t.headingText) {
      t.headingText = i + 1;
    }

    DOM_li = document.createElement("li");

    t.li = DOM_li;

    DOM_a = document.createElement("a");
    DOM_a.appendChild(document.createTextNode(t.headingText));
    DOM_a.href = "javascript:void(null);";
    DOM_a.title = t.headingText;
    DOM_a.onclick = this.navClick;

    DOM_a.tabber = this;
    DOM_a.tabberIndex = i;

    if (this.addLinkId && this.linkIdFormat) {

      aId = this.linkIdFormat;
      aId = aId.replace(/<tabberid>/gi, this.id);
      aId = aId.replace(/<tabnumberzero>/gi, i);
      aId = aId.replace(/<tabnumberone>/gi, i+1);
      aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, ''));

      DOM_a.id = aId;
    }

    DOM_li.appendChild(DOM_a);

    DOM_ul.appendChild(DOM_li);
  }

  e.insertBefore(DOM_ul, e.firstChild);

  e.className = e.className.replace(this.REclassMain, this.classMainLive);

  this.tabShow(defaultTab);

  if (typeof this.onLoad == 'function') {
    this.onLoad({tabber:this});
  }

  return this;
};

tabberObj.prototype.navClick = function(event)
{

  var
  rVal,
  a,
  self,
  tabberIndex,
  onClickArgs;

  a = this;
  if (!a.tabber) { return false; }

  self = a.tabber;
  tabberIndex = a.tabberIndex;

  a.blur();

  if (typeof self.onClick == 'function') {

    onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event};

    /* IE uses a different way to access the event object */
    if (!event) { onClickArgs.event = window.event; }

    rVal = self.onClick(onClickArgs);
    if (rVal === false) { return false; }
  }

  self.tabShow(tabberIndex);

  return false;
};

tabberObj.prototype.tabHideAll = function()
{
  var i;

  for (i = 0; i < this.tabs.length; i++) {
    this.tabHide(i);
  }
};

tabberObj.prototype.tabHide = function(tabberIndex)
{
  var div;

  if (!this.tabs[tabberIndex]) { return false; }

  div = this.tabs[tabberIndex].div;

  if (!div.className.match(this.REclassTabHide)) {
    div.className += ' ' + this.classTabHide;
  }
  this.navClearActive(tabberIndex);

  return this;
};

tabberObj.prototype.tabShow = function(tabberIndex)
{

  var div;

  if (!this.tabs[tabberIndex]) { return false; }

  this.tabHideAll();

  div = this.tabs[tabberIndex].div;

  div.className = div.className.replace(this.REclassTabHide, '');

  this.navSetActive(tabberIndex);

  if (typeof this.onTabDisplay == 'function') {
    this.onTabDisplay({'tabber':this, 'index':tabberIndex});
  }

  return this;
};

tabberObj.prototype.navSetActive = function(tabberIndex)
{

  this.tabs[tabberIndex].li.className = this.classNavActive;

  return this;
};

tabberObj.prototype.navClearActive = function(tabberIndex)
{

  this.tabs[tabberIndex].li.className = '';

  return this;
};

function tabberAutomatic(tabberArgs)
{
  var
    tempObj,
    divs,
    i;

  if (!tabberArgs) { tabberArgs = {}; }

  tempObj = new tabberObj(tabberArgs);

  divs = document.getElementsByTagName("div");
  for (i=0; i < divs.length; i++) {
    if (divs[i].className &&
    divs[i].className.match(tempObj.REclassMain)) {
      tabberArgs.div = divs[i];
      divs[i].tabber = new tabberObj(tabberArgs);
    }
  }
  return this;
}
function tabberAutomaticOnLoad(tabberArgs)
{
  var oldOnLoad;

  if (!tabberArgs) { tabberArgs = {}; }

  oldOnLoad = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = function() {
      tabberAutomatic(tabberArgs);
    };
  } else {
    window.onload = function() {
      oldOnLoad();
      tabberAutomatic(tabberArgs);
    };
  }
}

/* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */

if (typeof tabberOptions == 'undefined') {

    tabberAutomaticOnLoad();

} else {

  if (!tabberOptions['manualStartup']) {
    tabberAutomaticOnLoad(tabberOptions);
  }

}

//]]>
</script>

 

 

4.  Now search for ]]></b:skin>  and just above it paste this code,

/*---------- Tabber Start-------- */


.tabberlive{
margin:0;
padding:5px;
clear:both;
background:$tbbxbgcolor;
border:1px solid $tbbxbrcolor;
}
.tabbernav {
margin:0;
padding: 3px 0;
border-bottom: 1px solid $tbbxbrcolor;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:bold;
}
.tabbernav li {
list-style:none;
margin:0;
display:inline;
}
.tabbernav li a {
padding:3px 0.5em;
margin-right:1px;
border:1px solid $tbbxbrcolor;
border-bottom:none;
background:$tbbxcolor2;
text-decoration:none;
color:$tbbxcolor1;
}
.tabbernav li a:hover {
color:$tbbxcolor2;
background:$tbbxcolor1;
border-color:$tbbxbrcolor;
text-decoration:none;
}
.tabbernav li.tabberactive a,
.tabbernav li.tabberactive a:hover {
background:$tbbxcolor1;
color:$tbbxcolor2;
border-bottom: 1px solid $tbbxcolor1;
}
.tabberlive .tabbertab {
padding:5px;
border:1px solid $tbbxbrcolor;
border-top:0;
background:$tbbxcolor1;
}
.tabberlive .tabbertab h2,
.tabberlive .tabbertabhide {
display:none;
}
.tabbertab .widget-content ul{
list-style:none;
margin:0 0 10px 0;
padding:0;
}
.tabbertab .widget-content li {
border-bottom:1px solid $tbbxbrcolor;
margin:0 5px;
padding:2px 0 5px 0;
}


/*------- Tabber End--------*/

 

5.  Don’t save your template. Now search for Variable definitions and paste this code with other variable definitions,

<Variable name="tbbxbgcolor" description="Tab box Background Color" type="color" default="#f8f8f8" value="#f8f8f8">
<Variable name="tbbxbrcolor" description="Tab box Border Color" type="color" default="#dcdcdc" value="#dcdcdc">
<Variable name="tbbxcolor1" description="Tab box Color 1" type="color" default="#ffffff" value="#ffffff">
<Variable name="tbbxcolor2" description="Tab box Color 2" type="color" default="#5588aa" value="#5588aa">

 

If you can’t find Variable definitions  then search for #navbar-iframe and paste this code below #navbar-iframe { Some text here }

/* Variable definitions
   ====================

<Variable name="tbbxbgcolor" description="Tab box Background Color" type="color" default="#f8f8f8" value="#f8f8f8">
<Variable name="tbbxbrcolor" description="Tab box Border Color" type="color" default="#dcdcdc" value="#dcdcdc">
<Variable name="tbbxcolor1" description="Tab box Color 1" type="color" default="#ffffff" value="#ffffff">
<Variable name="tbbxcolor2" description="Tab box Color 2" type="color" default="#5588aa" value="#5588aa">

*/

 

6.   Now the final part. Search for <div id='sidebar-wrapper'> and paste this code just below it,

<div class='tabber'>
<b:section class='tabbertab' id='tab1' maxwidgets='1'/>
<b:section class='tabbertab' id='tab2' maxwidgets='1'/>
<b:section class='tabbertab' id='tab3' maxwidgets='1'/>
<b:section class='tabbertab' id='tab4' maxwidgets='1'/>

</div>

 

7. Finally save your template and visit Layout > Page Elements to start adding widgets to the tabs! It will look something like this,

multi-tab-widget-tab-number

The numbers in blue are tab numbers. To add a gadget/widget to any tab simply click the tab number and start adding whatever you want. For example to add a widget to tab 3 click link #3 and so on.

8. Finally view your template to see it hanging!

Customization Guide To Multi Tab Widget

Here we will discuss how to change the Look and position of this multi tabbed widget.

Changing Position:

To shift this tabber widget to the bottom section of your sidebar rather at the extreme top, do this,

  • Paste the code in Step#6 just above </div> and not just below <div id='sidebar-wrapper'> As shown in the image below,

Shift-position-of-tabber

  • Save your template and go to Layout > Page Elements  to see if it has shifted to the bottom.

Changing Look and Feel:

  • The background colours of the widget can be changed by editing the code in step#5. I am rewriting the code here with some description.

<Variable name="tbbxbgcolor" description="Tab box Background Color" type="color" default="#f8f8f8" value="#f8f8f8">


<Variable name="tbbxbrcolor" description="Tab box Border Color" type="color" default="#dcdcdc" value="#dcdcdc">


<Variable name="tbbxcolor1" description="Tab box Color 1" type="color" default="#ffffff" value="#ffffff">


<Variable name="tbbxcolor2" description="Tab box Color 2" type="color" default="#289728" value="#289728">

 

This code has four main sections amongst which the sections tbbxcolor1: and  tbbxcolor2: are the most important. I will describe each one in detail.

Important Sections:

tbbxcolor1: This is an important section. It defines the background colour of this multi tab widget and also the colour on mouse hover. The default colour is white i.e #ffffff

tbbxcolor2: This refers to the background colour of the tabs and the text inside the tabs. the default colour is green. You can change the value #289728 to a different colour value using our color chart

Change these only if you wish:

tbbxbgcolor: This section refers to the background colour of the tab box. By default the colour is grey. If you wish to change it to a different colour simply change the hexadecimal colour value #f8f8f8 to something different using our Color Chart

tbbxbrcolor: This refers to the border line color across the tabs and the box.

That’s All!

I hope this widget will help a lot in giving a clean and neat touch to your blogs. Any question is welcomed :D


Respected Readers:
As a 20 year old student, the only income I rely on is my pocket money. Bearing the running costs of MBT Blog has become really difficult. We educate thousands of bloggers a week with our tutorials. To help us go forward with the same spirit, a small contribution from your side will highly be appreciated.



If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to our regular Email Updates!

Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

80 comments:

Anup @ Hack Tutors on 8:01 AM, December 14, 2009 said...

Hey this is cool thanks for the widget~!

Ms Hetal Patil on 10:05 AM, December 14, 2009 said...

Hello,

Many thanks for this wonderful widget

Sreejesh on 7:39 AM, December 15, 2009 said...

This is great!! Thanks for sharing Mohd.

Sreejesh on 7:41 AM, December 15, 2009 said...

Mohd, how to use CSS Sprites for fast loading site??

Coz I've added too many of ur codes and it doesn'y does normally in IE. But loads in any other browser. since more use IE, visitors r having problems. Please advice about fast loading

Mohammad Mustafa Ahmedzai on 9:17 PM, December 15, 2009 said...

@Sreejesh
For Fast loading kindly read this post 12 useful tips to reduce load time

Any further help is welcomed. The widgets I share are often used on my blog but they work pretty fine.


Image sprites tecnique have been used by us in this post http://www.mybloggertricks.com/2009/12/add-css-based-social-bookmarking-widget.html

Sreejesh but this technique can not be applied in most cases because managing the alignments are a bit difficult. One needs to be pretty good in CSS to use them.

KAMRAN said...

nO WORDS TO THANK YOU. WAS LIKE 1 2 3. THANKS DUDE!

Sreejesh on 11:25 AM, December 17, 2009 said...

Mohd, My real need is to create a CSS sprite for 3 images. as you know I don't have any knowledge about the web editing or CSS. I just want to get 3 links in one image. for the below screen shot.

http://i46.tinypic.com/2yvjtqa.jpg

I want those 3 icons like the the social networking icons like naeem noors which hovers on mouse over..

( social networking icons by naeem noor you gave me the link earlier -->> http://www.cssreflex.com/2009/08/sexybookmarks-v2-for-blogger.html )

I created some image and code from http://css-sprit.es/ but I don't know how to implement it in blogger template.

Here is the image-->> http://i46.tinypic.com/vrbzpu_th.png

I'm struggling for this since I don't know CSS or web design. finally i gave up!!


Now you are the only hope. Please help!!!

My blogs'link is http://tunestore.blogspot.com/

if posible please send it to :mailmesreejesh@gmail.com

Also please advice me for the stability of the page in IE.


By the by the "12 useful tips to reduce load time" was wonderfull I've tried to implement all them in my blog.

Mohammad Mustafa Ahmedzai on 11:19 PM, December 17, 2009 said...

@Sreejesh


Working on your image. Give me some time like 4-10 hours. And yes I will kill you if you asked off-topic questions again :D Just kidding, you are most welcomed to ask any off topic question via email else my blog will become a forum :>>

Mohammad Mustafa Ahmedzai on 12:06 AM, December 18, 2009 said...

@Sreejesh


I guess I am a bit impatient. Created your code in just 5 minutes.
Copy paste the following code in your HTML/JavaScript widget,


<style>

.mbt-bookmark a {
display:block;
height:48px;
width:35px;
padding:0 8px;
float:left;
position:relative;
background:urlundefinedhttp://i46.tinypic.com/vrbzpu_th.png) no-repeat;
}

.mbt-bookmark a.orkut {
background-position:-99px 0px;
}
.mbt-bookmark a.orkut:hover {
background-position:-99px -48px;
}
.mbt-bookmark a.twitter {
background-position:-48px 0px;
}
.mbt-bookmark a.twitter:hover {
background-position:-48px -48px;
}
.mbt-bookmark a.facebook {
background-position:0px 0px;
}
.mbt-bookmark a.facebook:hover {
background-position:0px -48px;
}



</style>


<div class='mbt-bookmark'>
<a class='facebook' href="http://tunestore.blogspot.com/ " rel='external nofollow' target='_blank' title='Share This Blog On Facebook :&gt;'/>

<a class='twitter' href="http://tunestore.blogspot.com/ " rel='external nofollow' target='_blank' title='Share This Blog On Twitter :&gt;'/>

<a class='orkut' href="http://tunestore.blogspot.com/ " rel='external nofollow' target='_blank' title='Share This Blog On Orkut :&gt;'/>
</div>



Have fun!

ERIC JONES on 12:42 AM, December 18, 2009 said...

HELLO SIR i m having a blog at my blog there is a label or catogories named FUNNY SMS (8) having 8 posts

http://free-mobile-sms-messages.blogspot.com

my problem is that when i clcik on this this label {FUNNY SMS (8)}

all 8 posts shows on whole page. is there any trick for this to show only certain no of post at a time. i mean if someone clicks on that label only one post must be visible and other will be visible when clicked on older post similar to a site on a private domain

please find a way to solve my question

i have searched hole web but i can't find it one of my friend suggested me to ask www.mybloggertricks.com you about this. he said you will find the solution here so please help me sir

Mohammad Mustafa Ahmedzai on 4:05 AM, December 18, 2009 said...

@Eric Jones

Your question is answered on this page -> Blogger Help

Anonymous said...

Hi Mohd,
When we apply this widget ,it gets on the top of the page,I shifted it to the sidebar where as it has taken again the top place .How do I shift this place if I want this widget to be in between the sidebar ,more widgets above or below it and this one some where in between the sidebar but not on the top ? Hope I can do this?

Sreejesh on 12:13 PM, December 18, 2009 said...

Thanks I'm very delighted!!! you are superfast.. You did it in 5 minutes thats great!!!!!!!!!

I don't know how to express my happyness!!!!!

Mohammad Mustafa Ahmedzai on 1:08 AM, December 19, 2009 said...

@Sreejesh

I am glad it worked for you. Note that I have mistakenly not enclosed the background url with brackets replace that part with this,

background:url(http://i46.tinypic.com/vrbzpu_th.png) no-repeat;

For off-topic questions post on this newly created page -> Blogger Help

Mohammad Mustafa Ahmedzai on 1:10 AM, December 19, 2009 said...

@anonymous,


Send me your Blog URL I will let you know the exact location to paste your code

Sreejesh on 2:14 PM, December 20, 2009 said...

Excellent!!! it worked great!! You made it look and understand the code simple. superb coding!! I was struggling to get this for more that 3or 4 days and you did it within 5 minutes. That's Mohd and MBT!!!!

Anonymous said...

can i add more than 4 tabs ????
If yes pls heelp me how ??

Mohammad Mustafa Ahmedzai on 8:55 PM, December 24, 2009 said...

@Anonymous

To add another tab simple add this code above </div> in step#6

<b:section class='tabbertab' id='tab5' maxwidgets='1'/>

To add another add this,

<b:section class='tabbertab' id='tab6' maxwidgets='1'/>

and so on

Smaracande on 4:10 AM, January 11, 2010 said...

Thank you i really enjo surfing your blogger!i hope i can do this.
http://webizland.blogspot.com/

Savvy Guy on 8:55 AM, January 12, 2010 said...

Mohd,

Can you tell me how to adjust the height of the tabs AND allow for a title (per tab) that is two lines such as:
Recent
Post

Thanks..

Savvy Guy on 9:24 AM, January 12, 2010 said...

Mohd,

One more thing. With these tabs at the top of my right hand sidebar, it is running into my category header- see my blog:
http://thesavvyguy.blogspot.com/
Can you tell me how to drop it a bit.
Second, I seem to be getting an error since adding the above code, right when this multi-tab widget is loading- any suggestions?

Thanks so much for all of your help..

Mohammad Mustafa Ahmedzai on 1:08 AM, January 13, 2010 said...

@Savvy Guy

You can increase the height by adding height="15px" to .tabbernav {

But then this will look cluttered.

For adding a space between tabs find and edit this,

.tabbernav li {
list-style:none;
margin:0;
display:inline;
}

Chnage margin:0; to margin:5px 0; 5px will add a space of 5px between the tabs at top and bottom. Try reducing or increasing the value 5px to suit your preferences.

Suggestion:- Summarize your titles as Comments , Posts Archive Featured

The widget will load after all blog content have loaded. So it normal. You can Add it a bit lower. Just like mine so that readers may not observe it while loading.

Savvy Guy on 7:18 AM, January 13, 2010 said...

Mohd,

Thanks for all of the suggestions. Very helpful. Two more things and I should be good to go. 1.) The line on the left boarder inside the main border won't show up for me- any suggestions? 2.) How do I move the widget down a spot or two, so it doesn't run into my menu OR how can I add a space between it and the grey menu?
http://thesavvyguy.blogspot.com/

Thanks again....

Mohammad Mustafa Ahmedzai on 3:41 PM, January 13, 2010 said...

@savvy

1. I can see both borders. May be you have troubleshooted your self. Use a different browser to see it.

2. To shift the widget try reading the last of the tutorial carefully. I can not explain better than that :D

An easy way to give a gap between this widget and other widgets in your sidebar is to remove the out border from the widget and give the out background the same colour as that of your blog. To do that find and edit this,


.tabberlive{
margin:0;
padding:5px;
clear:both;
background:$tbbxbgcolor;
border:1px solid $tbbxbrcolor;

}

To remove the border delete the border line i.e border:1px solid $tbbxbrcolor; and to change the background color replace background:$tbbxbgcolor; with this background:#DFE3E6 Use my color code generator for changing colors .


Hope that would be helpful :>

Prabhat's Books and Comics on 4:33 PM, January 13, 2010 said...

Hello Mohammad, I'm visiting your site since last several months. Find several good tips. some hacks now using in my 2 blogs. This multi tab is really GOOD.

http://bookscomics.blogspot.com/
http://ijc-by-munnabhai.blogspot.com/


Thank you very much!

esydownloads on 6:24 PM, January 13, 2010 said...

Hello Mohammad

i have not found "Variable definitions " & "#navbar-iframe { Some text here }"

so any other option for my templet i m using ur old multitabber
i want to replace that tab

Mohammad Mustafa Ahmedzai on 8:18 PM, January 13, 2010 said...

@Prabhat's Books and Comics

Pleasure Dear! thanks for your Feedback.


@EasyDownloads

Dear find this code instead,

.navbar {
visibility:hidden;
display: none;
}


And paste the variable definition code in the above post just below this code

Esydownloads on 1:41 AM, January 16, 2010 said...

Thanks
this is nice Post For me

Thanks Mohammad

mary on 1:01 PM, February 02, 2010 said...

how can i move it on left with other elements as in your blog?

DJDB on 1:14 AM, February 03, 2010 said...

Hi there. Is there a way to make tabber load while the whole page is loading and not when the page has fully loaded? I'm using it on my blog (techgr.com) and it needs some seconds more the page has fully load to display tabber. Can we make tabber load while the page loads and not at the end?

Thanks in advance and congrats on a great Blogger hack!

DJDB

Mohammad Mustafa Ahmedzai on 3:25 PM, February 06, 2010 said...

@Mary
To move it to left search for this code in your blog,
<div id='sidebar-wrapper-left'>
And paste the code just below it.
If you could not find this code then share your blog URL.


@DJDB
Bro unfortunately at present I haven't find any way out. The best would be to place the widget at 1/2 portion of your blog so that users may be able to see it appearing while they crawl to the bottom.

mary on 4:33 PM, February 06, 2010 said...

i resolve the problem after i ask..but thankyou for assured me the corectitude.
i think i will understand these codes like you.
lol
just kidding

xoxo,mary ^^

Anonymous said...

I have two questions...

First, is it possible to make any part of this transparent, or have varying % of transparency, rather than having a solid/opaque background color?

Second, I changed the position so that my widget is positioned at the bottom of my page. When I click on a tab it opens below the viewing area of my screen. I have to scroll down in order to see its contents. It does not automatically push the page up as it opens, to display the whole tab. Is this how it is supposed to work, or is mine not working properly?

Mohammad Mustafa Ahmedzai on 2:42 AM, February 07, 2010 said...

@Mary

Great going mary! :p

@Anonymous

At present we can only add opacity effect to backgrounds in CSS and I am sure the transparency effect will surely be added in new versions of CSS3 or 4 but unfortunately this effect is not possible with present available Styles on current versions of browsers.

For your second answer I will simply say that if your multi tab is working just the way it is working on my blog then nothing is strange on your side :>

Amor Maternal on 7:35 AM, February 20, 2010 said...

Hey Mohd!

Thank you for all your great tutorials, I've applied quite a few to my mommy blog www.amormaternal.com

I have a test blog, for trying out new widgets, and figuring them out properly before installing them on my actual site. I tested this multi-tabber there, and have encountered a problem: after having followed all the steps, I go to layout-> page elements, and it ALWAYS says "ready with errors" (in my browser), even after reloading a dozen times. Also when I try to click on the numbers to include widgets in each tab, it doesn't do anything (and my browser says "javascript void" in the lower left corner). I've restored the old template, and tried to install it again from scratch in case I made a copy/paste mistake, and the same happened again... What could I be doing wrong?

This is the url of my test blog: http://loumasaderbujana.blogspot.com/ Please tell me what I can do to make the tabber work, it would save a lot of space on my mommy blog, I don't like blogs with 'forever scrolldowns', and have found a tabber to reduce page length...

Thanks, kind regards!

Louma

Amor Maternal on 8:46 AM, February 20, 2010 said...

Hey Mohd,

Forget it :) I tried again, and it finally worked! Thank you so much :D

Kind regards,

Louma

Adil Farooq on 12:18 PM, February 22, 2010 said...

hi where i can add step 5 and 6??
my blog is
http//:aaddy.blogspot.com

Plz help me

Mohammad Mustafa Ahmedzai on 1:42 AM, February 24, 2010 said...

@Amor Maternal

I like readers like you! =D


@Adil Farooq

Please read the previous comments. You will find your answer there

great99 on 11:49 PM, February 24, 2010 said...

hello Mohammad
first of all thanks for this widget. i have try it out at my test blog but it does not show it up. i am using a 3 column temolate and want to have this widget at the bottom of right column. Here is link for my test blog were i try this widget but its not shown so help me.
http://learnblog9.blogspot.com/

Mohammad Mustafa Ahmedzai on 11:58 PM, February 24, 2010 said...

@great99

Dear you have successfully added the widget but it is appearing below your top search box because you have mis-positioned it. Do this now,

1. Search for this code in your template,
<div class='sidebar section' id='sidebar-right'>

2. And then paste the code in step#6 just below it.
3. That's it.

Amor Maternal on 4:44 AM, February 25, 2010 said...

@Mohd: And I seriously love your blog, tricks and gadgets. Really clear and useful tutorials :) Keep up the good work!

great99 on 7:43 PM, February 25, 2010 said...

Thanks Mohammad
I have found it but the code was you said was not present.But some how i manage to get it but as i wanted it to be in right column but it is not coming there and can i change width of it.
i have paste the code just after this section





and it is not working when paste above
Thanks for your fast reply.
great99

great99 on 7:45 PM, February 25, 2010 said...

sorry has i try to put the section code but it does not work
1. Section

great99 said...

Dear Mohammad
you can delete abovve two comments as i cannot paste the section so how do i contact you to tell the code.

thanphong07 on 8:42 PM, February 27, 2010 said...

That's wonderful ! Thanks for great post !

Mohammad Mustafa Ahmedzai on 10:35 AM, February 28, 2010 said...

@Amor Maternal

You are always welcome here bro! :>

@great99
Send me your template at mustafa.stc@ gmail.com I will do it for you and will return you the template. I believe this will be easy for you :)
Different templates have different coding and the xml code is often not visible through the source code unless I see the main template coding.

Analyst on 4:33 PM, February 28, 2010 said...

Where can we see this widget in action. Rgds Indian-Share-Tips.Com

thanphong07 on 9:50 PM, March 01, 2010 said...

You can view this widget hanging on his sidebar.

Michelle Stanley on 5:20 PM, March 03, 2010 said...

how do i change tab from numbers to names?

Thanks

B &amp; D on 11:18 AM, March 06, 2010 said...

This Works Completely Perfect
Thanks Mohd.. !

Anonymous said...

dear frnd,
You have advised for 4 or 5 tabs suppose i have 12 - 15 tabs then everything get jumbbled. i cant check which tab is showing me which info. i am using the first code!!!!

Can you how to give atleast some gap in two rows of tab or focus/highlight on the selected tab

Thanks in advance.

Mohammad Mustafa Ahmedzai on 12:04 AM, March 30, 2010 said...

@Michelle Stanley
Do you really feel the need? :>


@Anonymous

Dear 12-15 tabs would of course look bulky and complex! Do you think you really need 12 tabs? Brother the widget is a tabber widget and it is used only to give space to some important sections/widgets of a blog. Usually we dont add more than 5 tabs. If you need 12 tabs then I believe you should go for a navigation menu instead. I have written detailed posts on vertical and horizontal navigation menus.

I hope you got the point! :>

erwan on 10:06 PM, March 30, 2010 said...

cool tab...
i like it...
visit n se on http://www.senyawa.com/

ty.... :)

Caroline (Frogmum) on 4:52 AM, March 31, 2010 said...

This is totally brilliant and easy to install ~ THANKYOU :D
Just two things:-
1/ your variable defintions need a forward / at the end of each one, before the > (well at least with the newest blogger they do)

2/ Is there any way to have the text inside the tabs a different colour to the tab background colour. I would like to have the whole thing transparent apart from the tab-text. Alternatively I don't mind having some colour on the tab itself and then having the text another colour, but I'd like to keep the backgrounds transparent. Hard to explain! Take a look at my blog and see how the tabber looks just now. I'd like to be able to see the text in the tabs before hovering, but I can't work it out. Do I just need another 'variable definition' ?
My blog address is; www.frogacademy.blogspot.com

And again ~ thankyou SO much :D!!

Mohammad Mustafa Ahmedzai on 1:33 AM, April 03, 2010 said...

@Caroline

I am glad it worked for you too. :) Here are my suggestions:

1. I will look into this. Thanks for suggesting mam!

2. Well to change and edit colours simply edit the colour codes inside the code in step#5. I visited your blog and found that the reason you want the tab to be transparent is so that it could match with your background colour. Well unfortunately this can not be achieved with the present styling.

A short advise: If you remove your background image the load time will increase by 30%! :> The choice is upto you.

I hope the answer would be helpful. Feel free to ask if you have any other query. :)

Help on 3:58 PM, April 09, 2010 said...

Thanks for your great widget. I installed your widget.
I need your help. How can I change text font and size. Because it looks oversized. Especially in the 2,3 tab

Mohammad Mustafa Ahmedzai on 4:34 PM, April 11, 2010 said...

@Help

Dear find and edit this code,

.tabbernav {
margin:0;
padding: 3px 0;
border-bottom: 1px solid $tbbxbrcolor;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:bold;
}

you can reduce the value from 12px to anything you prefer.
Hope this was the answer of your question :>

Abhineet on 12:21 PM, April 30, 2010 said...

hii,
can u plz tell me how to place this multi tabbed widget in between the widgets present at my sidebar, just like yours.
plz reply soon.
I am also waiting for my off-topic question.

plz email me the answer at: abhineetsuperb@gmail.com
blog: http://abhicomputech.blogspot.com/

Ebnat's Syukur on 8:50 AM, May 01, 2010 said...

Thanks for this tuts, very helpfull.

PH Stream on 9:54 AM, May 12, 2010 said...

hello admin, did not work in blog....you can seen the 1234 in page elements, but if you view your blog, nothings happen..

Anonymous said...

Good night already signed the feed from your site, I liked the template tanzanite and would like to send me the download link to my email. thanks
concursovirtual@gmail.com

Lluís on 12:35 AM, May 26, 2010 said...

That's great! It's the widget I've been looking for . Good job.

But I've followed your instructions several times in a blogger template, I can't get it work. In the layout -> page elements it only appears a list of 4 "add a gadget" instead the "1 2 3 4" multi tab. I don't know what I'm doing wrong.

Any help would be appreciated.
Regards,
LLuís

Mohammad Mustafa Ahmedzai on 8:19 PM, May 28, 2010 said...

@Lluis

You did everything correct so no worries! Just click on the number and then on add a gadget to add a new widget to that tab. The tabs are numbered 1, 2, 3, 4 so when you click on a particular number then you are inside that tab. Hope that was clear. :>

Lluís on 2:59 AM, June 02, 2010 said...

Thanks Mohammad,

The multi-tab widget works fine, but what it is strange is that the numbers 1,2,3,4 doesn't appear in the page elements only the four add a gadget boxes. May be I missed something but the widget it is working as you can see here:
http://tradingdeguerrilla.blogspot.com

Regards,
LLuis

Avelino on 4:05 AM, June 07, 2010 said...

Thanks, I put on my blog and look great.
Thanks again and I do not speak and write English! rsrs

Thanks!

imarvic on 10:14 AM, June 07, 2010 said...

Look great, but it's not work on my ads theme blogger..
So sad..

jacobsbeloved on 2:35 AM, June 15, 2010 said...

Hello Mohammad,
I put this on my blog a few months ago and it was working fine, and now it is not. I went back over your instructions and everything still looks the same in the HTML, so can you please take a look at my blog and tell what to fix?
My email is hopester777(at)gmail(dot)com.
My blog is http://jacobsbeloved.blogspot.com/
Thankyou very much!

nEo.. on 11:25 PM, June 16, 2010 said...

i have a bit problem,

step no 5- everytime i paste the code to variable defination this word will appear-Invalid variable declaration in page skin:

nEo.. on 11:26 PM, June 16, 2010 said...

step no 6- i can't find---> div id='sidebar-wrapper' in my template.

Mohammad Mustafa Ahmedzai on 4:06 PM, June 18, 2010 said...

@Jacobsbeloved

I think you have removed the widget? What exactly is not looking fine? Kindly explain it a bit.

@NEO
Dear can you see some Variable definitions already declared in your template. Note:- Make sure to add step#5 after you have added the code in step#4

For sidebar-wrapper kindly look for a similar code in your template or allow me to visit your template for it is restricted.

AnotherWindowsBlog on 6:50 AM, June 21, 2010 said...

Thanks for the great tutorial! Everything worked to perfection on my blog. Not only does implementing this widget help with loading times but it also prevented a video I had embedded from auto-downloading! Sweet!

Rachel on 10:26 AM, June 25, 2010 said...

I did not remove the widget, I did not change a thing. When Blogger "updated" to a new form of doing templates, my widget stopped working. I did not even use the new stuff Blogger had put in, and I went through everything to make sure I still had all of the same HTML that you have here, and nothing has been changed.

Mohammad Mustafa Ahmedzai on 2:41 AM, June 26, 2010 said...

@Rachel

pal the only problem that I observed is that now the multi tab is rather aligned vertically due to some bug which is making it difficult to click and edit individual tabs. Blogger often play here and there and this makes our job difficult. I am looking to figure some way to solve this problem. Thanks for informing.

nas on 12:49 PM, July 06, 2010 said...

wow...nice entry..
but ts so compicated for me to did it...
too many coding...huhu
but..
later if i free i'll try it..huhu

Cute girl on 6:42 PM, August 08, 2010 said...

I cant find your step 6 in my blog.......
div id='sidebar-wrapper' PLEASE HELP

Gaus Rahman Piash on 12:43 PM, August 09, 2010 said...

Also I cant find div id='sidebar-wrapper'

RFT on 2:24 PM, August 14, 2010 said...

very helpfull post, thank you...
But, is it possible to add two such tab widgets, one on the top of sidebar, and another to the bottom?

RFT on 2:35 PM, August 14, 2010 said...

@Cute girl, @Gaus Rahman

I had a simillar problem with my template, but instead of div id='sidebar-wrapper', I had a div class='rsidebar-wrapper' for right side, and div class='lside-wrapper' for left side bar...

I hope it'll help..

Varun Sharma on 2:48 PM, August 29, 2010 said...

hello mohammad have you seen all the blogger templates
some templates does not follow the wrapper concept of page development
because of that some new does not have "sidebar wrapper"
may be they r using column technique or what ever i din't get the right word for that
so pls give us a solution also on this.
thanks.
and great job and this truth you also know about your self.

Varun Sharma on 6:24 PM, August 29, 2010 said...

I solved my problem and again thanks for the code guide.

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.
Note:-
1. Please do not spam Spam comments will be deleted immediately upon my review.
2. For asking Off-Topic questions please comment on this page -> Blogger Help

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

532+ Followers

Join The Team!

Licensed Under CC

Creative Commons License

Recent Comments

Follow Me On Twitter

| My Blogger Tricks (MBT) © 2010. All Rights Reserved | Template Style by Mohammad Mustafa Ahmedzai |