<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Design Philippines &#124; MikeWagan.net &#187; Web Design</title>
	<atom:link href="http://www.mikewagan.net/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikewagan.net</link>
	<description>Web Design, Life, and Everything in Between</description>
	<lastBuildDate>Sat, 10 Jul 2010 06:15:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>20+ WordPress Codes You Might Need On Your Next Project</title>
		<link>http://www.mikewagan.net/2010/04/20-wordpress-codes-you-might-need-on-your-next-project/</link>
		<comments>http://www.mikewagan.net/2010/04/20-wordpress-codes-you-might-need-on-your-next-project/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 08:13:13 +0000</pubDate>
		<dc:creator>Mike Wagan</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Design Resources]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress codes]]></category>

		<guid isPermaLink="false">http://www.mikewagan.net/?p=348</guid>
		<description><![CDATA[Undeniably, WordPress has been a premiere choice by web designers and internet publishers as their main blogging platform. One of the considerations of their choice is the flexibility of WordPress and easy customization of templates. Also, a lot of resources are available online on how to make the popular platform even more. Here are 20+ [...]


Related posts:<ol><li><a href='http://www.mikewagan.net/2009/09/10-plugins-to-make-wordpress-a-great-cm/' rel='bookmark' title='Permanent Link: 10 Plugins to Make WordPress a Great CMS'>10 Plugins to Make WordPress a Great CMS</a> <small>I&#8217;ve been using the blogging platform, WordPress, as a CMS for the company I&#8217;m working with right now because I...</small></li><li><a href='http://www.mikewagan.net/2009/11/search-and-replace-in-mysql/' rel='bookmark' title='Permanent Link: Search and Replace in MySQL'>Search and Replace in MySQL</a> <small>I just went through a domain transfer for one of our websites, and the links in the posts are all...</small></li><li><a href='http://www.mikewagan.net/2009/12/100-new-free-but-premium-like-wordpress-themes/' rel='bookmark' title='Permanent Link: 100 New Free but Premium-like WordPress Themes'>100 New Free but Premium-like WordPress Themes</a> <small>If you&#8217;re a Worpress Theme addict and you&#8217;ve not yet visited this post, I suggest you do because these are...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Undeniably, WordPress has been a premiere choice by web designers and internet publishers as their main blogging platform. One of the considerations of their choice is the flexibility of WordPress and easy customization of templates. Also, a lot of resources are available online on how to make the popular platform even more. Here are 20+ WordPress Codes that you can use on your next WordPress project. <span id="more-348"></span>
<center>
<table><tr><td>
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 336x280, created 8/4/09 mikewagan.net */
google_ad_slot = "3873552827";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td><td>
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 160x90, created 10/8/09 mikewagan.net */
google_ad_slot = "0020347340";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 160x90, created 10/8/09 mikewagan.net */
google_ad_slot = "0020347340";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td></tr></table>
</center>
</p>
<h3>Display Tags In A Dropdown Menu</h3>
<p>In your theme folder, paste the following code to the functions.php  file. If you don’t have a functions.php file, create one.</p>
<pre><code>&lt;?php
function dropdown_tag_cloud( $args = '' ) {
	$defaults = array(
		'smallest' =&gt; 8, 'largest' =&gt; 22, 'unit' =&gt; 'pt', 'number' =&gt; 45,
		'format' =&gt; 'flat', 'orderby' =&gt; 'name', 'order' =&gt; 'ASC',
		'exclude' =&gt; '', 'include' =&gt; ''
	);
	$args = wp_parse_args( $args, $defaults );

	$tags = get_tags( array_merge($args, array('orderby' =&gt; 'count', 'order' =&gt; 'DESC')) ); // Always query top tags

	if ( empty($tags) )
		return;

	$return = dropdown_generate_tag_cloud( $tags, $args ); // Here's where those top tags get sorted according to $args
	if ( is_wp_error( $return ) )
		return false;
	else
		echo apply_filters( 'dropdown_tag_cloud', $return, $args );
}

function dropdown_generate_tag_cloud( $tags, $args = '' ) {
	global $wp_rewrite;
	$defaults = array(
		'smallest' =&gt; 8, 'largest' =&gt; 22, 'unit' =&gt; 'pt', 'number' =&gt; 45,
		'format' =&gt; 'flat', 'orderby' =&gt; 'name', 'order' =&gt; 'ASC'
	);
	$args = wp_parse_args( $args, $defaults );
	extract($args);

	if ( !$tags )
		return;
	$counts = $tag_links = array();
	foreach ( (array) $tags as $tag ) {
		$counts[$tag-&gt;name] = $tag-&gt;count;
		$tag_links[$tag-&gt;name] = get_tag_link( $tag-&gt;term_id );
		if ( is_wp_error( $tag_links[$tag-&gt;name] ) )
			return $tag_links[$tag-&gt;name];
		$tag_ids[$tag-&gt;name] = $tag-&gt;term_id;
	}

	$min_count = min($counts);
	$spread = max($counts) - $min_count;
	if ( $spread &lt;= 0 )
		$spread = 1;
	$font_spread = $largest - $smallest;
	if ( $font_spread &lt;= 0 )
		$font_spread = 1;
	$font_step = $font_spread / $spread;

	// SQL cannot save you; this is a second (potentially different) sort on a subset of data.
	if ( 'name' == $orderby )
		uksort($counts, 'strnatcasecmp');
	else
		asort($counts);

	if ( 'DESC' == $order )
		$counts = array_reverse( $counts, true );

	$a = array();

	$rel = ( is_object($wp_rewrite) &amp;&amp; $wp_rewrite-&gt;using_permalinks() ) ? ' rel="tag"' : '';

	foreach ( $counts as $tag =&gt; $count ) {
		$tag_id = $tag_ids[$tag];
		$tag_link = clean_url($tag_links[$tag]);
		$tag = str_replace(' ', '&amp;nbsp;', wp_specialchars( $tag ));
		$a[] = "\t<span>&lt;<span>option</span><span> value=</span>'$tag_link'&gt;</span>$tag ($count)<span>&lt;/<span>option</span>&gt;</span>";
	}

	switch ( $format ) :
	case 'array' :
		$return =&amp; $a;
		break;
	case 'list' :
		$return = "<span>&lt;<span>ul</span><span> class=</span>'wp-tag-cloud'&gt;</span>\n\t<span>&lt;<span>li</span>&gt;</span>";
		$return .= join("<span>&lt;/<span>li</span>&gt;</span>\n\t<span>&lt;<span>li</span>&gt;</span>", $a);
		$return .= "<span>&lt;/<span>li</span>&gt;</span>\n<span>&lt;/<span>ul</span>&gt;</span>\n";
		break;
	default :
		$return = join("\n", $a);
		break;
	endswitch;

	return apply_filters( 'dropdown_generate_tag_cloud', $return, $tags, $args );
}
?&gt;</code></pre>
<p>Now open the file where you want the list to be displayed and paste  the following code:</p>
<pre><code><span>&lt;<span>select</span><span> name=<span>"tag-dropdown"</span></span><span> onchange=<span>"document.location.href=this.options[this.selectedIndex].value;"</span></span>&gt;</span>
	<span>&lt;<span>option</span><span> value=<span>"#"</span></span>&gt;</span>Tags<span>&lt;/<span>option</span>&gt;</span>
	&lt;?php dropdown_tag_cloud('number=0&amp;order=asc'); ?&gt;
<span>&lt;/<span>select</span>&gt;</span></code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/wordpress-hack-display-your-tags-in-a-dropdown-menu">WpRecipes</a> <strong>Credits:</strong> <a href="http://wphacks.com/how-to-display-wordpress-tags-dropdown-menu/">WpHacks</a></p>
<h3>Get Posts Published Between Two Particular Dates</h3>
<p>Just before the loop starts, paste the following code. Change the  dates on line 3 according to your needs.</p>
<pre><code>&lt;?php
  <span><span>function</span> <span>filter_where</span><span>($where = <span>''</span>)</span> {</span>
        $where .= <span>" AND post_date &gt;= '2009-05-01' AND post_date &lt;= '2009-05-15'"</span>;
    <span>return</span> $where;
  }
add_filter(<span>'posts_where'</span>, <span>'filter_where'</span>);
query_posts($query_string);
?&gt;</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/wordpress-loop-get-posts-published-between-two-particular-dates">WpRecipes</a> <strong>Credits:</strong> <a href="http://codex.wordpress.org/Template_Tags/query_posts#Time_Parameters">Codex</a></p>
<h3>Get Posts With A Specific Custom Field &amp; Value</h3>
<p>Add the query_posts() function just before the Loop. Change the <code>meta_key</code> and <code>meta_value</code> accordingly. The example shown below will  get posts with custom field &#8220;review_type&#8221; with value &#8220;movie&#8221;.</p>
<pre><code>&lt;?php query_posts('meta_key=review_type&amp;meta_value=movie');  ?&gt;
&lt;?php if (have_posts()) : ?&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
...
...</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/easily-get-posts-with-a-specific-custom-fieldvalue-on-your-wordpress-blog">WpRecipes</a> <strong>Credits:</strong> <a href="http://www.johnkolbert.com/">John  Kolbert</a></p>
<h3>Get Latest Sticky Posts</h3>
<p>Paste the following code before the loop. This code will retrieve the  5 most recent sticky posts. To change the number of retrieved posts,  just change the 5 by the desired value on line  4.</p>
<pre><code>&lt;?php
	$sticky = get_option('sticky_posts');
	rsort( $sticky );
	$sticky = array_slice( $sticky, 0, 5);
        query_posts( array( 'post__in' =&gt; $sticky, 'caller_get_posts' =&gt; 1 ) );
?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-get-latest-sticky-posts">WpRecipes</a> <strong>Credits:</strong> <a href="http://justintadlock.com/archives/2009/03/28/get-the-latest-sticky-posts-in-wordpress">Justin  Tadlock</a></p>
<h3>Automatically Insert Content In Your Feeds</h3>
<p>In your theme folder, functions.php file, paste the following code.  This code will automatically insert the content after each post in your  RSS feeds. Hence you can use this code to insert ads or promotional  text.</p>
<pre><code>function insertFootNote($content) {
        if(!is_feed() &amp;&amp; !is_home()) {
                $content.= "<span>&lt;<span>h4</span>&gt;</span>Enjoyed this article?<span>&lt;/<span>h4</span>&gt;</span>";
                $content.= "<span>&lt;<span>p</span>&gt;</span>Subscribe to our <span>&lt;<span>a</span><span> href=</span>'#'&gt;</span>RSS feed<span>&lt;/<span>a</span>&gt;</span><span>&lt;/<span>p</span>&gt;</span>";
        }
        return $content;
}
add_filter ('the_content', 'insertFootNote');

</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-automatically-insert-content-after-each-post">WpRecipes</a> <strong>Credits:</strong> <a href="http://www.wordpress-tutoriel.com/tutoriel/comment-inserer-du-texte-automatiquement-apres-chaque-article/">Cédric  Bousmane</a></p>
<h3>Display The Most Commented Posts</h3>
<p>Just paste the following code in your template file where you want to  display the most commented posts (eg. sidebar.php). To change the  number of displayed posts, simply change the 5 on line 3.</p>
<pre><code><span>&lt;<span>h2</span>&gt;</span>Popular Posts<span>&lt;/<span>h2</span>&gt;</span>
<span>&lt;<span>ul</span>&gt;</span>
&lt;?php $result = $wpdb-&gt;get_results("SELECT comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count DESC LIMIT 0 , 5");
foreach ($result as $post) {
setup_postdata($post);
$postid = $post-&gt;ID;
$title = $post-&gt;post_title;
$commentcount = $post-&gt;comment_count;
if ($commentcount != 0) { ?&gt;

<span>&lt;<span>li</span>&gt;</span><span>&lt;<span>a</span><span> href=<span>"&lt;?php echo get_permalink($postid); ?&gt;"</span></span><span> title=<span>"&lt;?php echo $title ?&gt;"</span></span>&gt;</span>
&lt;?php echo $title ?&gt;<span>&lt;/<span>a</span>&gt;</span> {&lt;?php echo $commentcount ?&gt;}<span>&lt;/<span>li</span>&gt;</span>
&lt;?php } } ?&gt;

<span>&lt;/<span>ul</span>&gt;</span>
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-display-your-most-popular-content-in-your-blog-sidebar">WpRecipes</a> <strong>Credits:</strong> <a href="http://www.problogdesign.com/wordpress/create-your-own-popular-posts-page/">ProBlogDesign</a></p>
<h3>Display Most Commented Posts In 2008</h3>
<pre><code><span>&lt;<span>h2</span>&gt;</span>Most commented posts from 2008<span>&lt;/<span>h2</span>&gt;</span>
<span>&lt;<span>ul</span>&gt;</span>
&lt;?php
$result = $wpdb-&gt;get_results("SELECT comment_count,ID,post_title, post_date FROM $wpdb-&gt;posts WHERE post_date BETWEEN '2008-01-01' AND '2008-12-31' ORDER BY comment_count DESC LIMIT 0 , 10");

foreach ($result as $topten) {
    $postid = $topten-&gt;ID;
    $title = $topten-&gt;post_title;
    $commentcount = $topten-&gt;comment_count;
    if ($commentcount != 0) {
    ?&gt;
         <span>&lt;<span>li</span>&gt;</span><span>&lt;<span>a</span><span> href=<span>"&lt;?php echo get_permalink($postid); ?&gt;"</span></span>&gt;</span>&lt;?php echo $title ?&gt;<span>&lt;/<span>a</span>&gt;</span><span>&lt;/<span>li</span>&gt;</span>

    &lt;?php }
}
?&gt;
<span>&lt;/<span>ul</span>&gt;</span>
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-display-the-most-commented-posts-of-2008">WpRecipes</a></p>
<h3>Display Related Posts Based On Post Tags</h3>
<p>This code will display related posts based on the current post  tag(s). It must be pasted within the loop.</p>
<pre><code>&lt;?php
//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post-&gt;ID);
if ($tags) {
  echo 'Related Posts';
  $first_tag = $tags[0]-&gt;term_id;
  $args=array(
    'tag__in' =&gt; array($first_tag),
    'post__not_in' =&gt; array($post-&gt;ID),
    'showposts'=&gt;5,
    'caller_get_posts'=&gt;1
   );
  $my_query = new WP_Query($args);
  if( $my_query-&gt;have_posts() ) {
    while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;

      <span>&lt;<span>p</span>&gt;</span><span>&lt;<span>a</span><span> href=<span>"&lt;?php the_permalink() ?&gt;"</span></span><span> rel=<span>"bookmark"</span></span><span> title=<span>"Permanent Link to &lt;?php the_title_attribute(); ?&gt;"</span></span>&gt;</span>&lt;?php the_title(); ?&gt;<span>&lt;/<span>a</span>&gt;</span><span>&lt;/<span>p</span>&gt;</span>
      &lt;?php
    endwhile;
  }
}
?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-show-related-posts-without-a-plugin">WpRecipes</a> <strong>Credits:</strong> <a href="http://wordpress.org/support/topic/247918">MichaelH</a></p>
<h3>Display The Number Of Search Results</h3>
<p>Open search.php, copy and paste the following code.</p>
<pre><code><span>&lt;<span>h2</span><span> class=<span>"pagetitle"</span></span>&gt;</span>Search Results for &lt;?php /* Search Count */ $allsearch = &amp;new WP_Query("s=$s&amp;showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch-&gt;post_count; _e(''); _e('<span>&lt;<span>span</span><span> class=<span>"search-terms"</span></span>&gt;</span>'); echo $key; _e('<span>&lt;/<span>span</span>&gt;</span>'); _e(' — '); echo $count . ' '; _e('articles'); wp_reset_query(); ?&gt;<span>&lt;/<span>h2</span>&gt;</span>
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-display-the-number-of-results-in-wordpress-search">WpRecipes</a> <strong>Credits:</strong> <a href="http://www.problogdesign.com/wordpress/3-codes-for-a-far-better-wordpress-search-page/">ProBlogDesign</a></p>
<h3>Display The Comment Page Number In The &lt;Title&gt; Tag</h3>
<p>Open the header.php file. Paste the following code in between the <code>&lt;title&gt;</code> tag.</p>
<pre><code>&lt;?php if ( $cpage &lt; 2 ) {}
else { echo (' - comment page '); echo ($cpage);}
?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-avoid-duplicate-content-in-paged-comments">WpRecipes</a> <strong>Credits:</strong> <a href="http://www.malcolmcoles.co.uk/blog/avoid-duplicate-content-paged-comments-wordpress-27/">Malcolm  Coles</a></p>
<h3>Display The Future Posts</h3>
<p>The following code will display 10 future posts.</p>
<pre><code>
	<span>&lt;<span>p</span>&gt;</span>Future events<span>&lt;/<span>p</span>&gt;</span>
	&lt;?php query_posts('showposts=10&amp;post_status=future'); ?&gt;
	&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;

			<span>&lt;<span>p</span>&gt;</span>&lt;?php the_title(); ?&gt; &lt;?php the_time('j. F Y'); ?&gt;<span>&lt;/<span>p</span>&gt;</span>

	&lt;?php endwhile; else: ?&gt;<span>&lt;<span>p</span>&gt;</span>No future posts.<span>&lt;/<span>p</span>&gt;</span>&lt;?php endif; ?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-list-future-posts">WpRecipes</a></p>
<h3>Randomize Posts Order</h3>
<p>To randomize posts order, just add the following code before the  Loop.</p>
<pre><code>query_posts('orderby=rand');
//the Loop here...
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-randomize-posts-order">WpRecipes</a></p>
<h3>Display Word Count Of The Post</h3>
<p>Open single.php and paste the following code where you want to  display the word count.</p>
<pre><code>&lt;?php <span><span>function</span> <span>count_words</span><span>($str)</span>{</span>
     $words = <span>0</span>;
     $str = eregi_replace(<span>" +"</span>, <span>" "</span>, $str);
     $array = explode(<span>" "</span>, $str);
     <span>for</span>($i=<span>0</span>;$i &lt; count($array);$i++)
 	 {
         <span>if</span> (eregi(<span>"[0-9A-Za-zÀ-ÖØ-öø-ÿ]"</span>, $array[$i]))
             $words++;
     }
     <span>return</span> $words;
 }?&gt;

 Word count: &lt;?php echo count_words($post-&gt;post_content); ?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/laura-asked-how-to-get-words-count-of-your-post">WpRecipes</a></p>
<h3>Fetch RSS Feeds</h3>
<p>To display RSS feeds, you can use the WordPress built-in RSS parser.  To do so, include the rss.php file, and then use its <code>wp_rss()</code> function.</p>
<pre><code>&lt;?php include_once(ABSPATH.WPINC.'/rss.php');
wp_rss('http://feeds2.feedburner.com/WebDesignerWall', 5); ?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-display-your-latest-delicious-bookmark-on-your-wordpress-blog">WpRecipes</a></p>
<h3>Highlight Searched Text In Search Results</h3>
<p>Open search.php file and find the <code>the_title()</code> function.  Replace it with the following:</p>
<pre><code>echo $title;</code></pre>
<p>Now, just before the modified line, add this code:</p>
<pre><code>&lt;?php
	$title 	= get_the_title();
	$keys= explode(" ",$s);
	$title 	= preg_replace('/('.implode('|', $keys) .')/iu',
		'<span>&lt;<span>strong</span><span> class=<span>"search-excerpt"</span></span>&gt;</span>\0<span>&lt;/<span>strong</span>&gt;</span>',
		$title);
?&gt;</code></pre>
<p>Then open the style.css file. Add the following line to it:</p>
<pre><code><span>strong</span><span>.search-excerpt</span> <span>{ <span>background</span>:<span> yellow</span>; }</span>
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-enlight-searched-text-in-search-results">WpRecipes</a> <strong>Credits:</strong> <a href="http://yoast.com/wordpress-search/">Joost  de Valk</a></p>
<h3>Display A Greeting Message On A Specific Date (PHP)</h3>
<p>The following code will dispaly a greeting message only on Christmas  day.</p>
<pre><code>&lt;?php
if ((date('m') == 12) &amp;&amp; (date('d') == 25)) { ?&gt;
    <span>&lt;<span>h2</span>&gt;</span>Merry Christmas!<span>&lt;/<span>h2</span>&gt;</span>
&lt;?php } ?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-wish-your-reader-a-merry-christmas">WpRecipes</a></p>
<h3>Automatically Create A TinyURL For Each Post</h3>
<p>Open the functions.php file and paste the following code:</p>
<pre><code><span><span>function</span> <span>getTinyUrl</span><span>($url)</span> {</span>
    $tinyurl = file_get_contents(<span>"http://tinyurl.com/api-create.php?url="</span>.$url);
    <span>return</span> $tinyurl;
}
</code></pre>
<p>In the single.php file, paste the following within the loop where you  want to display the TinyURL:</p>
<pre><code>&lt;?php
$turl = getTinyUrl(get_permalink($post-&gt;ID));
echo 'Tiny Url for this post: <span>&lt;<span>a</span><span> href=<span>"'.$turl.'"</span></span>&gt;</span>'.$turl.'<span>&lt;/<span>a</span>&gt;</span>'
?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-automatically-provide-tinyurls-for-your-wordpress-blog-posts">WpRecipes</a></p>
<h3>Exclude Categories From Search</h3>
<p>Open the search.php file in your theme folder, paste the following  code before the Loop. The code will exclude categories with ID 1, 2, 3  in the search results.</p>
<pre><code>&lt;?php if( is_search() )  :
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("s=$s&amp;paged=$paged&amp;cat=-1,-2,-3");
endif; ?&gt;

//the Loop here...
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-limit-search-to-specific-categories">WpRecipes</a></p>
<h3>Exclude Categories From RSS</h3>
<p>Open the functions.php file from your theme. If your theme doesn’t  have a functions.php file, create one. Paste the following code in it:</p>
<pre><code>&lt;?php <span><span>function</span> <span>myFilter</span><span>($query)</span> {</span>
    <span>if</span> ($query-&gt;is_feed) {
        $query-&gt;set(<span>'cat'</span>,<span>'-5'</span>); <span>//Don't forget to change the category ID =^o^=</span>
    }
<span>return</span> $query;
}

add_filter(<span>'pre_get_posts'</span>,<span>'myFilter'</span>);
?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-exclude-categories-from-your-rss-feed">WpRecipes</a> <strong>Credits:</strong> <a href="http://www.jangro.com/a/2008/03/01/excluding-posts-from-your-blog-feed/"> Scott Jangro</a></p>
<h3>Using Shortcodes</h3>
<p>Open the functions.php file, paste the following code.</p>
<pre><code>&lt;?php <span><span>function</span> <span>wprecipes</span><span>()</span> {</span>
    <span>return</span> <span>'Have you checked out WpRecipes today?'</span>;
}

add_shortcode(<span>'wpr'</span>, <span>'wprecipes'</span>);
?&gt;
</code></pre>
<p>You’re now able to use the <em>wpr</em> shortcode. To do so, paste  the following line of code on the editor (in HTML mode) while writing a  post:</p>
<pre><code>[wpr]</code></pre>
<p>This short code will output the “Have you checked out WpRecipes  today?” message.</p>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-save-time-by-using-wordpress-shortcodes">WpRecipes</a> <strong>Source:</strong> <a href="http://codex.wordpress.org/Shortcode_API">Codex</a></p>
<h3>Display The Number Of Your Twitter Followers</h3>
<p>Paste the code anywhere you want to display the Twitter follower  count. Replace &#8220;YourUserID&#8221; with your Twitter account in last line.</p>
<pre><code>&lt;?php <span><span>function</span> <span>string_getInsertedString</span><span>($long_string,$short_string,$is_html=false)</span>{</span>
  <span>if</span>($short_string&gt;=strlen($long_string))<span>return</span> <span>false</span>;
  $insertion_length=strlen($long_string)-strlen($short_string);
  <span>for</span>($i=<span>0</span>;$i&lt;strlen($short_string);++$i){
    <span>if</span>($long_string[$i]!=$short_string[$i])<span>break</span>;
  }
  $inserted_string=substr($long_string,$i,$insertion_length);
  <span>if</span>($is_html &amp;&amp; $inserted_string[$insertion_length-<span>1</span>]==<span>'&lt;'</span>){
    $inserted_string=<span>'&lt;'</span>.substr($inserted_string,<span>0</span>,$insertion_length-<span>1</span>);
  }
  <span>return</span> $inserted_string;
}

<span><span>function</span> <span>DOMElement_getOuterHTML</span><span>($document,$element)</span>{</span>
  $html=$document-&gt;saveHTML();
  $element-&gt;parentNode-&gt;removeChild($element);
  $html2=$document-&gt;saveHTML();
  <span>return</span> string_getInsertedString($html,$html2,<span>true</span>);
}

<span><span>function</span> <span>getFollowers</span><span>($username)</span>{</span>
  $x = file_get_contents(<span>"http://twitter.com/"</span>.$username);
  $doc = <span>new</span> DomDocument;
  @$doc-&gt;loadHTML($x);
  $ele = $doc-&gt;getElementById(<span>'follower_count'</span>);
  $innerHTML=preg_replace(<span>'/^&lt;[^&gt;]*&gt;(.*)&lt;[^&gt;]*&gt;$/'</span>,<span>"<span>\\</span>1"</span>,DOMElement_getOuterHTML($doc,$ele));
  <span>return</span> $innerHTML;
}
?&gt;

&lt;?php echo getFollowers(<span>"YourUserID"</span>).<span>" followers"</span>; ?&gt;
</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/display-the-total-number-of-your-twitter-followers-on-your-wordpress-blog">WpRecipes</a></p>
<h3>Display FeedBurner Subscriber Count In Text</h3>
<pre><code>&lt;?php
	$fburl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=feed-id";
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_URL, $fburl);
	$stored = curl_exec($ch);
	curl_close($ch);
	$grid = new SimpleXMLElement($stored);
	$rsscount = $grid-&gt;feed-&gt;entry['circulation'];
	echo $rsscount;
?&gt;</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-display-your-feedburner-count-in-full-text">WpRecipes</a></p>
<h3>Display The Latest Twitter Entry</h3>
<p>Just paste this code in the template file (eg. sidebar.php) where you  want to display the latest tweet.</p>
<pre><code>&lt;?php

// Your twitter username.
$username = "TwitterUsername";

$prefix = "<span>&lt;<span>h2</span>&gt;</span>My last Tweet<span>&lt;/<span>h2</span>&gt;</span>";

$suffix = "";

$feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&amp;rpp=1";

function parse_feed($feed) {
    $stepOne = explode("<span>&lt;content<span> type=</span>\"<span>html</span>\"&gt;</span>", $feed);
    $stepTwo = explode("<span>&lt;/content&gt;</span>", $stepOne[1]);
    $tweet = $stepTwo[0];
    $tweet = str_replace("&amp;lt;", "&lt;", $tweet);
    $tweet = str_replace("&amp;gt;", "&gt;", $tweet);
    return $tweet;
}

$twitterFeed = file_get_contents($feed);
echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);
?&gt;</code></pre>
<p><strong>Via:</strong> <a href="http://www.wprecipes.com/how-to-display-your-latest-twitter-entry-on-your-wp-blog">WpRecipes</a> <strong>Credits:</strong> <a href="http://scriptplayground.com/tutorials/php/Latest-Twitter-Update-With-PHP/"> Ryan Barr</a></p>
<h3>Social Buttons</h3>
<h4>Facebook Share Button</h4>
<pre><code><span>&lt;<span>a</span><span> href=<span>"http://www.facebook.com/sharer.php?u=&lt;?php the_permalink();?&gt;&amp;t=&lt;?php the_title(); ?&gt;"</span></span>&gt;</span>Share on Facebook<span>&lt;/<span>a</span>&gt;</span></code></pre>
<h4>Digg it</h4>
<pre><code><span>&lt;<span>a</span><span> href=<span>"http://www.digg.com/submit?phase=2&amp;url=&lt;?php the_permalink();?&gt;"</span></span>&gt;</span>Digg It<span>&lt;/<span>a</span>&gt;</span></code></pre>
<h4>Stumble upon it</h4>
<pre><code><span>&lt;<span>a</span><span> href=<span>"http://www.stumbleupon.com/submit?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;"</span></span>&gt;</span>Stumble upon it<span>&lt;/<span>a</span>&gt;</span></code></pre>
<h4>Add to delicious</h4>
<pre><code><span>&lt;<span>a</span><span> href=<span>"http://delicious.com/post?url=&lt;?php the_permalink();?&gt;&amp;title=&lt;?php the_title();?&gt;"</span></span>&gt;</span>Add to delicious<span>&lt;/<span>a</span>&gt;</span></code></pre>
<h4>Share on technorati</h4>
<pre><code><span>&lt;<span>a</span><span> href=<span>"http://technorati.com/faves?sub=addfavbtn&amp;add=&lt;?php the_permalink();?&gt;"</span></span>&gt;</span>Share on technorati<span>&lt;/<span>a</span>&gt;</span></code></pre>
<h4>Tweet this</h4>
<pre><code><span>&lt;<span>a</span><span> href=<span>"http://twitter.com/home?status=Currently reading &lt;?php the_permalink(); ?&gt;"</span></span>&gt;</span>Tweet this<span>&lt;/<span>a</span>&gt;</span></code></pre>


<p>Related posts:<ol><li><a href='http://www.mikewagan.net/2009/09/10-plugins-to-make-wordpress-a-great-cm/' rel='bookmark' title='Permanent Link: 10 Plugins to Make WordPress a Great CMS'>10 Plugins to Make WordPress a Great CMS</a> <small>I&#8217;ve been using the blogging platform, WordPress, as a CMS for the company I&#8217;m working with right now because I...</small></li><li><a href='http://www.mikewagan.net/2009/11/search-and-replace-in-mysql/' rel='bookmark' title='Permanent Link: Search and Replace in MySQL'>Search and Replace in MySQL</a> <small>I just went through a domain transfer for one of our websites, and the links in the posts are all...</small></li><li><a href='http://www.mikewagan.net/2009/12/100-new-free-but-premium-like-wordpress-themes/' rel='bookmark' title='Permanent Link: 100 New Free but Premium-like WordPress Themes'>100 New Free but Premium-like WordPress Themes</a> <small>If you&#8217;re a Worpress Theme addict and you&#8217;ve not yet visited this post, I suggest you do because these are...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mikewagan.net/2010/04/20-wordpress-codes-you-might-need-on-your-next-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow Div Layers to Float over Flash, Youtube or Vimeo Videos</title>
		<link>http://www.mikewagan.net/2010/02/allow-div-layers-to-float-over-flash-youtube-or-vimeo-videos/</link>
		<comments>http://www.mikewagan.net/2010/02/allow-div-layers-to-float-over-flash-youtube-or-vimeo-videos/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 15:11:01 +0000</pubDate>
		<dc:creator>Mike Wagan</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Design Tutorials]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[youtube vimeo flash]]></category>

		<guid isPermaLink="false">http://www.mikewagan.net/?p=317</guid>
		<description><![CDATA[For web designers, its always a constant struggle to get those flash, youtube, or vimeo videos tuck under divs where you need them. They somehow always behave like their z-index is close to infinity. By default Flash content in a web page will appear on top of other elements on the page, including floating menus, [...]


Related posts:<ol><li><a href='http://www.mikewagan.net/2009/02/super-bowl-2009-videos/' rel='bookmark' title='Permanent Link: Super Bowl 2009 Videos'>Super Bowl 2009 Videos</a> <small>I have here a collection of the 2009 super bowl videos which I would like to share to you. Cracked.com...</small></li><li><a href='http://www.mikewagan.net/2008/10/please-dont-watch-this-video/' rel='bookmark' title='Permanent Link: Please Don&#8217;t Watch This Video!'>Please Don&#8217;t Watch This Video!</a> <small>This was me two years ago nung adik pa ako sa gitara at pagbabanda. Ampanget ko dito, hehehe&#8230; Just a...</small></li><li><a href='http://www.mikewagan.net/2008/10/first-solid-food-ni-jian/' rel='bookmark' title='Permanent Link: First Solid Food ni Jian'>First Solid Food ni Jian</a> <small>Eto ang unang try ni Jian sa pagkain ng solid food. Five months sya kumain ng first solid food (malambot...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>For web designers, its always a constant struggle to get those flash, youtube, or vimeo videos tuck under divs where you need them. They somehow always behave like their z-index is close to infinity.</p>
<p>By default Flash content in a web page will appear on top of other elements on the page, including floating menus, inline popups etc. This can be pretty annoying if you have a flyout menu on your page and it goes behind the Flash video and this post shows how simple it is to fix. This works in all browsers inclding IE6+<span id="more-317"></span>
<center>
<table><tr><td>
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 336x280, created 8/4/09 mikewagan.net */
google_ad_slot = "3873552827";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td><td>
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 160x90, created 10/8/09 mikewagan.net */
google_ad_slot = "0020347340";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 160x90, created 10/8/09 mikewagan.net */
google_ad_slot = "0020347340";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td></tr></table>
</center>
</p>
<p>The first screenshot below shows the default behaviour where the  floating menu appears behind the Vimeo Flash video:</p>
<div style="text-align: center;"><img src="http://www.electrictoolbox.com/images/content/embed-transparent-off.jpg" alt="embedded flash media player without  transparency" width="396" height="270" /></div>
<p>The second screenshot below shows the desired behavioiur where the  floating menu appears on top of the video:</p>
<div style="text-align: center;"><img src="http://www.electrictoolbox.com/images/content/embed-transparent-on.jpg" alt="embedded flash media player with  transparency" width="396" height="270" /></div>
<div style="text-align: left;"><strong>THE SOLUTION:</strong></div>
<p>The following &lt;param&gt; should be added within the  &lt;object&gt;:</p>
<pre>&lt;param name="wmode" value="transparent" /&gt;</pre>
<p>And the following should be added into the &lt;embed&gt; tag:</p>
<pre>wmode="transparent"</pre>
<p>The end result will be something along these lines:</p>
<pre>&lt;object width="400" height="300"&gt;
  &lt;param name="wmode" value="transparent" /&gt;
  &lt;param value="true" name="allowfullscreen" /&gt;
  &lt;param value="always" name="allowscriptaccess" /&gt;
  &lt;param name="movie" value="..." /&gt;
  &lt;embed width="400" height="300" allowscriptaccess="always"
    allowfullscreen="true" type="application/x-shockwave-flash"
    src="..." wmode="transparent"&gt;
  &lt;/embed&gt;
&lt;/object&gt;</pre>
<p>Now floating content will appear above the video.</p>
<p><em>Source: </em><a href="http://www.electrictoolbox.com/div-layers-float-over-flash-vimeo-youtube/" target="_blank"><em>ElectricToolbox.com</em></a></p>


<p>Related posts:<ol><li><a href='http://www.mikewagan.net/2009/02/super-bowl-2009-videos/' rel='bookmark' title='Permanent Link: Super Bowl 2009 Videos'>Super Bowl 2009 Videos</a> <small>I have here a collection of the 2009 super bowl videos which I would like to share to you. Cracked.com...</small></li><li><a href='http://www.mikewagan.net/2008/10/please-dont-watch-this-video/' rel='bookmark' title='Permanent Link: Please Don&#8217;t Watch This Video!'>Please Don&#8217;t Watch This Video!</a> <small>This was me two years ago nung adik pa ako sa gitara at pagbabanda. Ampanget ko dito, hehehe&#8230; Just a...</small></li><li><a href='http://www.mikewagan.net/2008/10/first-solid-food-ni-jian/' rel='bookmark' title='Permanent Link: First Solid Food ni Jian'>First Solid Food ni Jian</a> <small>Eto ang unang try ni Jian sa pagkain ng solid food. Five months sya kumain ng first solid food (malambot...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mikewagan.net/2010/02/allow-div-layers-to-float-over-flash-youtube-or-vimeo-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>21 CSS Tricks You Should Know</title>
		<link>http://www.mikewagan.net/2009/08/21-css-tricks-you-should-know/</link>
		<comments>http://www.mikewagan.net/2009/08/21-css-tricks-you-should-know/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 20:10:11 +0000</pubDate>
		<dc:creator>Mike Wagan</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css techniques]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://www.mikewagan.net/?p=183</guid>
		<description><![CDATA[Web designers rely heavily on the use of CSS or Cascading Style Sheets to set the design specifications of each element on a website. CSS has made web designing a lot easier and more flexible. Here are 21 CSS Tricks that you can use in your future web design projects: 1. Cross Browser CSS SlideShow [...]


Related posts:<ol><li><a href='http://www.mikewagan.net/2009/09/10-plugins-to-make-wordpress-a-great-cm/' rel='bookmark' title='Permanent Link: 10 Plugins to Make WordPress a Great CMS'>10 Plugins to Make WordPress a Great CMS</a> <small>I&#8217;ve been using the blogging platform, WordPress, as a CMS for the company I&#8217;m working with right now because I...</small></li><li><a href='http://www.mikewagan.net/2010/03/create-multiple-step-forms-using-cck-fieldgroups-in-drupal/' rel='bookmark' title='Permanent Link: Create multiple-step forms using CCK Fieldgroups in Drupal'>Create multiple-step forms using CCK Fieldgroups in Drupal</a> <small>Lately I&#8217;ve been working on a Drupal project, and one aspect in our priority list is the user-friendliness for the...</small></li><li><a href='http://www.mikewagan.net/2010/02/allow-div-layers-to-float-over-flash-youtube-or-vimeo-videos/' rel='bookmark' title='Permanent Link: Allow Div Layers to Float over Flash, Youtube or Vimeo Videos'>Allow Div Layers to Float over Flash, Youtube or Vimeo Videos</a> <small>For web designers, its always a constant struggle to get those flash, youtube, or vimeo videos tuck under divs where...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Web designers rely heavily on the use of CSS or Cascading Style Sheets to set the design specifications of each element on a website. CSS has made web designing a lot easier and more flexible. Here are 21 CSS Tricks that you can use in your future web design projects:
<center>
<table><tr><td>
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 336x280, created 8/4/09 mikewagan.net */
google_ad_slot = "3873552827";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td><td>
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 160x90, created 10/8/09 mikewagan.net */
google_ad_slot = "0020347340";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<script type="text/javascript"><!--
google_ad_client = "pub-4709798263732366";
/* 160x90, created 10/8/09 mikewagan.net */
google_ad_slot = "0020347340";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td></tr></table>
</center>
</p>
<h4>1. <a href="http://www.cssplay.co.uk/menu/slide_show" target="_blank">Cross Browser CSS SlideShow</a></h4>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-184" title="cross-browser-slide-show" src="http://www.mikewagan.net/wp-content/uploads/2009/08/cross-browser-slide-show.jpg" alt="cross-browser-slide-show" width="412" height="273" /></p>
<p>Amazing demonstration of how to create a cross browser image gallery  using just CSS</p>
<h4>2. <a href="http://www.frankmanno.com/ideas/css-imagemap/" target="_blank">CSS Based Image Maps</a></h4>
<h4><img class="aligncenter size-full wp-image-185" title="CSS-only-image-map" src="http://www.mikewagan.net/wp-content/uploads/2009/08/CSS-only-image-map.jpg" alt="CSS-only-image-map" width="341" height="261" /></h4>
<p>This tutorial demonstrates a crazy way to create an image map using just CSS.</p>
<h4>3. <a href="http://www.cssplay.co.uk/menu/lightbox-hover.html" target="_blank">No JavaScript LightBox Using CSS</a></h4>
<h4><img class="aligncenter size-full wp-image-186" title="Css-Only-LightBox" src="http://www.mikewagan.net/wp-content/uploads/2009/08/Css-Only-LightBox.jpg" alt="Css-Only-LightBox" width="402" height="205" /></h4>
<p>Create a lighbox using just CSS with no JavaScript required.</p>
<p><span id="more-183"></span></p>
<h4>4. <a href="http://www.ampsoft.net/webdesign-l/image-button.html" target="_blank">Image Replacement for Buttons</a></h4>
<p><img class="aligncenter size-full wp-image-187" title="image-replacement-submit-button" src="http://www.mikewagan.net/wp-content/uploads/2009/08/image-replacement-submit-button.jpg" alt="image-replacement-submit-button" width="439" height="99" /></p>
<p>Replace the submit buttons with images using CSS, degrades back to submit button if CSS is disabled.</p>
<h4>5. <a href="http://www.pmob.co.uk/pob/animated.htm" target="_blank">Animated Navigation Menu using CSS</a></h4>
<p><img class="aligncenter size-full wp-image-188" title="animated-navigation-menu" src="http://www.mikewagan.net/wp-content/uploads/2009/08/animated-navigation-menu.jpg" alt="animated-navigation-menu" width="318" height="71" /></p>
<p>Amazing tutorial on how to create an animated navigation menu using just CSS.</p>
<h4>6. <a href="http://www.zabdesign.de/pro/public/sitemap/sitemap-styled.html" target="_blank">Tree Like Navigation Using CSS</a></h4>
<p><img class="aligncenter size-full wp-image-189" title="tree-like-navigation" src="http://www.mikewagan.net/wp-content/uploads/2009/08/tree-like-navigation.png" alt="tree-like-navigation" width="334" height="247" /></p>
<p>Create a tree like navigation from nested lists of links. Very useful for creating sitemaps.</p>
<h4>7. <a href="http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/" target="_blank">CSS Gradient Text Effect</a></h4>
<p><img class="aligncenter size-full wp-image-190" title="css-gradient-effect" src="http://www.mikewagan.net/wp-content/uploads/2009/08/css-gradient-effect.jpg" alt="css-gradient-effect" width="477" height="147" /></p>
<p>Create eye-catching titles with nice gradient effect using just CSS.</p>
<h4>8. <a href="http://www.webdesignerwall.com/tutorials/css-menu-list-design/" target="_blank">CSS Menu List Design</a></h4>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-191" title="CSS-Menu-List" src="http://www.mikewagan.net/wp-content/uploads/2009/08/CSS-Menu-List.png" alt="CSS-Menu-List" width="439" height="149" /></p>
<p>Very easy to understand tutorial on how to create a menu list using either CSS border-style or background-image property.</p>
<h4>9. <a href="http://www.alistapart.com/articles/negativemargins/" target="_blank">Creating Liquid Layouts With Negative Margins</a></h4>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-192" title="liquid-web-layout-css" src="http://www.mikewagan.net/wp-content/uploads/2009/08/liquid-web-layout-css.jpg" alt="liquid-web-layout-css" width="472" height="168" />Amazing way to create a liquid layout using negative margins</p>
<h4>10. <a href="http://fortysevenmedia.com/blog/archives/making_your_footer_stay_put_with_css/" target="_blank">Making Your Footer Stay Put With CSS</a></h4>
<p>This might occur to you some time when a content page has not enough content to fill the page, so footer also moves up due to this. This tutorial shows you how to deal with this and make footer stay at bottom even when content is not enough.</p>
<h4>11. <a href="http://veerle.duoh.com/blog/comments/simple_scalable_css_based_breadcrumbs/" target="_blank">Simple, Scalable CSS Based BreadCrumbs</a></h4>
<p><img class="aligncenter size-full wp-image-193" title="scalable-breadcrumb-navigation" src="http://www.mikewagan.net/wp-content/uploads/2009/08/scalable-breadcrumb-navigation.jpg" alt="scalable-breadcrumb-navigation" width="356" height="45" /></p>
<p>Create a nice scalable breadcrumb navigation</p>
<h4>12. <a href="http://www.pearsonified.com/2006/09/snazzy_pullquotes_for_your_blo.php" target="_blank">Snazzy Pullquotes for Your Blog</a></h4>
<p><img class="aligncenter size-full wp-image-194" title="pullquotes-css" src="http://www.mikewagan.net/wp-content/uploads/2009/08/pullquotes-css.png" alt="pullquotes-css" width="517" height="163" /></p>
<p>Make the blockquotes in your content or blog posts standout from rest of content. Very useful to highlight major points in long content pages.</p>
<h4>13. <a href="http://www.thewojogroup.com/2008/12/css-stacked-bar-graphs/" target="_blank">CSS Stacked Bar Graphs</a></h4>
<p><img class="aligncenter size-full wp-image-196" title="stacked-bar-graph" src="http://www.mikewagan.net/wp-content/uploads/2009/08/stacked-bar-graph.jpg" alt="stacked-bar-graph" width="444" height="305" /></p>
<p>Display graphs on your website using just CSS without any JavaScript or other heavy plugins.</p>
<h4>14. <a href="http://www.smileycat.com/miaow/archives/000230.php" target="_blank">How To Create a Block Hover Effect For List of Links</a></h4>
<h4><img class="aligncenter size-full wp-image-197" title="Block-Hover-CSS-List" src="http://www.mikewagan.net/wp-content/uploads/2009/08/Block-Hover-CSS-List.png" alt="Block-Hover-CSS-List" width="414" height="286" /></h4>
<h4>15. <a href="http://www.alistapart.com/articles/multicolumnlists" target="_blank">Multi-Column Lists</a></h4>
<p><img class="aligncenter size-full wp-image-198" title="Multi-Column-Lists" src="http://www.mikewagan.net/wp-content/uploads/2009/08/Multi-Column-Lists.png" alt="Multi-Column-Lists" width="458" height="133" /></p>
<p>This article shows all possible ways you can use to stack up an unordered list into multiple columns.</p>
<h4>16. <a href="http://css-tricks.com/date-display-with-sprites/" target="_blank">Date Display Technique with Sprites</a></h4>
<p><img class="aligncenter size-full wp-image-199" title="Display-Date-Using-Sprites" src="http://www.mikewagan.net/wp-content/uploads/2009/08/Display-Date-Using-Sprites.png" alt="Display-Date-Using-Sprites" width="417" height="165" /></p>
<p>If you have ever visited <a href="http://www.learningjquery.com/" target="_blank">Learning jQuery</a> then you might have noticed the awesome date display next to each blog post. This tutorial will show you how to achieve that using CSS Sprites.</p>
<h4>17. <a href="http://css-tricks.com/date-badges-and-comment-bubbles-for-your-blog/" target="_blank">Date Badges and Comment Bubbles for your Blog</a></h4>
<p><img class="aligncenter size-full wp-image-200" title="Display-Date-Using-Sprites" src="http://www.mikewagan.net/wp-content/uploads/2009/08/Display-Date-Using-Sprites1.png" alt="Display-Date-Using-Sprites" width="417" height="165" /></p>
<p>Display date and comments on your blog posts in a nice way that takes less space.</p>
<h4>18. <a href="http://www.devirtuoso.com/2009/07/how-to-build-a-css-image-viewer-the-clever-way/" target="_blank">How To Build a CSS Image Viewer The Clever Way</a></h4>
<p><img class="aligncenter size-medium wp-image-201" title="CSS-Image-viewer" src="http://www.mikewagan.net/wp-content/uploads/2009/08/CSS-Image-viewer-300x177.jpg" alt="CSS-Image-viewer" width="300" height="177" /></p>
<p>Create a nice image viewer using CSS that will work even if user has disabled flash and JavaScript in the browser.</p>
<h4>19. <a href="http://www.devirtuoso.com/2009/07/creating-a-css-image-preloader/" target="_blank">Creating a CSS Image Preloader</a></h4>
<p>Use the CSS background-image property to preload images without any javascript required.</p>
<h4>20. <a href="http://css-tricks.com/css-trick-fade-out-the-bottom-of-pages-with-a-fixed-position-image/" target="_blank">Fade Out The Bottom of Pages</a></h4>
<p><img class="aligncenter size-medium wp-image-202" title="Fade-Out-Bottom" src="http://www.mikewagan.net/wp-content/uploads/2009/08/Fade-Out-Bottom-300x141.jpg" alt="Fade-Out-Bottom" width="300" height="141" /></p>
<p>This tutorial shows you how to make page content fade away into the bottom of the page just like the <a href="http://fortuito.us/" target="_blank">fortuito.us blog</a>.</p>
<h4>21.  <a href="http://www.cssnewbie.com/12-creative-and-cool-uses-for-the-css-border-property/" target="_blank">Creative and Cool Uses of the CSS Border Property</a></h4>
<p><img class="aligncenter size-medium wp-image-203" title="CSS-Border-Property" src="http://www.mikewagan.net/wp-content/uploads/2009/08/CSS-Border-Property-300x105.jpg" alt="CSS-Border-Property" width="300" height="105" /></p>
<p>This article shows you how the CSS Border property can be used to achieve some cool effects. You’ll be surprised to know how cool the CSS Border property is.</p>


<p>Related posts:<ol><li><a href='http://www.mikewagan.net/2009/09/10-plugins-to-make-wordpress-a-great-cm/' rel='bookmark' title='Permanent Link: 10 Plugins to Make WordPress a Great CMS'>10 Plugins to Make WordPress a Great CMS</a> <small>I&#8217;ve been using the blogging platform, WordPress, as a CMS for the company I&#8217;m working with right now because I...</small></li><li><a href='http://www.mikewagan.net/2010/03/create-multiple-step-forms-using-cck-fieldgroups-in-drupal/' rel='bookmark' title='Permanent Link: Create multiple-step forms using CCK Fieldgroups in Drupal'>Create multiple-step forms using CCK Fieldgroups in Drupal</a> <small>Lately I&#8217;ve been working on a Drupal project, and one aspect in our priority list is the user-friendliness for the...</small></li><li><a href='http://www.mikewagan.net/2010/02/allow-div-layers-to-float-over-flash-youtube-or-vimeo-videos/' rel='bookmark' title='Permanent Link: Allow Div Layers to Float over Flash, Youtube or Vimeo Videos'>Allow Div Layers to Float over Flash, Youtube or Vimeo Videos</a> <small>For web designers, its always a constant struggle to get those flash, youtube, or vimeo videos tuck under divs where...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mikewagan.net/2009/08/21-css-tricks-you-should-know/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Logos Showcase</title>
		<link>http://www.mikewagan.net/2009/08/logos-showcase/</link>
		<comments>http://www.mikewagan.net/2009/08/logos-showcase/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 10:16:34 +0000</pubDate>
		<dc:creator>Mike Wagan</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.mikewagan.net/?p=161</guid>
		<description><![CDATA[I just wanted to share some of the logos I&#8217;ve done for my clients. I&#8217;m still learning everyday about the tricks of my trade so don&#8217;t expect too much fancy stuff with my logo works. As you can see some sites I&#8217;m working on are adult-themed. That doesn&#8217;t mean I&#8217;m a perv, its just because [...]


Related posts:<ol><li><a href='http://www.mikewagan.net/2009/10/philippine-blog-awards-2009-and-pldt-nuffnang-watchpad-launch/' rel='bookmark' title='Permanent Link: Philippine Blog Awards 2009 and PLDT+Nuffnang Watchpad Launch'>Philippine Blog Awards 2009 and PLDT+Nuffnang Watchpad Launch</a> <small>Its been a very busy month for me &#8211; we&#8217;re doing some major stuff with my bosses&#8217; websites so I...</small></li><li><a href='http://www.mikewagan.net/2010/02/allow-div-layers-to-float-over-flash-youtube-or-vimeo-videos/' rel='bookmark' title='Permanent Link: Allow Div Layers to Float over Flash, Youtube or Vimeo Videos'>Allow Div Layers to Float over Flash, Youtube or Vimeo Videos</a> <small>For web designers, its always a constant struggle to get those flash, youtube, or vimeo videos tuck under divs where...</small></li><li><a href='http://www.mikewagan.net/2009/08/thank/' rel='bookmark' title='Permanent Link: Thanks'>Thanks</a> <small>I&#8217;ve been in the Internet industry for almost 4 years now. I&#8217;ve worked as a C &amp; PHP programmer, a...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I just wanted to share some of the logos I&#8217;ve done for my clients. I&#8217;m still learning everyday about the tricks of my trade so don&#8217;t expect too much fancy stuff with my logo works. <span id="more-161"></span></p>
<div id="attachment_162" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-162" title="KamaPad logo" src="http://www.mikewagan.net/wp-content/uploads/2009/08/footerup-add-300x59.jpg" alt="KamaPad Logo - For A Sex Furniture Site" width="300" height="59" /><p class="wp-caption-text">KamaPad Logo - For A Sex Furniture Site</p></div>
<div id="attachment_163" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-163" title="package-1-complete" src="http://www.mikewagan.net/wp-content/uploads/2009/08/package-1-complete-300x146.gif" alt="For CigaretteSmokeless.com - they sell electronic cigarettes" width="300" height="146" /><p class="wp-caption-text">For CigaretteSmokeless.com - they sell electronic cigarettes (not actually a logo but a &quot;soft ad&quot;)</p></div>
<div id="attachment_164" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-164" title="mr-delay" src="http://www.mikewagan.net/wp-content/uploads/2009/08/logo-300x77.gif" alt="For MrDelay.com - a penis numbing cream" width="300" height="77" /><p class="wp-caption-text">For MrDelay.com - a penis numbing cream</p></div>
<div id="attachment_165" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-165" title="share-files-free" src="http://www.mikewagan.net/wp-content/uploads/2009/08/logo-new-300x67.png" alt="for ShareFilesFree.com" width="300" height="67" /><p class="wp-caption-text">for ShareFilesFree.com</p></div>
<div id="attachment_166" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-166" title="drnumb-header-image" src="http://www.mikewagan.net/wp-content/uploads/2009/08/drnumb-header-image-300x64.png" alt="for DrNumb.com - tattoo numbing cream" width="300" height="64" /><p class="wp-caption-text">for DrNumb.com - tattoo numbing cream</p></div>
<p>As you can see some sites I&#8217;m working on are adult-themed. That doesn&#8217;t mean I&#8217;m a perv, its just because its a big industry nowadays and businesspeople are investing heavily on them. Although sometimes I wish they&#8217;d give me a free sample, hahaha!</p>


<p>Related posts:<ol><li><a href='http://www.mikewagan.net/2009/10/philippine-blog-awards-2009-and-pldt-nuffnang-watchpad-launch/' rel='bookmark' title='Permanent Link: Philippine Blog Awards 2009 and PLDT+Nuffnang Watchpad Launch'>Philippine Blog Awards 2009 and PLDT+Nuffnang Watchpad Launch</a> <small>Its been a very busy month for me &#8211; we&#8217;re doing some major stuff with my bosses&#8217; websites so I...</small></li><li><a href='http://www.mikewagan.net/2010/02/allow-div-layers-to-float-over-flash-youtube-or-vimeo-videos/' rel='bookmark' title='Permanent Link: Allow Div Layers to Float over Flash, Youtube or Vimeo Videos'>Allow Div Layers to Float over Flash, Youtube or Vimeo Videos</a> <small>For web designers, its always a constant struggle to get those flash, youtube, or vimeo videos tuck under divs where...</small></li><li><a href='http://www.mikewagan.net/2009/08/thank/' rel='bookmark' title='Permanent Link: Thanks'>Thanks</a> <small>I&#8217;ve been in the Internet industry for almost 4 years now. I&#8217;ve worked as a C &amp; PHP programmer, a...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mikewagan.net/2009/08/logos-showcase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally, Web Design Rework Complete!</title>
		<link>http://www.mikewagan.net/2009/06/finally-web-design-rework-complete/</link>
		<comments>http://www.mikewagan.net/2009/06/finally-web-design-rework-complete/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 21:30:00 +0000</pubDate>
		<dc:creator>Mike Wagan</dc:creator>
				<category><![CDATA[Contests]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.mikewagan.net/uncategorized/finally-web-design-rework-complete/</guid>
		<description><![CDATA[Before and After pics of my blog After weeks and weeks of painstaking tweaking with the design of this site, I finished the work today with the revamped look of the site. Although the graphics are quite big in size and takes some time to load on the browser, I am happy with the results. [...]


Related posts:<ol><li><a href='http://www.mikewagan.net/2009/11/ultimate-guide-to-grid-based-web-design/' rel='bookmark' title='Permanent Link: Ultimate Guide to Grid-Based Web Design'>Ultimate Guide to Grid-Based Web Design</a> <small>Web design trends now point to one aspect of using CSS for the basic website wireframe &#8211; Grid-based layouts. I...</small></li><li><a href='http://www.mikewagan.net/2009/05/i-am-back-into-blogging/' rel='bookmark' title='Permanent Link: I am Back Into Blogging'>I am Back Into Blogging</a> <small>Its been a while since I blogged here again in my home site. My very first blog. And I don&#8217;t...</small></li><li><a href='http://www.mikewagan.net/2009/03/blogging-on-a-free-webhost/' rel='bookmark' title='Permanent Link: Blogging on a Free Webhost'>Blogging on a Free Webhost</a> <small>I&#8217;ve started a WordPress blog a few weeks ago on a free domain server and free web host provider to...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.unstoppablefatloss.com/images/JohnBPhoto_BeforeAfter.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 396px; height: 336px;" src="http://www.unstoppablefatloss.com/images/JohnBPhoto_BeforeAfter.jpg" alt="" border="0" /></a>Before and After pics of my blog</div>
<p>After weeks and weeks of painstaking tweaking with the design of this site, I finished the work today with the revamped look of the site. Although the graphics are quite big in size and takes some time to load on the browser, I am happy with the results. I have been planning on this design for a long time, and I wanted to get it done today. I think it reflects more of myself now; funkier, colorful, sexier, jazzed up, and complicated (lol)!</p>
<p>Some things I added were Project Wonderful ads at the bottom, and also trimmed out some fat from the sidebar. Also, got back my Nuffnang ad at the right (hopefully some ads would start popping!). I also removed &#8220;Continue reading This Post Title&#8230;&#8221; links on the homepage to speed up some loading time.</p>
<p>I was inspired to finish the redesign today because of <a href="http://www.nuffnang.com.ph/blog/2009/06/06/youre-the-1-goldilocks/">Nuffnang&#8217;s recent contest for Goldilocks</a>. If I wanted to join then I&#8217;d need to fix my blog first. Do check it out!</p>


<p>Related posts:<ol><li><a href='http://www.mikewagan.net/2009/11/ultimate-guide-to-grid-based-web-design/' rel='bookmark' title='Permanent Link: Ultimate Guide to Grid-Based Web Design'>Ultimate Guide to Grid-Based Web Design</a> <small>Web design trends now point to one aspect of using CSS for the basic website wireframe &#8211; Grid-based layouts. I...</small></li><li><a href='http://www.mikewagan.net/2009/05/i-am-back-into-blogging/' rel='bookmark' title='Permanent Link: I am Back Into Blogging'>I am Back Into Blogging</a> <small>Its been a while since I blogged here again in my home site. My very first blog. And I don&#8217;t...</small></li><li><a href='http://www.mikewagan.net/2009/03/blogging-on-a-free-webhost/' rel='bookmark' title='Permanent Link: Blogging on a Free Webhost'>Blogging on a Free Webhost</a> <small>I&#8217;ve started a WordPress blog a few weeks ago on a free domain server and free web host provider to...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mikewagan.net/2009/06/finally-web-design-rework-complete/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
