<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.2" -->
<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/"
	>

<channel>
	<title>WPDesigner &#187; Tutorials</title>
	<link>http://www.wpdesigner.com</link>
	<description>WordPress Themes, Blog Design, and Web Development</description>
	<pubDate>Sun, 27 Apr 2008 12:30:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<item>
		<title>How to Use Wordpress as a Membership Directory</title>
		<link>http://www.wpdesigner.com/2008/03/01/how-to-use-wordpress-as-a-membership-directory/</link>
		<comments>http://www.wpdesigner.com/2008/03/01/how-to-use-wordpress-as-a-membership-directory/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 17:06:59 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2008/03/01/how-to-use-wordpress-as-a-membership-directory/</guid>
		<description><![CDATA[
This article was written by Chris Cagle.
Do you want to create a moderated membership directory that showcases your member&#8217;s information? Do you want it to be flexible, be very little work after initial setup, and use a world-class open source platform that you are already familiar with?
Your first thought might not be to use Wordpress [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.wpdesigner.com/wp-content/files/2008/03/pghdesigners.jpg' alt='pghdesigners.jpg' class='centered' /></p>
<p><strong>This article was written by <a href="http://www.cagintranet.com/">Chris Cagle</a>.</strong></p>
<p>Do you want to create a moderated membership directory that showcases your member&#8217;s information? Do you want it to be flexible, be very little work after initial setup, and use a world-class open source platform that you are already familiar with?</p>
<p>Your first thought might not be to use Wordpress for such a project, but since it already has an extremely easy way to accept, moderate and update registrations â€“ it&#8217;s a perfect candidate.</p>
<p>In this tutorial I will show you how I built a successful <a href="http://pghdesigners.com">membership directory</a> using nothing more than a standard Wordpress 2.3+ install and 2 very powerful plugins.</p>
<h3>The Plugin Installs</h3>
<p>The heart of the site is powered by two plugins.</p>
<p>First, use the <a href="http://www.dealsway.net/2007/11/05/wp-user-manager/">WP User Manager plugin from Dealsway</a> to add new fields to the user profiles. The install and setup is pretty straight forward - just activate the plugin and add any new fields you want via it&#8217;s own admin section. The information entered in these fields will become the information that will create the member&#8217;s &#8220;homepage.&#8221;</p>
<p>Secondly, we use the famous <a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/">Role Manager</a> plugin which restricts what your members can do once they are logged into your site. This is important because in order for a member to be granted their own author page, he or she needs to have made at least one post.</p>
<p>In my case, I didn&#8217;t want my members to have the ability to post anything, just to only fill out their profile information. To get around this, I used the Role Manager plugin as-is, but changed the Author role to only have the rights <strong>Publish Posts</strong> and <strong>Read</strong>. (The <strong>Hide Dashboard</strong> capability you see in the screen shot is a function of the <a href="http://www.im-web-gefunden.de/wordpress-plugins/iwg-hide-dashboard/">IWG Hide Dashboard</a> plugin. It was an easy way to clean up the admin panel for my members.)</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2008/03/changerole.gif' alt='changerole.gif' class='centered' /></p>
<h3>Setting Wordpress Options</h3>
<p>After you have installed all the plugins, we need to get Wordpress ready for your new registrations.</p>
<p>In your Admin panel, under options, set your <strong>New User Default Role</strong> to Subscriber. This ensures that a member won&#8217;t be given an author page until you &#8220;approve&#8221; and manually move them to the Author role. (A Subscriber can&#8217;t make posts, an Author can.)</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2008/03/newuserdefault.gif' alt='newuserdefault.gif' class='centered' /></p>
<p>Once a member has registered and filled out all the appropriate profile information, we need to &#8220;approve&#8221; that member. We do this by simply moving that member into the Author role and making a post on his or her behalf. I want each approved member to have made a post in order to create the <strong>New Member Feed</strong> <a href="http://feeds.feedburner.com/pghdesigners">[example]</a>. To post on behalf of that member, choose that member&#8217;s name out of the dropdown list in the Post Author section in the sidebar before publishing their post.</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2008/03/chooseauthor.gif' alt='chooseauthor.gif' class='centered' /></p>
<p>This post doesn&#8217;t need to be anything spectacular. On Pittsburgh Designers, I simply write &#8220;This business has been added as a member. Please visit their <a href="">Design Profile</a>.&#8221;</p>
<p>There are other ways of doing this to make it slightly simpler, but I do it this way because I want to use Wordpress&#8217;s default feed as a <strong>New Member Feed</strong>.</p>
<p>Your membership management duties are now done.</p>
<h3>Creating the Author Page</h3>
<p>All that&#8217;s left now is the need to create the <em>author.php</em> template to display all this new member profile information that the WP User Manager plugin allowed us to accept.</p>
<p>For the sake of this tutorial, we only added 2 new fields to the member profile page: <em>business_name</em> and <em>business_owner</em>.</p>
<p>At the top of the <em>author.php</em> template we will add this code. Hint: Each new field you add will need to be declared here.</p>
<div class="codesnip-container" >&lt;?php<br />
/*<br />
Template Name: Author Template<br />
*/</div>
<div class="codesnip-container" >global $wp_query;<br />
$curauth = $wp_query-&gt;get_queried_object();</div>
<div class="codesnip-container" >$key=&quot;wpum_&quot;.&quot;business_name&quot;;<br />
$business_name = get_usermeta($curauth-&gt;ID, $key);</div>
<div class="codesnip-container" >$key=&quot;wpum_&quot;.&quot;business_owner&quot;;<br />
$business_owner = get_usermeta($curauth-&gt;ID, $key);</div>
<div class="codesnip-container" >?&gt;</div>
<p>Now right below that, in the body section of your template, we are going to add this data and markup to display it in a structured way:</p>
<div class="codesnip-container" >&lt;?php get_header(); ?&gt;<br />
&lt;div id=&quot;bodycontent&quot; &gt;<br />
&lt;div class=&quot;bodytext&quot; &gt;<br />
&lt;h2&gt;&lt;?php echo $business_name; ?&gt;&lt;/h2&gt;<br />
&lt;p&gt;The owner of this business is &lt;?php echo $business_owner; ?&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;?php get_footer(); ?&gt;</div>
<p>The next step is to also show some of the default fields that the member entered within their profile. I only want to show the member&#8217;s website address and About the user section, so we modify our template to look like this:</p>
<div class="codesnip-container" >&lt;?php get_header(); ?&gt;<br />
&lt;div id=&quot;bodycontent&quot; &gt;<br />
&lt;div class=&quot;bodytext&quot; &gt;<br />
&lt;h2&gt;&lt;?php echo $business_name; ?&gt;&lt;/h2&gt;<br />
&lt;p&gt;The owner of this business is &lt;?php echo $business_owner; ?&gt;&lt;/p&gt;<br />
&lt;p&gt;Website: &lt;a href=&quot;&lt;?php echo $curauth-&gt;user_url; ?&gt;&quot;&gt;&lt;?php echo $curauth-&gt;user_url;<br />
?&gt;&lt;/a&gt;&lt;/p&gt;<br />
&lt;p&gt;About the Business: &lt;?php echo $curauth-&gt;description; ?&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;?php get_footer(); ?&gt;</div>
<p>Hint: A full list of <em>$curauth-&gt;</em> calls can be viewed in the <a href="http://codex.wordpress.org/Author_Templates#Using_Author_Information">Wordpress Codex</a>.</p>
<p>Lastly, we want to do some basic error checking.</p>
<p>What would happen if the member didn&#8217;t put anything in the <em>business_owner</em> field? In this case, we can just wrap that line in an if statement (&#8230;or any variable we want to protect against being blank):</p>
<div class="codesnip-container" >&lt;?php if ($business_owner != null) { echo &quot;&lt;p&gt;The owner of this business is<br />
&quot;.$business_owner.&quot;&lt;/p&gt;&quot;; }; ?&gt;</div>
<h3>Listing your Members</h3>
<p>So how do you list all of your approved members? It is as simple as adding the <em>wp_list_authors</em> to any template file. This is the customized version of that function I use:</p>
<div class="codesnip-container" >&lt;?php wp_list_authors(&#8217;hide_empty=1&amp;show_fullname=0&amp;optioncount=0&amp;exclude_admin=0&#8242;);<br />
?&gt;</div>
<h3>Tutorial Wrapup</h3>
<p>This tutorial was based on my experiences in building the <a href="http://pghdesigners.com/" title="Pittsburgh Designers">Pittsburgh Designers</a> community into a thriving, local membership directory for creative types. Mosey on over to the site and take a peek for yourself how what a finished project like this can look like.</p>
<p>You can download the complete finished <a href="http://www.wpdesigner.com/wp-content/files/codes/author.zip">author.php</a> template here.</p>
<h3>About the Author</h3>
<p>Chris Cagle is a freelance web designer from Pittsburgh, PA, whose projects include <a href="http://pghdesigners.com/">Pittsburgh Designers</a> and <a href="http://adclustr.com/">AdClustr</a>.</p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=1026&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_1026" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2008/03/01/how-to-use-wordpress-as-a-membership-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Create An Archives Page</title>
		<link>http://www.wpdesigner.com/2007/10/11/how-to-create-an-archives-page/</link>
		<comments>http://www.wpdesigner.com/2007/10/11/how-to-create-an-archives-page/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 18:12:08 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/10/11/how-to-create-an-archives-page/</guid>
		<description><![CDATA[ In another effort to de-clutter the sidebar and begin your initiation for The Organization for the Organized, here&#8217;s how to create an archives page for archive links listing by categories and months. First of all, check out the Wpdesigner&#8217;s archives page to see what you&#8217;ll be adding to your blog.
Second, most free WordPress themes [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.wpdesigner.com/wp-content/files/2007/10/write-page-archives-templat.png' alt='' class='alignleft' width='250' /> In another effort to <strong>de-clutter the sidebar</strong> and begin your initiation for <strong>The Organization for the Organized</strong>, here&#8217;s how to create an archives page for archive links listing by categories and months. First of all, check out the <a href="http://www.wpdesigner.com/archives/">Wpdesigner&#8217;s archives page</a> to see what you&#8217;ll be adding to your blog.</p>
<p>Second, most free WordPress themes already have an extra page template for an archives page. Look in your theme&#8217;s folder for an unused PHP template file. Usually, theme authors name this template <strong>archives.php</strong>, which is different from your default archive template, <strong>archive.php</strong> (without the &#8220;s&#8221;).</p>
<p>Third, you need to know that this tutorial is not the end-all tutorial for create a custom archives links listing page. The structure of each theme is not always exactly the same as the next theme&#8217;s structure. All I can show you is the basics and how I did it.</p>
<h3>The Steps:</h3>
<p><strong>1. Create a new file and name it archives.php</strong></p>
<p><strong>2. At the top of that file, type:</strong></p>
<div class="codesnip-container" >&lt;?php<br />
/*<br />
Template Name: Archives Page<br />
*/<br />
?&gt;</div>
<p>Without those lines above, you won&#8217;t be able to use your new archives template file so be sure that you don&#8217;t leave that out.</p>
<p><strong>3. Add the loop, title, category listing, and month listing:</strong></p>
<div class="codesnip-container" >&lt;?php while(have_posts()) : the_post(); ?&gt;</div>
<div class="codesnip-container" >&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;</div>
<div class="codesnip-container" >&lt;ul&gt;&lt;?php wp_list_cats(&#8217;sort_column=name&#038;optioncount=1&#8242;) ?&gt;&lt;/ul&gt;</div>
<div class="codesnip-container" >&lt;ul&gt;&lt;?php wp_get_archives(&#8217;type=monthly&#038;show_post_count=1&#8242;) ?&gt;&lt;/ul&gt;</div>
<div class="codesnip-container" >&lt;?php endwhile; ?&gt;</div>
<p><strong>4. Tweak the codes above to make it fit in with your current theme.</strong> Here&#8217;s where different theme structures come into play. I can&#8217;t give you <a href="http://www.wpdesigner.com/wp-content/files/archives.txt">my archives template</a> because it might not work with your theme&#8217;s structure.</p>
<p><strong>5. Upload it to your theme&#8217;s folder.</strong></p>
<p><strong>6. Create a new page and select your newly upload Archives page template for that page.</strong></p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/10/write-page-archives-templat.png' alt='' class='centered' /></p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=877&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_877" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/10/11/how-to-create-an-archives-page/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Do-It-Yourself WordPress Hover Menu</title>
		<link>http://www.wpdesigner.com/2007/09/07/do-it-yourself-wordpress-hover-menu/</link>
		<comments>http://www.wpdesigner.com/2007/09/07/do-it-yourself-wordpress-hover-menu/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 17:58:29 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/09/07/do-it-yourself-wordpress-hover-menu/</guid>
		<description><![CDATA[ Also as known as Pop-up Menu Layer, HoverExtended, or Tooltip Links, a hover menu is simply a list of links that appears when you move your mouse over a certain part of a web page. Why does it have many different names? Because there are different ways to create a hover menu, the name [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.wpdesigner.com/wp-content/files/2007/09/hover.jpg' alt='hover.jpg' class="alignleft" /> Also as known as Pop-up Menu Layer, HoverExtended, or Tooltip Links, <strong>a hover menu is simply a list of links that appears when you move your mouse over a certain part of a web page</strong>. Why does it have many different names? Because there are different ways to create a hover menu, the name depends on the technique.</p>
<p>Here are some examples: <a href="http://www.wpdesigner.com/wp-content/files/2007/09/hover-1.png">1</a>, <a href="http://www.wpdesigner.com/wp-content/files/2007/09/hover-2.png">2</a>, <a href="http://www.wpdesigner.com/wp-content/files/2007/09/hover-3.png">3</a>.</p>
<p>Regardless of how many different ways you can approach the hover menu to create it, <strong>it isn&#8217;t easy</strong>. In the beginning, you&#8217;ll find yourself trying to recreate the hover effect using pure CSS. However, <strong>you can always trust Internet Explorer to mess up</strong>, which it will.</p>
<p>After the first hour of frustration, you&#8217;ll search for Javascript work-arounds on Google. But then, you&#8217;ll soon realize that <strong>Javascript work-arounds don&#8217;t come cheap</strong> and you&#8217;ll need to purchase a Reseller or Developer license to use that Javascript in projects that you want to redistribute.</p>
<p>After that, you&#8217;d probably give up. <strong>But luckily, you have the trusty Small Potato</strong> (yours truly). I&#8217;ll show you the simple way to create a hover menu without having to deal with IE bugs and without having to use
<div class="codesnip-container" >a:hover</div>
<p>. (Using
<div class="codesnip-container" >a:hover</div>
<p> usually gives you a flickering hover menu in IE, which is a no-no.)</p>
<p>Here&#8217;s an example of using the hover menu via
<div class="codesnip-container" >a:hover</div>
<p>.</p>
<div class="codesnip-container" >&lt;a href=&#8221;#&#8221;&gt;Regular Link Here</div>
<div class="codesnip-container" >&lt;span&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Hover Link 1&lt;/a&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Hover Link 2&lt;/a&gt;<br />
&lt;/span&gt;</div>
<div class="codesnip-container" >&lt;/a&gt;</div>
<p>In the example above, the Hover Link 1 and Hover Link 2 will flicker on and off in Internet Explorer. If you don&#8217;t see them flicker on and off, try using a hover menu within an image link and you&#8217;ll see what I meant. And as you can see, using pure CSS and
<div class="codesnip-container" >a:hover</div>
<p> to create the hover menu means you have to place the entire menu within one link.</p>
<p><strong>So, how will you create a hover menu without
<div class="codesnip-container" >a:hover</div>
<p>?</strong> Simple, use the
<div class="codesnip-container" >:hover</div>
<p> selector on something else. But, Internet Explorer doesn&#8217;t support
<div class="codesnip-container" >:hover</div>
<p> for&#8230; something else? Well, that&#8217;s where <strong><a href="http://www.xs4all.nl/~peterned/csshover.html">csshover.htc</a></strong> comes in. It&#8217;ll allow you to hover other stuff in IE.</p>
<p>Download it and drop it in your themes folder. Open up the
<div class="codesnip-container" >header.php</div>
<p> file and here&#8217;s one way to link to this new file you just downloaded:</p>
<div class="codesnip-container" >&lt;!&#8211;[if IE]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
body{ behavior:url(&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;/csshover.htc&#8221;); }<br />
&lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;</div>
<p><strong>Do not copy and paste the codes above. Type it out.</strong></p>
<p>Now that you&#8217;re armed with the csshover.htc Internet Explorer :hover work-around, you have a lot of options to work with. Below is simply one of many ways you can create a hover menu.</p>
<p>&lt;div class=&#8221;hover-wrap&#8221;&gt;<br />
Some regular text here that the user sees when viewing the page</p>
<p>&lt;div class=&#8221;hover-menu&#8221;&gt;<br />
Here&#8217;s what the users will see when they move their cursors over this area.<br />
&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p><strong>Do not copy and paste the codes above. Type it out.</strong></p>
<p>Based on the codes above, here&#8217;s what you should have in the
<div class="codesnip-container" >style.css</div>
<p> file of your theme.</p>
<p>.hover-wrap{<br />
position: relative;<br />
}</p>
<p>.hover-wrap .hover-menu{<br />
display: none;<br />
}</p>
<p>.hover-wrap:hover .hover-menu{<br />
display: block;<br />
position: absolute;<br />
top: 10px;<br />
left: 10px;<br />
z-index: 100;<br />
white-space: no-wrap;<br />
}</p>
<p><strong>CSS Explanations</strong>:</p>
<p>First, I told
<div class="codesnip-container" >.hover-wrap</div>
<p> or
<div class="codesnip-container" >&lt;div class=&#8221;hover-wrap&#8221;&gt;</div>
<p> to position itself relatively, hence,
<div class="codesnip-container" >position: relative;</div>
<p>.</p>
<p>Second, I told
<div class="codesnip-container" >.hover-menu</div>
<p> or
<div class="codesnip-container" >&lt;div class=&#8221;hover-menu&#8221;&gt;</div>
<p> to hide itself by using
<div class="codesnip-container" >display: none;</div>
<p>.</p>
<p>Third, I told
<div class="codesnip-container" >.hover-menu</div>
<p> to appear, where to appear, and how to it should appear.</p>
<ul>
<li>
<div class="codesnip-container" >display: block;</div>
<p> is for reversing
<div class="codesnip-container" >display: none;</div>
</li>
<li>
<div class="codesnip-container" >position: absolute;</div>
<p> allows you to position it precisely. It&#8217;s important to note that this absolute positioning works hand in hand with the relative positioning of
<div class="codesnip-container" >.hover-wrap</div>
<p>.</li>
<li>
<div class="codesnip-container" >top: 10px;</div>
<p> means it will appear 10 pixels from the top of whatever it&#8217;s contained in. In this case, it&#8217;s the .hover-wrap box or DIV.</li>
<li>left: 10px; means it will appear 10 pixels from the left of whatever it&#8217;s contained in.</li>
<li>z-index: 100; allows it to show up without messing up the positioning of anything else on your page. Z-index has to do with layering. Something with a z-index of 100 will appear in front of something else with a z-index of 99.</li>
<li>
<div class="codesnip-container" >white-space: nowrap;</div>
<p> allows whatever that shows up on hover to extend itself beyond the width of whatever it&#8217;s contained in. For example, if you have a 300 pixels box and a 400 pixels hover menu or hover content box, but you don&#8217;t want to apply a definite width to that hover box, then use
<div class="codesnip-container" >white-space: nowrap;</div>
<p>. Otherwise, get rid of white-space and do something like
<div class="codesnip-container" >.hover-menu{width:400px;}</div>
<p>.</li>
</ul>
<p>But, wait a minute, isn&#8217;t the example simply a hover box with some text and not a hover menu with links? Yes, I&#8217;m glad you paid attention. From my hover box of text, you can add links to make it a menu. For examples:</p>
<div class="codesnip-container" >&lt;div class=&#8221;hover-menu&#8221;&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;A link here&lt;/a&gt;<br />
&lt;/div&gt;</div>
<p>Or, you could do something like the following:</p>
<div class="codesnip-container" >&lt;div class=&#8221;hover-menu&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;A link here&lt;/a&gt;&lt;/li&lg;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;A link here&lt;/a&gt;&lt;/li&lg;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;A link here&lt;/a&gt;&lt;/li&lg;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</div>
<p>Once you are able to recreate the hover menu effect. There&#8217;s really no limit to what you can put in it, but don&#8217;t go overboard. <strong>Have fun and don&#8217;t forget to show me your hover menu!</strong></p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=814&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_814" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/09/07/do-it-yourself-wordpress-hover-menu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Put Your Best Content Forward</title>
		<link>http://www.wpdesigner.com/2007/08/21/how-to-put-your-best-content-forward/</link>
		<comments>http://www.wpdesigner.com/2007/08/21/how-to-put-your-best-content-forward/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 03:15:25 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/08/21/how-to-put-your-best-content-forward/</guid>
		<description><![CDATA[Don&#8217;t let your best content get lost in the archives. Use them to impress first-time readers. Here are two ways to put your best content forward.
First Method: WP-Sticky Plugin
 If you publish multiple times per day or simply want to feature the best article of the week then install the WP-Sticky plugin by Lester Chan. [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t let your best content get lost in the archives. Use them to impress first-time readers. Here are two ways to put your best content forward.</p>
<h3>First Method: WP-Sticky Plugin</h3>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/post-sticky-status.gif' alt='post-sticky-status.gif' class="alignleft" /> If you publish multiple times per day or simply want to feature the best article of the week then install the <a href="http://lesterchan.net/portfolio/programming.php">WP-Sticky</a> plugin by Lester Chan. It&#8217;ll allow you to feature or sticky the article that you want visitors to read first. It does this by letting you to pick which post to sticky then displays that sticky post before all the other posts on your page.</p>
<p>Installation is easy, simply  upload to the plugins folder and activate it. Next, go to the edit screen of the post that you want to sticky. Select the <strong>Announcement</strong> or <strong>Sticky</strong> option under the <strong>Post Sticky Status</strong> box. Note, this plugin displays Annoucnement posts before Sticky posts. The Announcement option is there to make one sticky post more important than all other sticky posts.</p>
<h3>Second Method: DOMTab</h3>
<p>As your blog grows, you&#8217;ll find it more and more difficult to feature all the best links in one simple list. There&#8217;s simply not enough room, not even in the sidebar. What if there was an organized way to categorize those links and feature them as multiple lists using less space? <strong><a href="http://onlinetools.org/tools/domtabdata/">DOMTab</a> is that solution</strong>.</p>
<p>Take a look at this blog and <a href="http://www.problogger.net/">Problogger</a>, both blogs feature a section or block called, &#8220;Best of,&#8221; which is made up of multiple lists of links, linking to the best content. Both sections of both blogs are powered by DOMTab. <em>Now you know where I got the DOMTab idea from.</em></p>
<p>DOMTab might look difficult to use, but it really isn&#8217;t. On its download page, there are very specific instructions on how to use it and how you can style it to make it your own. If that&#8217;s not enough, don&#8217;t worry. I&#8217;ll also show you how I did it.</p>
<h3>Placement of Best Content</h3>
<p>But before that, you need to <strong>decide where to place this &#8220;Best of&#8221; section</strong>. Unlike Problogger&#8217;s layout, which separates this section from the main content, I placed it in between the first and second posts on the home page, in the main content area.</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/placement-of-best-content.png' alt='placement-of-best-content.png' class="centered" /></p>
<p>(Why? If I want my best content to be one of the first things new readers come across then why would I place it in the sidebar to let it get lost in sidebar clutter?)</p>
<p>And don&#8217;t forget, my first post is a Sticky post so the home page now displays content in this order: Featured Post, Best of Wpdesigner, Recent Posts.</p>
<p>Why not let &#8220;Best of&#8221; be first? It comes second on this blog because I want to show my <strong>recent best content</strong> (Sticky post) to the loyal readers first. Readers that have read most of the best content don&#8217;t need to see it again and again every time they come back to the home page. Don&#8217;t force them to overlook the whole first half of your home page by putting &#8220;Best of&#8221; first.</p>
<h3>How to use DOMTab</h3>
<p>If you haven&#8217;t already, download the <a href="http://onlinetools.org/tools/domtabdata/#dl">DOMTab Javascript file</a>. To use it, you need to take three steps: link to the Javascript, insert the DOMTab codes with your links, and style it.</p>
<p><strong>Linking to the Javascript:</strong> Place the following codes in the head of your <strong>header.php</strong> file. <em>Don&#8217;t try to copy and paste the codes. My blog uses smart quotes when I display codes in a blog post. They will not work properly if you copy and paste.</em></p>
<div class="codesnip-container" >&lt;script type=&#8221;text/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;/domtab.js&#8221;&gt;&lt;/script&gt;</div>
<p>The codes above assume that you&#8217;ve placed the <strong>domtab.js</strong> file in the root of your theme&#8217;s folder.</p>
<p><strong>Inserting DOMTab with your content or links:</strong> The following screenshot shows the basic structure of DOMTab.</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/domtab-structure.gif' alt='domtab-structure.gif' /></p>
<p>The structure starts out with a DIV tag named &#8220;<strong>domtab</strong>&#8221; or simply an invisible box that does nothing. Under or nesting within it is an unordered-list or UL tag named &#8220;<strong>domtabs</strong>.&#8221; Notice the extra <strong>s</strong> or you&#8217;ll have a hard time styling it. Nesting in the UL tag are two LI tags or list-items: <strong>Test 1</strong> and <strong>Test 2</strong>. Notice, both are links, which were named <strong>t1</strong> and <strong>t2</strong>. You can change Test 1, Test 2, t1, and t2 to customize it for your blog.</p>
<p>For my blog, Test 1 is Tutorials and Test 2 is Themes.</p>
<p>Still within the <strong>domtab DIV</strong>, under the <strong>domtabs UL</strong> tag are generic or nameless DIV tags surrounding H2 heading links, which were named t1 and t2 to match the list-items within the <strong>domtabs UL</strong>.</p>
<p>The areas within the brackets are where you can customize and place your own content or list of links. I went with the list of links.</p>
<p>To make it more convenient for me to reuse the &#8220;Best of&#8221; section throughout my blog, I placed everything in a filed named <strong>bestofwpdesigner.php</strong>. Every time I need it, I&#8217;ll use:</p>
<div class="codesnip-container" >&lt;?php include (TEMPLATEPATH . &#8216;/bestofwpdesigner.com&#8217;); ?&gt;</div>
<p><strong>Styling DOMTab:</strong> I didn&#8217;t do anything special to style it. For the <strong>domtabs UL</strong> or unordered list of link items, I turned it into a horizontal menu. Here&#8217;s how to create a <a href="http://css.maxdesign.com.au/listutorial/horizontal01.htm">horizontal menu</a>. And here&#8217;s my own codes to style the <strong>domtabs UL</strong> portion of the whole structure:</p>
<div class="codesnip-container" >ul.domtabs{<br />
	float: left;<br />
	width: 583px;<br />
	list-style-type: none;<br />
	margin: 0;<br />
	padding: 0;<br />
	background: #fcfcfc;<br />
	border-bottom: 1px solid #eee;<br />
	font-family: georgia, serif;<br />
	clear: both;<br />
}</div>
<div class="codesnip-container" >ul.domtabs li{<br />
	float: left;<br />
	display: inline;<br />
}</div>
<div class="codesnip-container" >ul.domtabs li a{<br />
	display: block;<br />
	padding: 10px;<br />
	border-right: 1px solid #eee;<br />
	text-decoration: none;<br />
	color: #666;<br />
	background: #fcfcfc;<br />
}</div>
<div class="codesnip-container" >ul.domtabs li a:hover{<br />
	text-decoration: underline;<br />
}</div>
<div class="codesnip-container" >ul.domtabs li.active a{<br />
	background: #fff;<br />
}</div>
<h3>As icing on the cake, here&#8217;s how I made the &#8220;Best of&#8221; section show up under the first post on the home page.</h3>
<p>Open up the <strong>index.php</strong> file. Place
<div class="codesnip-container" >&lt;?php $count = 1 ?&gt;</div>
<p> between <strong>if&#8230;have_posts</strong> and <strong>while&#8230;have_posts</strong> like this:</p>
<div class="codesnip-container" >&lt;?php if(have_posts()) : ?&gt; <strong>&lt;?php $count = 1 ?&gt;</strong> &lt;?php while(have_posts()) : the_post(); ?&gt;</div>
<p>Before
<div class="codesnip-container" >&lt;?php endwhile; ?&gt;</div>
<p>, add:</p>
<div class="codesnip-container" >&lt;?php if ($count==1) { ?&gt;</div>
<div class="codesnip-container" >&lt;?php include (TEMPLATEPATH . &#8216;/<strong>bestofwpdesigner</strong>.php&#8217;); ?&gt;&lt;/div&gt;</div>
<div class="codesnip-container" >&lt;?php } ?&gt;</div>
<div class="codesnip-container" >&lt;?php $count = $count + 1; ?&gt;</div>
<p>If you&#8217;re inserting the &#8220;Best of&#8221; section by including it as a file like I am, change <strong>bestofwpdesigner.php</strong> to your own file name. If you&#8217;re not inserting it by including it as a file then place all the DOMTab codes in between:</p>
<div class="codesnip-container" >&lt;?php if ($count==1) { ?&gt;</div>
<p>and</p>
<div class="codesnip-container" >&lt;?php } ?&gt;</div>
<p>One more thing, if you want &#8220;Best of&#8221; to appear under the second post. Change $count==1 to $count==<strong>2</strong>. Easy huh? Now you know how this blog and how you can put the best content forward. <em>The codes used to place the &#8220;Best of&#8221; section in between posts were taken from the <a href="http://www.wpdesigner.com/2007/05/19/prosense-wordpress-theme/">ProSense</a> theme.</em></p>
<p>Coming soon are more tutorials on blog design tweaks to improve your blog and the user&#8217;s experience.</p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=777&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_777" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/08/21/how-to-put-your-best-content-forward/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Part 3 - How to Code a WordPress Theme</title>
		<link>http://www.wpdesigner.com/2007/08/13/part-3-how-to-code-a-wordpress-theme/</link>
		<comments>http://www.wpdesigner.com/2007/08/13/part-3-how-to-code-a-wordpress-theme/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 08:12:44 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/08/13/part-3-how-to-code-a-wordpress-theme/</guid>
		<description><![CDATA[I recently finished the third part of my free e-book on how to create a Wordpress theme from scratch. The third part is How to Code a WordPress Theme and I&#8217;m releasing it to beta-testers and subscribers. Yes, if you are subscribed to this blog&#8217;s RSS feed and are reading this from a feed reader [...]]]></description>
			<content:encoded><![CDATA[<p>I recently finished the third part of my free e-book on how to create a Wordpress theme from scratch. The third part is How to Code a WordPress Theme and I&#8217;m releasing it to beta-testers and subscribers. <strong>Yes, if you are subscribed to this blog&#8217;s RSS feed and are reading this from a feed reader then you will find a download link at the bottom of this post</strong>.</p>
<p><strong><a href="http://www.wpdesigner.com/feed/">Subscribe to this blog&#8217;s feed.</a></strong></p>
<p>Part 3 is similar to my <a href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/">WordPress theme tutorial series</a>, but it covers a lot more of the CSS side of creating a WordPress theme and you end up with a better looking theme than the one in the tutorial series.</p>
<p>Please download it and give it a test run. Any feedback would be helpful. Additionally, check out <a href="http://www.wpdesigner.com/2007/08/08/how-to-design-a-wordpress-theme/">Part 1</a> and <a href="http://www.wpdesigner.com/2007/08/10/how-to-slice-a-wordpress-theme/">Part 2</a>.</p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=772&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_772" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/08/13/part-3-how-to-code-a-wordpress-theme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Slice a WordPress Theme</title>
		<link>http://www.wpdesigner.com/2007/08/10/how-to-slice-a-wordpress-theme/</link>
		<comments>http://www.wpdesigner.com/2007/08/10/how-to-slice-a-wordpress-theme/#comments</comments>
		<pubDate>Fri, 10 Aug 2007 21:00:57 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/08/10/how-to-slice-a-wordpress-theme/</guid>
		<description><![CDATA[How To Slice A WordPress Theme is part two of my e-book on how to create a WordPress theme from scratch. (Check out part one.) It shows you how to merge all layers and save the areas that you want to use as images.
In related news: Part 1, How to Design a WordPress Theme, has [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wpdesigner.com/wp-content/files/book/how-to-slice-a-wordpress-theme.zip">How To Slice A WordPress Theme</a> is part two of my e-book on how to create a WordPress theme from scratch. (<a href="http://www.wpdesigner.com/2007/08/08/how-to-design-a-wordpress-theme/">Check out part one</a>.) It shows you how to merge all layers and save the areas that you want to use as images.</p>
<p>In related news: Part 1, How to Design a WordPress Theme, has been updated.</p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=771&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_771" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/08/10/how-to-slice-a-wordpress-theme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Design a WordPress Theme</title>
		<link>http://www.wpdesigner.com/2007/08/08/how-to-design-a-wordpress-theme/</link>
		<comments>http://www.wpdesigner.com/2007/08/08/how-to-design-a-wordpress-theme/#comments</comments>
		<pubDate>Wed, 08 Aug 2007 11:37:25 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/08/08/how-to-design-a-wordpress-theme/</guid>
		<description><![CDATA[This is the unofficial 33% release of my upcoming ebook. This part is called How to Design a WordPress Theme.
The next two parts are How to Slice a Wordpress Theme and How to Code a WordPress Theme.
The .zip file is 8.51 MB. Inside, you&#8217;ll find a PDF file containing design instructions, a folder of images [...]]]></description>
			<content:encoded><![CDATA[<p>This is the unofficial 33% release of my upcoming ebook. This part is called <strong><a href="http://www.wpdesigner.com/wp-content/files/book/how-to-design-a-wordpress-theme.zip">How to Design a WordPress Theme</a></strong>.</p>
<p>The next two parts are <strong>How to Slice a Wordpress Theme</strong> and <strong>How to Code a WordPress Theme</strong>.</p>
<p>The .zip file is 8.51 MB. Inside, you&#8217;ll find a PDF file containing design instructions, a folder of images (step-by-step screenshots), and a PSD file for you to mess around with. To use the PSD file, you&#8217;ll need Photoshop. Here&#8217;s the <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-design-a-wordpress-theme.pdf">PDF file</a> for you to preview, but you should download the screenshots and PSD file for the instructions to make sense.</p>
<p>About the instructions, they assume you have no prior knowledge of Photoshop so it&#8217;s pretty detailed. I&#8217;d suggest printing all of the instructions (15 pages) before working on this tutorial.</p>
<p>Again, this is a partial release of the entire book on how to create a WordPress theme from scratch. The entire book is still scheduled to be released within this week, but it looks like I&#8217;m going to need more time, longer than I originally announced. I&#8217;m doing the best I can to release this book as soon as possible (right now is 4:35 am), but I need to make sure it&#8217;s something I can be proud of so please hang on for several more days.</p>
<p><strong>Update: I&#8217;m using OpenOffice.org to export the tutorial as a PDF file, but I can&#8217;t find the PDF security options. If you can show me where to access it, please post your instruction as a comment. Thank you.</strong></p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=765&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_765" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/08/08/how-to-design-a-wordpress-theme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to manipulate category templates</title>
		<link>http://www.wpdesigner.com/2007/08/04/how-to-manipulate-category-templates/</link>
		<comments>http://www.wpdesigner.com/2007/08/04/how-to-manipulate-category-templates/#comments</comments>
		<pubDate>Sat, 04 Aug 2007 21:20:52 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/08/04/how-to-manipulate-category-templates/</guid>
		<description><![CDATA[One of my favorite WordPress template features  is the ability to customize category templates to cater specific categories of your choice.
Here&#8217;s my default category template. It simply displays excerpts:

Here&#8217;s my customize category template for category ID #2. This one is actually a theme gallery template:

So, how do you manipulate category templates? Simple, duplicate your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>One of my favorite WordPress template features  is the ability to customize category templates to cater specific categories of your choice.</strong></p>
<p>Here&#8217;s my default category template. It simply displays excerpts:</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/category-default.png' alt='category-default.png' class='centered' /></p>
<p>Here&#8217;s my customize category template for category ID #2. This one is actually a theme gallery template:</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/category-custom.png' alt='category-custom.png' class='centered' /></p>
<p><strong>So, how do you manipulate category templates?</strong> Simple, duplicate your default
<div class="codesnip-container" >category.php</div>
<p> template (or
<div class="codesnip-container" >archive.php</div>
<p> in some cases), add a hyphen and a number to the name of the new file. For example:
<div class="codesnip-container" >category-2.php</div>
<p>. Then, start customizing the template for the new file.</p>
<p>The number attached to the file name should be the ID of the category that you want to target.</p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=744&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_744" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/08/04/how-to-manipulate-category-templates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Style featured posts with WP-Sticky plugin</title>
		<link>http://www.wpdesigner.com/2007/08/03/style-featured-posts-with-wp-sticky-plugin/</link>
		<comments>http://www.wpdesigner.com/2007/08/03/style-featured-posts-with-wp-sticky-plugin/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 19:07:39 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/08/03/style-featured-posts-with-wp-sticky-plugin/</guid>
		<description><![CDATA[WP-Sticky is a plugin by Lester Chan, used to sticky blog posts that you want more attention for. If you sticky a post, it&#8217;ll stay at the top of your blog page, regardless of its published date.
That is especially useful if you publish multiple times per day with the need to feature one important post. [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://lesterchan.net/wordpress/readme/wp-sticky.html">WP-Sticky</a> is a plugin by <a href="http://lesterchan.net/portfolio/programming.php">Lester Chan</a>, used to sticky blog posts</strong> that you want more attention for. If you sticky a post, it&#8217;ll stay at the top of your blog page, regardless of its published date.</p>
<p><strong>That is especially useful if you publish multiple times per day</strong> with the need to feature one important post. You could simply publish the most important post in the morning, sticky it, and continue publishing instead of waiting to publish the most important one as the last post, just so it would be the first blog post your visitors see.</p>
<p>To install it, you simply download, unpack, and upload its folder to your Plugins folder. To use it, while editing or publishing a post, go to <strong>Post Sticky Status</strong> and select the status.</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/stick-status.png' alt='stick-status.png' class='centered' /></p>
<p><em>(There&#8217;s an additional feature, Announcement. Announcement posts show up above Sticky posts, which I guess&#8230; is useful for highlighting the most important post of all stickied posts.)</em></p>
<p>Beyond what WP-Sticky was built for, there&#8217;s a
<div class="codesnip-container" ><strong>post_sticky_status()</strong></div>
<p> function that you can use to mark your stickied posts. By default, that function outputs texts only. For example, it&#8217;ll output <strong>Sticky</strong> or stickied posts and <strong>Announcement</strong> for announcement posts. You can customize it to output XHTML too.</p>
<p><strong>How is that function useful for you in terms of design?</strong> Well, here&#8217;s your typical posts listing template:</p>
<div class="codesnip-container" >&lt;div class=&#8221;post&#8221;&gt;<br />
&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;<br />
&lt;div class=&#8221;entry-content&#8221;&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</div>
<p>What if we insert the
<div class="codesnip-container" >post_sticky_status()</div>
<p> function as a CSS selector like this:</p>
<div class="codesnip-container" >&lt;div class=&#8221;post &lt;?php post_sticky_status(); ?&gt;&#8221;&gt;<br />
&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;<br />
&lt;div class=&#8221;entry-content&#8221;&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</div>
<p>After inserting it, you end up with:</p>
<div class="codesnip-container" >&lt;div class=&#8221;post Sticky&#8221;&gt;</div>
<p><strong>Now, you have a conditional CSS selector that will only appear for posts marked as Sticky</strong>. That alone gives you lots of options to customize. You can use different background colors, images, and etc. to highlighting Sticky posts. Here&#8217;s an example of highlight a sticky post with a background image:</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/sticky-styling.png' alt='sticky-styling.png' class="centered" /></p>
<p>Or, you could simply highlight it by changing the back color like this:</p>
<div class="codesnip-container" >.Sticky{<br />
background: #fbfbfb;<br />
}</div>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/08/sticky-styling-2.png' alt='sticky-styling-2.png' class='centered' /></p>
<p>It doesn&#8217;t stop there. You can go on to customize post title link color, font size, line-height, and etcetera. Also, you don&#8217;t have to use the
<div class="codesnip-container" >post_stick_status()</div>
<p> function as a conditional CSS selector. Remember I mentioned that you could customize that function to output xhtml too?</p>
<p>Here&#8217;s how:
<div class="codesnip-container" ><strong>&lt;?php post_sticky_status(&#8221;,&#8221;); ?&gt;</strong></div>
<p>. Everything in the first set of single quotes appear before the word Sticky or Announcement; everything in the second set of single quotes appears after the same word.</p>
<p>For example:
<div class="codesnip-container" ><strong>&lt;?php post_sticky_status(&#8217;&lt;span&gt;&#8217;,'&lt;/span&gt;&#8217;); ?&gt;</strong></div>
<p>. You would end up with
<div class="codesnip-container" ><strong>&lt;span&gt;Sticky&lt;/span&gt;</strong></div>
<p>.</p>
<p>Warning: If you&#8217;d like to test this plugin, do not copy and paste my codes. I posted my codes as texts, not actual codes, so copy and pasting will not give you the proper format.</p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=715&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_715" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/08/03/style-featured-posts-with-wp-sticky-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to place a login form in the sidebar</title>
		<link>http://www.wpdesigner.com/2007/07/09/how-to-place-a-login-form-in-the-sidebar/</link>
		<comments>http://www.wpdesigner.com/2007/07/09/how-to-place-a-login-form-in-the-sidebar/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 00:17:26 +0000</pubDate>
		<dc:creator>Small Potato</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpdesigner.com/2007/07/09/how-to-place-a-login-form-in-the-sidebar/</guid>
		<description><![CDATA[Skip the login page. Want to log in through the front page? If yes then this tutorial is perfect for you. First, let&#8217;s see how it actually looks like. I tested it with my Lust WordPress theme on two local WordPress installs, version 2.1 and 2.2.
Here&#8217;s the login form in the sidebar:

Here&#8217;s the message after [...]]]></description>
			<content:encoded><![CDATA[<p>Skip the login page. <strong>Want to log in through the front page?</strong> If yes then this tutorial is perfect for you. First, let&#8217;s see how it actually looks like. I tested it with my Lust WordPress theme on two local WordPress installs, version 2.1 and 2.2.</p>
<p><strong>Here&#8217;s the login form in the sidebar</strong>:</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/07/sidebar_login.png' alt='sidebar login.png' class="centered" /></p>
<p><strong>Here&#8217;s the message after you&#8217;ve logged in</strong>:</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/07/admin_logged.png' alt='admin logged in' class="centered" /></p>
<p><strong>And here&#8217;s what a logged in subscriber would see</strong>:</p>
<p><img src='http://www.wpdesigner.com/wp-content/files/2007/07/user_logged.png' alt='user_logged.png' class="centered" /></p>
<p>So how do you put a login form in the sidebar? Simple, I did the work for you. Copy and paste the code in <a href="http://www.wpdesigner.com/wp-content/files/codes/sidebar_login.txt">sidebar_login.txt</a> to your sidebar. The URLs generated by this code is compatible with WordPress version 2.1 and up only. 2.0 and earlier versions are not compatible.</p>
<p>This technique is especially useful if you&#8217;re tired of having to go to the login page or if your blog place great importance on getting readers to register for accounts and actually log in.</p>
<p>Source: <strong>The original code was from <a href="http://www.monetizingtheweb.com/wordpress-theme-mw/">MW WordPress theme by Javier GarcÃ­a</a></strong>. I restructured and modified the code for a WordPress-like sidebar structure and valid XHTML.</p>
<p class="akst_link"><a href="http://www.wpdesigner.com/?p=631&amp;akst_action=share-this"  title="Email, post to del.icio.us, etc." id="akst_link_631" class="akst_share_link" rel="noindex nofollow">ShareThis</a>
</p><p>--------------</p><br />
<p>Thank you for subscribing to my feed. Download my ebook about <a href="http://www.wpdesigner.com/wp-content/files/book/how-to-code-a-wordpress-theme.zip">how to create a WordPress theme</a></p><br />
<p>Copyright &#169; 2007 <a href="http://www.wpdesigner.com/">Wpdesigner.com</a>. All Rights Reserved.</p>                                          ]]></content:encoded>
			<wfw:commentRss>http://www.wpdesigner.com/2007/07/09/how-to-place-a-login-form-in-the-sidebar/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
