Categories: Tips & Tricks

Build a classic MyBlogLog widget

In this post I will show you how I created my custom widget showcasing mybloglog readers.

In your function.php file add this simple line of code:

<?php
// MyBlogLog
function MyBlogLogWidget()
{
?>
<script type="text/javascript" src="http://pub.mybloglog.com/comm2.php?mblID=ReplaceWithYourID&amp;c_width=220&amp;c_sn_opt=n&amp;c_rows=6&amp;c_img_size=h&amp;c_heading_text=&amp;c_color_heading_bg=e0e0d4&amp;c_color_heading=E8A02C&amp;c_color_link_bg=e0e0d4&amp;c_color_link=d54e21&amp;c&amp;c_color_bottom_bg=e0e0d4"></script>
<?php } 

//register the sidebar 'the widget name', 'the widget function'//
register_sidebar_widget('MyBlogLog Widget', 'MyBlogLogWidget');

?>

That’s it, just replace the “ReplaceWithYourID” with your mybloglog ID. You can also change the width at c_width=220 to what ever you like.

If you look closely at the code you may also see color codes, you may change them to corresponding hex codes, for example: c_color_bottom_bg=e0e0d4 is the color for the bottom background. e0e0d4 is a light gray, we can change it to ffffff and make it white.

That’s it, enjoy!

Web Master

Hi, I am Miguel, I bought this site in 2009. So I now run or manage the site. Please visit my new website or follow me on twitter @W3i.

View Comments

Recent Posts

WPLover: On Launching a WordPress theme

I just came across this article over at WPLover. Was very good, especially since I…

5 hours ago

Maintenance release for Hybrid 0.5

Today has released an update to his Hybrid Theme. Version 0.5.1 can be found at…

17 hours ago

Using the swekey on your blog

If you've downloaded the Swekey plugin and plan on using it for users to login…

1 day ago

April’s new meetup location for LAWPUG

Anyone in the Los Angeles area? Well the first Sunday of the month is the…

2 days ago

‘Portal’ And ‘Left 4 Dead 2’ Arrive On Linux

Steam is powerful, hot, and painful. It can move trains, boats, and has driven minds…

2 days ago

Swekey: A safe web enabler usb?

I received a Swekey in the mail this week. What's a Swekey you ask? Like…

3 days ago