Connect with us

Tips & Tricks

Build a classic MyBlogLog widget

Published

on

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!

Continue Reading
4 Comments

4 Comments

  1. Danny

    February 5, 2009 at 9:04 am

    Hello, using your code, I obtain only an empty . have you got any idea?

    Danny´s last blog post..Proprieta’ Font-Weight: solo un browser la supporta

  2. frosty

    February 5, 2009 at 1:23 pm

    Hey Danny,
    Make sure this is pasted into your functions.php and then you should see a ‘widget’ in your widgets area..

  3. Glenn

    March 19, 2009 at 4:57 pm

    Austin,

    This disadvantage of placing widgets in the functions.php file is (I think) they get clobbered on an update of WordPress.

    Again you could use Widgetifyr.com to easily create a stand alone widget.

    Thanks
    Glenn

    • Austin

      March 19, 2009 at 7:49 pm

      Thanks Glenn,
      I will give your service a try with this widget.

You must be logged in to post a comment Login

Leave a Reply

Themes

Fixing plugins not compatible with hybrid 0.4.2

Published

on

Hey everyone, as you may have noticed I have a running on the site. While everything almost everything moved over smoothly, there was an issue with how my parent theme striped text in typography. This caused some plugins, like cformsII to not be allowed to print to the screen. Justin had helped to find a fix to filter the hybrid_typography function.

Originally this function filtered out and changed some text that would not validate as XHTML. This had to be removed by running a new function in the child theme’s function.php file.

add_action('init', 'remove_typography');

function remove_typography() {
	remove_filter('the_content', 'hybrid_typography', 11);
}
Continue Reading

Plugins

Add the twittar plugin for WordPress w/ comment threading

Published

on

I talked about the Twittar plugin in a previous post. But learned that the read me text file was only useful for installing the necessary php code into WordPress themes that don’t have comment threading enabled.

Since most new themes past version 2.7, pull the comments section from functions.php file, that is where you have to edit the avatars in order to show the twittar settings.

First open you functions.php, and look for a line of code that says:

function custom_comment()

This is where your new comments are pulled from when you have the threaded comments enabled.

Now just find <?php echo get_avatar( $comment, $args['avatar_size'] ); ?> & replace with <?php twittar(70, "", "", "avatar avatar-70 photo", 1, "R"); ?>. Keep in mind that you will need to edit the Twittar setting to fit your site.

Continue Reading

Tips & Tricks

Styling your ordered & unordered list items into 2 columns

Published

on

In a previous post I showed you how to create a custom widget, then I showed you how to create a widget for your monthly archives, and limit the month’s that show. I am showing the past 4 months in my widget at this time.

One of my readers: Alex asked:

How did you make the archives widget to show the dates separately into two columns?

Now I will show you a CSS trick to create this effect:

First we will give the unordered list a width of 100%:

ul#archives {
	width:110%;
	}

Then we will style the <li> nested inside.

ul#archives li {
	display:inline;
	float:left;
	width:120px;
	}

And that is it. Please make sure that you clear the float after your closing </ul>.

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

Pete Buttigieg Net Worth: 5 Facts You Should Know

Pete Buttigieg Net Worth: 5 Facts You Should Know

Pete Buttigieg is the mayor of South Bend, Indiana. He is also an American war veteran and a former consultant. In the recent days, Buttigieg has been growing his name with him announcing candidacy for the Presidential election in 2020. Then President Obama called him as one of four Democrats who represented the future of […]

Yandy Smith Net Worth

Yandy Smith Net Worth

Yandy Smith Net Worth. The American celeb Yandy Smith has a net value of $15 million. She is a reality TV star and music producer. Yandy started her professional career working in the entertainment industry. She started working as an executive assistant in a company called Violator Management. Some of her clients include high-profile musicians […]

Jasmine Luv Net Worth: How Rich is the YouTube star?

Jasmine Luv Net Worth: How Rich is the YouTube star?

Jasmine Luv is an American Youtuber who is known for her comedic videos which are very relatable to the fans. This has helped her to build a fan following on Instagram of over 1.3 million and is also working on a Youtube Channel that has already crossed 110k subscribers. As of 2019, Jasmine Luv net […]

Jasmine Roth Net Worth: How Rich is Jasmine Roth Actually?

Jasmine Roth Net Worth: How Rich is Jasmine Roth Actually?

Jasmine Roth is the founder of Built Custom Homes which focuses on custom designs for new construction projects. Moreover, Roth is also a television personality being the host of the show called Hidden Potential. As of 2019, Jasmine Roth net worth is estimated to be $1.5 million. Roth grew up in Virginia and since her […]

Trending