Combining MyBloglog and BlogCatalog




This is a follow up on Easy Styling MyBlogLog Recent Readers Widget. I promised you to post BlogCatalog CSS and the HTML that I used to make them both look like one widget. I’m very sorry to have delayed this web trick to combine MyBloglog and BlogCatalog to make it looks like one widget.

Please take note that this styling is for half size and not showing the screen name of visitors.

BlogCatalog Widget XHTML Codes

The basic structure of of BlogCatalog is very similar to MyBlogLog’s table structure. Here’s the XHTML code:

<table cellspacing="0" cellpadding="0" id="bc_widget">
<tr><th colspan="2" class="bc_head"></th></tr>
<tr><td id="mem_av_1" class="bc_avatar"><a href="#"><img /></a></td>
<td id="mem_un_1" class="bc_user"><a href="#"></a><span /></td>
</tr>
<tr>
<td id="mem_av_2" class="bc_avatar"><a href="#"><img /></a></td>
<td id="mem_un_2" class="bc_user"><a href="#"></a><span /></td>
</tr>
<tr>
<td id="mem_av_3" class="bc_avatar"><a href="#"><img /></a></td>
<td id="mem_un_3" class="bc_user"><a href="#"></a><span /></td>
</tr>
<tr>
<td id="mem_av_4" class="bc_avatar"><a href="#"><img /></a></td>
<td id="mem_un_4" class="bc_user"><a href="#"></a><span /></td>
</tr>
<tr><th colspan="2" class="bc_foot"><a href="#"></a></th></tr>
</table>

Both of BlogCatalog and MyBlogLog XHTML is similar. You can see it MyBlogLog XHTML here.

BlogCatalog Widget CSS

body table#bc_widget
The main table for the widget, here you can set the width and the outside border.

body table#bc_widget th.bc_head
The header row, containing Recent ReadersĀ or whatever you chose.

body table#bc_widget td.bc_avatar
The cell containing the BlogCatalog avatar.

body table#bc_widget td.bc_user
The cell containing the BlogCatalog member’s link, you can style extra hard by adding a or a:hover to the end of the line.

body table#bc_widget th.bc_foot
The footer row displays the “Powered by BlogCatalog”.

To be honest, I didn’t manage to combine both the MyBloglog and BlogCatalog’s widget purely using CSS. I couldn’t style BlogCatalog’s widget properly. However I was able to style MyBloglog’s widget the way I wanted and got rid of the header and footer of the widget.

Hence, this is just a work around using CSS to adjust the position of both widget to make it looks like one.

Styling MyBloglog’s Widget

First of all, you have to style your MyBloglog widget at the setting page. As you can see, I’ve set my widget size to 160px - the size of my sidebar. You can set it any size you want. For Crispnetworks.com, I choose to display 6 rows.

MyBloglog Widget setting

You can also use the CSS of MyBloglog to style the widget if CSS was your preference. Here’s the CSS code:

body .widget_mybloglog { width: 160px; }
body table#MBL_COMM {border: none; background-color: #FFFFFF;}
body table#MBL_COMM td.mbl_img {background:#FFFFFF; border:none}
body table#MBL_COMM img {border-color: #000000;}
body table#MBL_COMM td.mbl_fo_hidden{display:none;}
body table#MBL_COMM th.mbl_h {display:none;}
body table#MBL_COMM td.mbl_join_img { }
body table#MBL_COMM td.mbl_join { }

As you can see, both the header and footer of MyBloglog widget was hidden using the display:none properties.

Styling BlogCatalog Widget

Secondly, styling the BlogCatalog widget from the website is required. You have to set the background color, border color and heading color to white. Next type in the width and number of rows of the widget you want. Then turn off the Usernames and choose small for the Avatars.

BlogCatalog widget setting

Lining MyBloglog and BlogCatalog widgets

MyBloglog and BlogCatalog Widget

Now you have to put both of the widgets’ javascript codes together.

Here’s how you line them up:

Widgets script line up

I prefer to put MyBloglog’s widget first because when a big avatar asking readers who are not logged into MyBloglog or non MyBloglog’s member to join the community.

As a result (the screenshot on the left), you’ll see the gaps between the widget and the header of the next item. The reason for the gaps you see there are actually the header (Recent Readers) and footer (Powered by BlogCatalog).

Closing the gap between both widget

So how do you close the gap? All we need to do is to use a DIV tag around the BlogCatalog’s widget. Then use the margin property of CSS to style the margin of the four sides of the widget, i.e top, left, bottom and right.

Widgets script line up

