Posted in Uncategorized on December 20th, 2011 by admin – Be the first to comment
I love the Minimatica theme by onedesigns.com (thanks Daniel!) . There were a few things I changed to suit my tastes better, one of which was to the loop.php file. For example, I didn't need the folded, author, time-date stamp biz which hovers over the thumbnails in the blog view – so here's my mod:
<?php
/**
* The Main Loop
*
* Used as fallback if no specific loop file found
*
* @package WordPress
* @subpackage Minimatica
* @since Minimatica 1.0
*/
?>
<?php if( have_posts() ) : ?>
<div id="content" role="main">
<?php while( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php if( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
<?php the_post_thumbnail( 'homepage-thumb' ); ?>
</a>
<?php endif; ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<!– .entry-meta –>
</header><!– .entry-header –>
<section>
<?php the_excerpt(); ?>
</section><!– .entry-summary –>
<footer>
</footer><!– entry-footer –>
</article><!– .post –>
<?php endwhile; ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="posts-nav">
<div><?php next_posts_link( '← ' . __( 'Older Posts', 'minimatica' ) ); ?></div>
<div><?php previous_posts_link( __( 'Newer Posts', 'minimatica' ) . ' →' ); ?></div>
<div></div>
</div><!– #nav-above –>
<?php endif; ?>
</div><!– #content –>
<?php else : ?>
<div id="content">
<div id="post-0" <?php post_class(); ?>>
<div>
<p><?php _e( 'The content you were looking for could not be found.', 'minimatica' ); ?></p>
<?php get_search_form(); ?>
</div><!– .entry-content –>
</div><!– .post –>
</div><!– #content –>
<?php endif; ?>
Posted in Uncategorized on December 12th, 2011 by admin – Be the first to comment
<script type="text/javascript"> var YWPParams = { theme: "silver", autoadvance: false }; </script>
<script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script>
Posted in Uncategorized on December 8th, 2011 by admin – Be the first to comment
So, and as a very young musician, that's how I wanted to play, exactly. I didn't care if someone said I sounded like him, that's what I wanted to do. And that was all I dreamt of doing. I didn't want to be original; I wanted to play like Charlie Parker.
– Jackie McLean
Posted in Uncategorized on November 21st, 2011 by admin – Be the first to comment
Sometimes it's just easier and faster to manually edit HTML than to try and program it out. Provided the editing isn't prohibitive, taking the flat file HTML produced by php or perl and just fixing it there rather than spending hours on end trying to code it out works for me.
Posted in Uncategorized on November 20th, 2011 by admin – Be the first to comment
Happening more and more these days. :-(
Posted in Uncategorized on November 15th, 2011 by admin – Be the first to comment
UPDATE table SET field = replace(field,"textA","textB");
Posted in Uncategorized on November 13th, 2011 by admin – Be the first to comment
Found out yesterday that item-2.mp3 sorts higher alphabetically in a list than item.mp3 :-|
For example:
item-2.mp3
item.mp3
This unfortunate file naming behavior occurs when dragging an iTunes playlist with duplicate song titles to a folder on the desktop. My MySQL import got all messed up thanks to that…
Thanks to Automator, one solution was to re-write the files as item.mp3 and item2.mp3 and so on (which sorts as expected):
item.mp3
item2.mp3
Posted in Uncategorized on November 8th, 2011 by admin – Be the first to comment
To remove Categories from the title
<?php wp_list_categories('title_li='); ?>
To change the title from Categories to something else. For example, Galleries
<?php wp_list_categories('title_li=Galleries'); ?>
Posted in Uncategorized on October 31st, 2011 by admin – Be the first to comment
A couple of my sites are down due to hardware issues, namely a faulty hard drive that my host says they're replacing. Whenever this happens I'm reminded of the peace of mind that comes from having full backups and the stress that happens when I don't. Soon as service is restored, I'll be backing up!
Posted in Uncategorized on October 31st, 2011 by admin – Be the first to comment
Just read on Yahoo! that the world now has an estimated 7 billion people. Yikes.