Collapsible Sidebar
Posted on September 8, 2009
Filed Under Blogging | Leave a Comment
So my blog has been updated with a collapsible sidebar. If your browser supports Javascript (which it should) you will see a vertical bar to the right of the main content. If you click on the bar the main content area will stretch to the width of my header bar. This is useful if I post code that is too wide for the main content area on my blog. Anyway, tell me what you guys think.
Tags: javascript, templatesGravatars
Posted on June 11, 2009
Filed Under Blogging | Leave a Comment
Wow, I never knew about Gravatars until just now. Everyone needs to go to Gravatar.com and register an avatar that can be used across the web on many websites (including this one). The avatar is associated with your email address and if a website uses Gravatar it just checks to see if you have one setup on Gravatar.com. If you look at comments on this site you will now see avatars. This is a really amazing idea!
Now if you have a wordpress blog and you want to incorporate Gravatars into your template, I suggest you use this line of code in your comment template.
<?php echo get_avatar( $id_or_email, $size = '96', $default = '<path_to_url>' ); ?>
Replace $id_or_email with $comment (this is what I used) or with get_the_author_id() (it varies from theme to theme), replace XX with the size you want the images (I use 50 pixels), and replace ‘
Hope this was educational, and remember to sign up for a Gravatar!
Tags: avatar, webaccountNuking A Blog
Posted on June 9, 2009
Filed Under Blogging | 2 Comments
In an attempt to make this blog more professional, I deleted all of my old content. I want this blog to be about programming, technology, and the works. No personal stuff on here at all. I can do that in Facebook Notes or on my Myspace Blog if I want.
So with a little SQL and dissecting of this diagram, I figured out how to keep the content I wanted and delete the rest (without going through the web admin). All you really need to do is delete all posts except for those that are pages, then delete all comments (i kept 1), then delete all taxonomy terms by deleting everything (except for maybe the blogroll term) from wp_terms, wp_term_taxonomy, and wp_term_relationships.
It takes a little work, but it’s worth it.
Tags: Wordpress