Below is the CSS codes to style the DIV tag for BlogCatalog:

#recent_readers_blogcatalog {
margin: -20px 0px -30px 0px;
}

The negative margin is to hide both the header under MyBloglog’s widget and the footer behind the header of “Crisp Affiliation”. Viola, there you go it’ll look like one widget after all these are done. Take a look at my “Crisp Reader” widget - MyBloglog and BlogCatalog combined.

Do you have any other way to do this? Please share your idea with me in the comment.

Technorati , , , ,

Popularity: 68% [?]

Share This Post: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • De.lirio.us
  • SphereIt
  • StumbleUpon
  • Technorati
  • Furl
  • Netscape
  • Reddit
  • YahooMyWeb
  • Linkter
  • NewsVine
  • ThisNext
  • Slashdot
  • Spurl

Similar Posts:

RSS feed | Trackback URI

16 Comments »

Comment by Terence Chang Subscribed to comments via email
2007-06-26 18:07:03
MyAvatars 0.2

Very well done!

Smart way to combine the two into one!

Comment by Tommy Chieng Subscribed to comments via email
2007-06-26 18:21:47
MyAvatars 0.2

hehehe…just an idea I had and I prefer it to look like one. That’s why I tried and tried. Finally that’s the best way I can think of to combine both mybloglog and blogcatalog widget

 
 
Comment by PilotJohn Subscribed to comments via email
2007-06-26 20:11:05
MyAvatars 0.2

Hey Tommy! Good post on combining the two…..

What plugin do you use to show pictures of people who comment on your site? I have tried a couple and I can’t get any to work right on my site….

Comment by Tommy Chieng Subscribed to comments via email
2007-06-26 20:51:51
MyAvatars 0.2

Thanks John.

I use My Avatar

Try it and let me know if its working fine after this.

Cheers mate.

 
 
Comment by McBilly Subscribed to comments via email
2007-06-27 02:28:56
MyAvatars 0.2

Tommy! You’re a genius! I’m gonna try this out right away. Thanks for sharing this beautiful info. Dugg it. :)

Comment by Tommy Chieng Subscribed to comments via email
2007-06-27 15:37:02
MyAvatars 0.2

McBilly, you’re most welcome. I’m not a genius. Just a newbie sharing things that I think is useful for my readers…cheers.
Tell me when you do it in your blog and share with me if you can make enhancement to it. Cheers.

 
 
Comment by Cynthia Subscribed to comments via email
2007-06-27 05:30:51
MyAvatars 0.2

Very impressive… incomprehensible to me, but very impressive. You seem like a nice young guy who would make an effort to explain some of this technical stuff to old ladies too… bless you.

Comment by Tommy Chieng Subscribed to comments via email
2007-06-27 15:55:45
MyAvatars 0.2

Hi Cynthia,
No one is too old for tech stuff. My friend’s grandmum is doing stuff online at 70 years old!

Thanks for the compliment.

 
 
Comment by Weng Subscribed to comments via email
2007-06-29 03:23:32
MyAvatars 0.2

Hi Tommy, it shows two of me, since I’m registered on both communities.

Comment by Tommy Chieng Subscribed to comments via email
2007-06-29 17:26:56
MyAvatars 0.2

Yes, it’ll display two of your faces if you are both sites’ member.

This combination was meant to just make it look like one widget. :)

 
 
2007-06-29 04:04:36
MyAvatars 0.2

[...] Blogging and Make Money Online Blog by Tommy Chieng - Combining MyBloglog and BlogCatalog - Test Everything on Your Website - Atomic Blogging Live in Action Tags: Speed, Linking, Friday, [...]

 
Comment by Nicholas Subscribed to comments via email
2007-06-29 10:46:21
MyAvatars 0.2

Ok, this is kinda cool, does it works with Blogger blogs?

Nicholas

Comment by Tommy Chieng Subscribed to comments via email
2007-06-29 17:32:06
MyAvatars 0.2

I believe it does work if you can display the widgets in Blogger blogs.

Have you give it a try?

 
 
Comment by IngaOz Subscribed to comments via email
2007-07-05 21:55:44
MyAvatars 0.2

Great tip! Thanks! Used on my blog too :)

Comment by Tommy Chieng Subscribed to comments via email
2007-07-15 09:10:48
MyAvatars 0.2

You’re welcome! :mrgreen:

 
 
Comment by Nicholas Subscribed to comments via email
2007-09-05 19:27:50
MyAvatars 0.2

THis is simle, I get it work in my blog. Thanks !

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.