<?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>The Book and the Cover &#187; Wordpress</title>
	<atom:link href="http://benjaminsterling.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://benjaminsterling.com</link>
	<description>Ok, you did not judge the book by it&#039;s cover, great.  Now, read the whole thing before passing judgment.</description>
	<lastBuildDate>Mon, 16 Jan 2012 21:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Separating Pings/Trackbacks from Comments in WordPress 2.7</title>
		<link>http://benjaminsterling.com/separating-pingstrackbacks-from-comments-in-wordpress-27/</link>
		<comments>http://benjaminsterling.com/separating-pingstrackbacks-from-comments-in-wordpress-27/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 17:00:35 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Comments]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=125</guid>
		<description><![CDATA[With the coming release of WordPress 2.7 we now have an easy way to separate out your pings and trackbacks from your comments. I will be using the default theme WordPress comes with to show you have to do this.  Below is the important code you should focus on: PLAIN TEXT PHP: &#60;?php if &#40; [...]]]></description>
			<content:encoded><![CDATA[<p>With the coming release of WordPress 2.7 we now have an easy way to separate out your pings and trackbacks from your comments.</p>
<p>I will be using the default theme WordPress comes with to show you have to do this.  Below is the important code you should focus on:<br />
<span id="more-125"></span></p>
<div class="igBar"><span id="lphp-7"><a href="#" onclick="javascript:showPlainTxt('php-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> have_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;h3 id=<span style="color:#FF0000;">"comments"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> comments_number<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'No Responses'</span>, <span style="color:#FF0000;">'One Response'</span>, <span style="color:#FF0000;">'% Responses'</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;?&gt; to &amp;<span style="color:#008000; font-style:italic;">#8220;&lt;?php the_title(); ?&gt;&amp;#8221;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/h3&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"commentlist"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/ol&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"navigation"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"alignleft"</span>&gt;&lt;?php previous_comments_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"alignright"</span>&gt;&lt;?php next_comments_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">else</span> : <span style="color:#FF9933; font-style:italic;">// this is displayed if there are no comments so far ?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'open'</span> == <span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">comment_status</span><span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;!-- <span style="color:#616100;">If</span> comments are open, but there are no comments. --&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">else</span> : <span style="color:#FF9933; font-style:italic;">// comments are closed ?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- <span style="color:#616100;">If</span> comments are closed. --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;p <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"nocomments"</span>&gt;Comments are closed.&lt;/p&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>With WordPress 2.7, you would edit the <em>wp_list_comments();</em> function to look like <em>wp_list_comments('type=comment');</em> and just after line 8 (&#8249;/ol&#8250;) put:</p>
<div class="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;h3 id=<span style="color:#FF0000;">"pings"</span>&gt;Trackbacks/Pingbacks&lt;/h3&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"pinglist"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'type=pings'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/ol&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>That bit of code will echo out all the pings, so your final code should look like:</p>
<div class="igBar"><span id="lphp-9"><a href="#" onclick="javascript:showPlainTxt('php-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-9">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> have_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;h3 id=<span style="color:#FF0000;">"comments"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> comments_number<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'No Responses'</span>, <span style="color:#FF0000;">'One Response'</span>, <span style="color:#FF0000;">'% Responses'</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;?&gt; to &amp;<span style="color:#008000; font-style:italic;">#8220;&lt;?php the_title(); ?&gt;&amp;#8221;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/h3&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"commentlist"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'type=comment'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/ol&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;h3 id=<span style="color:#FF0000;">"pings"</span>&gt;Trackbacks/Pingbacks&lt;/h3&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"pinglist"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'type=pings'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/ol&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"navigation"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"alignleft"</span>&gt;&lt;?php previous_comments_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"alignright"</span>&gt;&lt;?php next_comments_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">else</span> : <span style="color:#FF9933; font-style:italic;">// this is displayed if there are no comments so far ?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'open'</span> == <span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">comment_status</span><span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;!-- <span style="color:#616100;">If</span> comments are open, but there are no comments. --&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">else</span> : <span style="color:#FF9933; font-style:italic;">// comments are closed ?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- <span style="color:#616100;">If</span> comments are closed. --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;p <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"nocomments"</span>&gt;Comments are closed.&lt;/p&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ah, but there is a problem, what if you don't have any comments but you have pings/trackback or visa-versa?  You should now be able to wrap each H3+OL combiniation in code like:</p>
<div class="igBar"><span id="lphp-10"><a href="#" onclick="javascript:showPlainTxt('php-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-10">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> ! <a href="http://www.php.net/empty"><span style="color:#000066;">empty</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$comments_by_type</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'comment'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;h3 id=<span style="color:#FF0000;">"comments"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> comments_number<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'No Responses'</span>, <span style="color:#FF0000;">'One Response'</span>, <span style="color:#FF0000;">'% Responses'</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;?&gt; to &amp;<span style="color:#008000; font-style:italic;">#8220;&lt;?php the_title(); ?&gt;&amp;#8221;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/h3&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"commentlist"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'type=comment'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/ol&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> ! <a href="http://www.php.net/empty"><span style="color:#000066;">empty</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$comments_by_type</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'pings'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;h3 id=<span style="color:#FF0000;">"pings"</span>&gt;Pingbacks/Trackbacks&lt;/h3&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"pinglist"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'type=pings'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/ol&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And that's it, your Pingback and Comments are now separate.  Have a look at the final code below and let me know if I missed anything or if you have any questions.</p>
<div class="igBar"><span id="lphp-11"><a href="#" onclick="javascript:showPlainTxt('php-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-11">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> have_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> ! <a href="http://www.php.net/empty"><span style="color:#000066;">empty</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$comments_by_type</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'comment'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;h3 id=<span style="color:#FF0000;">"comments"</span>&gt;&lt;?php comments_number<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'No Responses'</span>, <span style="color:#FF0000;">'One Response'</span>, <span style="color:#FF0000;">'% Responses'</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;?&gt; to &amp;<span style="color:#008000; font-style:italic;">#8220;&lt;?php the_title(); ?&gt;&amp;#8221;&lt;/h3&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"commentlist"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'type=comment'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ol&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> ! <a href="http://www.php.net/empty"><span style="color:#000066;">empty</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$comments_by_type</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'pings'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;h3 id=<span style="color:#FF0000;">"pings"</span>&gt;Pingbacks/Trackbacks&lt;/h3&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ol <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"pinglist"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> wp_list_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'type=pings'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ol&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"navigation"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"alignleft"</span>&gt;&lt;?php previous_comments_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"alignright"</span>&gt;&lt;?php next_comments_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">else</span> : <span style="color:#FF9933; font-style:italic;">// this is displayed if there are no comments so far ?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'open'</span> == <span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">comment_status</span><span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;!-- <span style="color:#616100;">If</span> comments are open, but there are no comments. --&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">else</span> : <span style="color:#FF9933; font-style:italic;">// comments are closed ?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- <span style="color:#616100;">If</span> comments are closed. --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;p <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"nocomments"</span>&gt;Comments are closed.&lt;/p&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Update:</strong> In regards to Chris' question, there is a way to separate out your comments count; after some research you can use the <em>get_comments_number</em> filter, you just need to create function and put it in your <em>functions.php</em> file.</p>
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showPlainTxt('php-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'get_comments_number'</span>, <span style="color:#FF0000;">'get_new_comment_count'</span>, <span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> get_new_comment_count<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$count</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/global"><span style="color:#000066;">global</span></a> <span style="color:#0000FF;">$wp_query</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <a href="http://www.php.net/count"><span style="color:#000066;">count</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$wp_query</span>-&gt;<span style="color:#006600;">comments_by_type</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'comment'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>If you don't already have a functions.php file in your theme, just add one.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/separating-pingstrackbacks-from-comments-in-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress: Theme Test Drive</title>
		<link>http://benjaminsterling.com/wordpress-theme-test-drive/</link>
		<comments>http://benjaminsterling.com/wordpress-theme-test-drive/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 14:00:36 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=123</guid>
		<description><![CDATA[Have you ever needed to see what a theme looks like with your content but you did not want to have to recreate your whole site on a testing server and import all your data?  Well, Theme Test Drive to the rescue. You simply download the plugin, unzip it, upload it to your WordPress install, [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://benjaminsterling.com/wp-content/uploads/2008/12/theme_test_drive.png'><img src="http://benjaminsterling.com/wp-content/uploads/2008/12/theme_test_drive-300x264.png" alt="" title="theme_test_drive" width="300" height="264" class="alignright size-medium wp-image-126 featureImg" /></a></p>
<p>Have you ever needed to see what a theme looks like with your content but you did not want to have to recreate your whole site on a testing server and import all your data?  Well, <a href="http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive" target="_blank">Theme Test Drive</a> to the rescue.</p>
<p>You simply download the plugin, unzip it, upload it to your WordPress install, install the plugin and then select the theme you want to test.  This will allow you to go through your site as if it were live and see how it looks and works.</p>
<p>Now, have you ever need to make some changes to your current theme but did not want to shut down your site and you did not want your visitors to see a busted site?  Well, Theme Test Drive to the rescue again.</p>
<p>Follow the steps above, but instead of installing a new theme, just duplicate your current theme via your ftp of choice.  Once you have the duplicate theme, go into the dup and make a change to the style.css file and change the "Theme Name" - I just renamed the theme to have a 2 at the end of the name.</p>
<p>Reupload that style.css file and in the select menu under the Design -&gt; Theme Test Drive page select your newly named theme and click enable at the bottom.</p>
<p>After that, just work off of the duplicate theme till you have everything looking the way you want and just either copy over all the changes to the old theme folder or change your default theme to the duplicate.</p>
<p>Complete install instructions, support and download can be found on the <a href="http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive" target="_blank">plugins site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/wordpress-theme-test-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From the horses mouth: 2.7 Gets Here in Two Days!</title>
		<link>http://benjaminsterling.com/from-the-horses-mouth-27-gets-here-in-two-days/</link>
		<comments>http://benjaminsterling.com/from-the-horses-mouth-27-gets-here-in-two-days/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 03:08:56 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=122</guid>
		<description><![CDATA[This is so overly great, WordPress 2.7 will be release on Thursday. This is huge and which means I need to get my butt in gear in getting my plugins updated. As promised, here is the advance notice that WordPress 2.7 is coming to WordPress.com, and will go live on Thursday, December 4, 2008 at [...]]]></description>
			<content:encoded><![CDATA[<p>This is so overly great, WordPress 2.7 will be release on Thursday.  This is huge and which means I need to get my butt in gear in getting my plugins updated.</p>
<blockquote><p>As promised, here is the advance notice that WordPress 2.7 is coming to WordPress.com, and will go live on Thursday, December 4, 2008 at 8pm Eastern Time. That’s 5pm Thursday in California, 1am Friday in London (UTC), 8am Friday in Jakarta, noon on Friday in Sydney…find your time here. Some people like to learn how to use new things by jumping right in and exploring, while others like to read the manual first to get the lay of the land. This post is a written version of the 2.7 interface tour/feature review I have been doing at WordCamps, and will tell you what’s new in the administration interface of WordPress 2.7. There are a lot of new features, so fair warning: this post is pretty long. If you’re more of the jump-in-and-play kind of person, you can skip this post for now, but you might want to remember it’s here just in case you get confused when 2.7 arrives at WordPress.com in two days.</p></blockquote>
<p><a href="http://en.blog.wordpress.com/2008/12/03/27-gets-here-in-two-days/">2.7 Gets Here in Two Days!</a></p>
<p>If you don't feel like reading that post let me bring over another very important note:</p>
<blockquote><p>A note on browser capabilities: WordPress 2.7 makes extensive use of JavaScript to create the user experience outlined here. If you have JavaScript turned off in your browser, some features may not be available or may work a bit differently than described here. In addition, using a recent standards-compliant browser will ensure that you have an optimal experience. Older browsers that are not supported by their manufacturers any longer may not look as expected; we recommend Firefox 3, Google Chrome, and Safari 3.</p></blockquote>
<p>What does this mean, it means that WordPress will become much easier to use and manage... for people using better browsers.  I am not sure why IE7 is not in that list, I've tested it in IE7 with zero issues.</p>
<p>Be sure to upgrade as quick as possible as to not miss out on the beauty that is WP2.7.</p>
<p><strong>Please Back Up Your WordPress Install Before Upgrading</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/from-the-horses-mouth-27-gets-here-in-two-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog News Ticker</title>
		<link>http://benjaminsterling.com/blog-news-ticker/</link>
		<comments>http://benjaminsterling.com/blog-news-ticker/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 16:00:44 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=118</guid>
		<description><![CDATA[Recently I had been asked to help put together a post scroller widget for a WordPress install but sadly after it was nearly completed it was agreed that it would not "fit" the site it was meant for. And it is true, some sites, depending on who the site is meant for - the targeted [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had been asked to help put together a post scroller widget for a WordPress install but sadly after it was nearly completed it was agreed that it would not "fit" the site it was meant for.  And it is true, some sites, depending on who the site is meant for - the targeted audience - or what the main topic of the site really don't need bells and whistles to get content in front of their users.  Since I did not want all that work go to waste I figured I'd write up a post on the code and thought processes.</p>
<h3>Ideals</h3>
<p>I firmly believe that a site should still be functional, 508 compliant and still look good when styles and JavaScript are turned off.  With this in mind we will be doing some "progressive enhancements" and since there is going to very little that won't work in all browsers I won't go into my rant about <abbr title="progressive enhancements">PE</abbr>.</p>
<h3>Structure</h3>
<p>We will be using Definition lists; why definition lists?  Because they are semantically correct for this situation.  Have a look at two really good articles from <a href="http://css-tricks.com/utilizing-the-underused-but-semantically-awesome-definition-list/">Css-tricks.com</a> and <a href="http://www.maxdesign.com.au/presentation/definition/">Maxdesign.com</a> which go into detail on why you should use definition lists.</p>
<p>Below is the structure we will be dealing with, notice that we only have the DL/DT/DD structure and now wrapping DIV or any other extra mark up:</p>
<div class="igBar"><span id="lhtml-15"><a href="#" onclick="javascript:showPlainTxt('html-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-15">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">&lt;h3&gt;</span></a></span>Our News<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h3&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/dl.html"><span style="color: #000000; font-weight: bold;">&lt;dl</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"newsScroller"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/dt.html"><span style="color: #000000; font-weight: bold;">&lt;dt&gt;</span></a></span>Title<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dt&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">&lt;dd&gt;</span></a></span>Excerpt<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dd&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">&lt;dd&gt;</span></a></span>Date<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dd&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">&lt;dd&gt;</span></a></span>Tags and comment count<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dd&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dl&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>With <abbr title="progressive enhancements">PE</abbr> in mind, we will use JavaScript to add in any additional mark up we will need to achieve the scroller look.</p>
<p><a class="example {h:400,w:600}" data="" title="example" target="_blank" href="/wp-content/files/newsScroller.htm">Current Progress</a></p>
<p>The content from our current progress is from a dump I did of my own site using WordPress' loop.</p>
<h3>Styling</h3>
<p>In our next layer of PE will are going to add in some style simple based off of the current structure minus the JavaScript.</p>
<p><a class="example {h:400,w:600}" data="" title="example" target="_blank" href="/wp-content/files/newsScroller2.htm">Current Progress</a></p>
<p>In this phase we really did not do anything special, I just styled it as I would have normally.  You can add more pop to it if you feel.  Do note however, that at line 28 I am using a selector that <abbr title="Internet Explore 6">IE6</abbr> does not support and since the extra padding for that element is a nice to have and really does not hold the user of IE6 back I felt it was ok to add that in there.</p>
<div class="igBar"><span id="lcss-16"><a href="#" onclick="javascript:showPlainTxt('css-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-16">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">dl#newsScroller dd + dd<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; padding<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span><span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span> 22px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>JavaScript</h3>
<p>Now we start with the real fun, using JavaScript - in this instance, jQuery as our framework of choice, but you can just as easily use MooTools or DoJo - to add in some WOW factor.  Here the plan is to wrap the DL in a DIV, add some classes to some elements, set up some events, and animations.</p>
<p>What we have in the example just below is some additional styles and elements.</p>
<p><a class="example {h:400,w:600}" data="" title="example" target="_blank" href="/wp-content/files/newsScroller3.htm">Current Progress</a></p>
<p>Finally we have to set up the events and animation; what events do we need to set up and why? We need to bind the <em>mouseenter</em> and <em>mouseleave</em> event because if we want to be able to read what is being shown we need to be able to put our mouse over the content and have it stop any animations that are running so we can read it.</p>
<p>First thing we will need to do is to find out the total height of the grouped content is.  The grouped content in this case is the <em>DT/DD/DD/DD</em> combination.  We will be using the <em>outerHeight()</em> method to get the total height (padding/margin/height). To get that grouped content we will be using a combination of <em>.children()</em> and <em>.slice().</em></p>
<p><a class="example {h:400,w:600}" data="" title="example" target="_blank" href="/wp-content/files/newsScroller4.htm">Final</a></p>
<p><a class="thecode {h:400,w:600}" data="" title="example" target="_blank" href="/wp-content/files/newsScroller4.txt">Final</a></p>
<h3>Closing</h3>
<p>So with the final product we have a decent footprint to stylize to your likings.  Feel free to stylize it, add new functionality, new animation - some easin/easeout effects would look nice.  Think outside of the box, just make sure it degrades nicely.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/blog-news-ticker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Plugin Icon in WordPress 2.7</title>
		<link>http://benjaminsterling.com/new-plugin-icon-in-wordpress-27/</link>
		<comments>http://benjaminsterling.com/new-plugin-icon-in-wordpress-27/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 16:00:09 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=110</guid>
		<description><![CDATA[If you are a WordPress plugin Developer then you most likely have used the "add_menu_page" function before.  With WordPress 2.7 you can now add an icon to your plugin to be shown in the new side menu in the admin area. PLAIN TEXT PHP: add_menu_page&#40; $page_title, $menu_title, $access_level, $file, $function = '', $icon_url = '' [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a WordPress plugin Developer then you most likely have used the "add_menu_page" function before.  With WordPress 2.7 you can now add an icon to your plugin to be shown in the new side menu in the admin area.</p>
<div class="igBar"><span id="lphp-19"><a href="#" onclick="javascript:showPlainTxt('php-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-19">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_menu_page<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$page_title</span>, <span style="color:#0000FF;">$menu_title</span>, <span style="color:#0000FF;">$access_level</span>, <span style="color:#0000FF;">$file</span>, <span style="color:#0000FF;">$function</span> = <span style="color:#FF0000;">''</span>, <span style="color:#0000FF;">$icon_url</span> = <span style="color:#FF0000;">''</span> <span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So in PhotoXhibit's case, I did the following:</p>
<div class="igBar"><span id="lphp-20"><a href="#" onclick="javascript:showPlainTxt('php-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-20">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_menu_page<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'PhotoXhibit'</span>,<span style="color:#FF0000;">'PhotoXhibit'</span>, <span style="color:#CC66CC;color:#800000;">7</span>, <span style="color:#0000FF;">$bp</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>&amp;amp;<span style="color:#0000FF;">$this</span>, <span style="color:#FF0000;">'showLandingPage'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#0000FF;">$this</span>-&amp;gt;imgBaseUrl.<span style="color:#FF0000;">'lphoto.png'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And I get:</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-111 aligncenter" title="photoxhibit_icon" src="http://benjaminsterling.com/wp-content/uploads/2008/11/photoxhibit_icon.png" alt="" width="155" height="50" /></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/new-plugin-icon-in-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New Favorite Actions in WordPress 2.7</title>
		<link>http://benjaminsterling.com/new-favorite-actions-in-wordpress-27/</link>
		<comments>http://benjaminsterling.com/new-favorite-actions-in-wordpress-27/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 16:43:22 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=105</guid>
		<description><![CDATA[WordPress 2.7 will be release sometime soon and with it comes a new feature call "favorite actions," it's a drop down menu that is sort of a quick launch to your most used actions. Right now it only contains "Add New Post", "Add New Page" and "Manage Comments". Like with most features in WordPress, you [...]]]></description>
			<content:encoded><![CDATA[<div class="featureImg"><img class="alignnone size-full wp-image-107" title="" src="http://benjaminsterling.com/wp-content/uploads/2008/11/favorite2.png" alt="New favorite actions dropdown (favorite_actions)" /></div>
<p>WordPress 2.7 will be release sometime soon and with it comes a new feature call "favorite actions," it's a drop down menu that is sort of a quick launch to your most used actions.  Right now it only contains "Add New Post", "Add New Page" and "Manage Comments".  Like with most features in WordPress, you can easily add to via the "add_filter" function link so:</p>
<div class="igBar"><span id="lphp-25"><a href="#" onclick="javascript:showPlainTxt('php-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-25">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'favorite_actions'</span>, <span style="color:#FF0000;">'new_favorite_actions'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The new function that builds out that drop down menu is called "favorite_actions" and is located in the "/wp-admin/includes/template.php" file.  The default menu structure array is below:</p>
<div class="igBar"><span id="lphp-26"><a href="#" onclick="javascript:showPlainTxt('php-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-26">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$actions</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF0000;">'post-new.php'</span> =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Add New Post'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#FF0000;">'edit_posts'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF0000;">'page-new.php'</span> =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Add New Page'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#FF0000;">'edit_pages'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF0000;">'edit-comments.php'</span> =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Manage Comments'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#FF0000;">'moderate_comments'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The first part of the array "post-new.php" is of course the page it will be going to, the second page is an array with the text that would be shown in the menu and the permission.  Have a look-see at<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank"> roles and capabilities on the WordPress</a> site for more information about permission.</p>
<p>Although I don't see a way to add favorite actions on the fly there is a way to add some via a plugin.  In my PhotoXhibit plugin I will be using the following code to add menu options for adding a new gallery and for managing galleries.</p>
<div class="igBar"><span id="lphp-27"><a href="#" onclick="javascript:showPlainTxt('php-27'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-27">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$newactions</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF0000;">'admin.php?page=px_build'</span> =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Add New Gallery'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#FF0000;">'level_10'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF0000;">'admin.php?page=px_manage'</span> =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Manage Galleries'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#FF0000;">'level_10'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <a href="http://www.php.net/array_merge"><span style="color:#000066;">array_merge</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$actions</span>, <span style="color:#0000FF;">$newactions</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Notice how I am adding to the $action array, I am using the array_merge which does exactly what it says, it merges the two arrays.</p>
<h3>A Plugin</h3>
<p>Below is a basic plugin template that you can use to add your own menu items to the favorite menu.</p>
<div class="igBar"><span id="lphp-28"><a href="#" onclick="javascript:showPlainTxt('php-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-28">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Plugin Name: A Favorite Menu Action Plugin Template</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Plugin URI: <a href='http://benjaminsterling.com' rel='nofollow'>http://benjaminsterling.com</a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Description: This is a templete for you to build your own plugin</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Author: Benjamin Sterling</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Author URI: <a href='http://benjaminsterling.com/' rel='nofollow'>http://benjaminsterling.com/</a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'favorite_actions'</span>, <span style="color:#FF0000;">'bs_template_for_favorite'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> bs_template_for_favorite<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$actions</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$newactions</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'admin.php?page=pluginshortcut/plugin.php'</span> =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Some plugin'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#FF0000;">'manage_options'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'upload.php'</span> =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Manage Library'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#FF0000;">'edit_files'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <a href="http://www.php.net/array_merge"><span style="color:#000066;">array_merge</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$actions</span>, <span style="color:#0000FF;">$newactions</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Final thoughts</h3>
<p>Although the new "favoriate_actions" function is nice and the favorite menu does what it needs to do, I am a bit nervous that plugin developers will not give their users the option to add to it and just force it upon them.  Which may not be an issue but what if you twenty plugins that all force their items in to the favorite list?  Or what if a plugin developer clears out the initial action array and puts in only their plugin URI?  It can get to be a bit hairy.</p>
<p>I would also say that this new feature can become quite powerful and useful.  What if someone comes up with a plugin, or WordPress institutes a feature, that tracks the pages you use most often and adds those pages to the list.  Or what about a plugin that attaches itself to the option area and has a checkbox for every admin page/action and you can click to add all the favs you want?  Any takers?</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/new-favorite-actions-in-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Announcing the WordPress Image Browser Extender Plugin</title>
		<link>http://benjaminsterling.com/announcing-the-wordpress-image-browser-extender-plugin/</link>
		<comments>http://benjaminsterling.com/announcing-the-wordpress-image-browser-extender-plugin/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 19:49:40 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=80</guid>
		<description><![CDATA[I am pleased to another WordPress plugin geared toward improving the functionality and usability of WordPress' admin area. This plugin will extend the functionality of the richtext editor to include the ability to browse thru all your images that have been uploaded to your WordPress install. Feel free to check it out at Image Browser [...]]]></description>
			<content:encoded><![CDATA[<p>I am pleased to another WordPress plugin geared toward improving the functionality and usability of WordPress' admin area.  This plugin will extend the functionality of the richtext editor to include the ability to browse thru all your images that have been uploaded to your WordPress install.</p>
<p>Feel free to check it out at <a href="http://benjaminsterling.com/wordpress-image-browser-extender/">Image Browser Extenders page</a> and download it from the <a href="http://wordpress.org/extend/plugins/image-browser-extender/">WordPress extend site</a>.</p>
<p>Some screen shots to hold you over:</p>
<p><a href="http://benjaminsterling.com/wp-content/uploads/2008/06/imageextender.png"><img class="alignnone size-thumbnail wp-image-82" style="border: 0pt none; margin: 5px;" title="imageextender" src="http://benjaminsterling.com/wp-content/uploads/2008/06/imageextender-150x150.png" alt="" width="150" height="150" /></a><a href="http://benjaminsterling.com/wp-content/uploads/2008/06/imageextender2.png"><img class="alignnone size-thumbnail wp-image-81" style="border: 0pt none; margin: 5px;" title="imageextender2" src="http://benjaminsterling.com/wp-content/uploads/2008/06/imageextender2-150x150.png" alt="" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/announcing-the-wordpress-image-browser-extender-plugin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Announcing the WordPress Editor Extender Plugin</title>
		<link>http://benjaminsterling.com/announcing-the-wordpress-editor-extender-plugin/</link>
		<comments>http://benjaminsterling.com/announcing-the-wordpress-editor-extender-plugin/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 17:05:29 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[richtext editor]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=77</guid>
		<description><![CDATA[Today I present to you my newest release, a WordPress plugin that adds/extends the functionality of the richtext editor for editing post and pages call Editor Extender.  Fancy name huh?  I am not very creative with my names but I am however creative with my code.  I've been using this plugin in probably about half [...]]]></description>
			<content:encoded><![CDATA[<p>Today I present to you my newest release, a WordPress plugin that adds/extends the functionality of the richtext editor for editing post and pages call Editor Extender.  Fancy name huh?  I am not very creative with my names but I am however creative with my code.  I've been using this plugin in probably about half of the websites I have built using WordPress as its CMS.  Most of my clients needed the table feature or they wanted a button to click to give a line break, enter in dates and so on.</p>
<p>With this plugin adding functionality has become a simple as clicking a few check boxes, no need to fuss with code.  Go ahead and check out the <a href="http://benjaminsterling.com/wordpress-editor-extender/">plugins page</a> or download it from <a href="http://wordpress.org/extend/plugins/editor-extender/">WordPress.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/announcing-the-wordpress-editor-extender-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Annoucing the Attachment Extender for WordPress</title>
		<link>http://benjaminsterling.com/annoucing-the-attachment-extender-for-wordpress/</link>
		<comments>http://benjaminsterling.com/annoucing-the-attachment-extender-for-wordpress/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 04:00:23 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=72</guid>
		<description><![CDATA[Lately I have been do a ton of development with WordPress for use in a few websites as CMS - which I will be doing a few post on at some point - and I found using the Media Library to be a bit lacking. Not to bash anyone but there just seemed to be [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been do a ton of development with WordPress for use in a few websites as CMS - which I will be doing a few post on at some point - and I found using the Media Library to be a bit lacking.  Not to bash anyone but there just seemed to be some very basics things that were over looked.</p>
<p>One of which was the ability to update the files you posted, you can edit the titles and captions, you can event delete the file but you can't upload a new version of the file.  You would need to delete and repost the file which is a process not easily communicated to a customer or a wife using WordPress.  So I create the <em><a href="http://benjaminsterling.com/wordpress-attachment-extender/">Attachment Manager</a></em> to fill that void.  What it gives you is the ability to re-upload a new version of a photo or a pdf or what ever you are trying to update without cause a bunch of hardships.</p>
<p>You can grab yourself a copy over at <a href="http://wordpress.org/extend/plugins/attachment-extender/">http://wordpress.org/extend/pl.....-extender/</a> and checkout <a href="http://benjaminsterling.com/wordpress-attachment-extender/">http://benjaminsterling.com/wo.....-extender/</a> for instructions and feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/annoucing-the-attachment-extender-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Getting all post between two dates</title>
		<link>http://benjaminsterling.com/wordpress-getting-all-post-between-to-dates/</link>
		<comments>http://benjaminsterling.com/wordpress-getting-all-post-between-to-dates/#comments</comments>
		<pubDate>Sun, 04 May 2008 17:00:48 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=65</guid>
		<description><![CDATA[Today I had a need to get all posts between to dates in WordPress, between now and a year ago.  After searching and searching I could find the answer I needed.  So I decided to just write the query myself which I have done many times before but not with WordPress' database scheme.]]></description>
			<content:encoded><![CDATA[<p>Today I had a need to get all posts between to dates in WordPress, between now and a year ago.  After searching and searching I could find the answer I needed.  So I decided to just write the query myself which I have done many times before but not with WordPress' database scheme.</p>
<p>Below is the code that I used, basically I need to grab all posts from a particular category, in this case category 3, and I also needed the posts to be between today's date and this date last year.  Some help came from this <a href="http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query" rel="nofollow">post here</a>.</p>
<p>Well, here it is:</p>
<div class="igBar"><span id="lphp-29"><a href="#" onclick="javascript:showPlainTxt('php-29'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-29">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$querystr</span> = <span style="color:#FF0000;">"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; SELECT * </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; FROM $wpdb-&gt;posts as wpost</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; INNER JOIN $wpdb-&gt;term_relationships </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; ON (wpost.ID = $wpdb-&gt;term_relationships.object_id) </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; INNER JOIN $wpdb-&gt;term_taxonomy </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; ON ($wpdb-&gt;term_relationships.term_taxonomy_id = $wpdb-&gt;term_taxonomy.term_taxonomy_id)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; AND $wpdb-&gt;term_taxonomy.taxonomy = 'category'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; AND $wpdb-&gt;term_taxonomy.term_id IN (3)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; where wpost.post_date BETWEEN SUBDATE(CURDATE(), INTERVAL 1 YEAR) and ADDDATE(CURDATE(), INTERVAL 1 DAY) ORDER BY wpost.post_date DESC</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;"> "</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$pageposts</span> = <span style="color:#0000FF;">$wpdb</span>-&gt;<span style="color:#006600;">get_results</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$querystr</span>, OBJECT<span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/wordpress-getting-all-post-between-to-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Things I&#8217;ve Learned While building a WordPress Plugin</title>
		<link>http://benjaminsterling.com/things-ive-learned-while-building-a-wordpress-plugin/</link>
		<comments>http://benjaminsterling.com/things-ive-learned-while-building-a-wordpress-plugin/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 03:47:52 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/things-ive-learned-while-building-a-wordpress-plugin/</guid>
		<description><![CDATA[<img src="wp-content/themes/sterling/common/img/icon_wordpress.jpg" class="excerptImg"/>After building my first few WordPress plugins I learned quite a few things that I just could not find good information on.  So what I will be doing over a couple or so posts is explaining what the problem/issue was that I had and show you how I went about resolving the problem/issue.]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for What I learned while building a WordPress Plugin</h3><ol><li>Things I&#8217;ve Learned While building a WordPress Plugin</li></ol></div> <p>After building my first few WordPress plugins I learned quite a few things that I just could not find good information on.  So what I will be doing over a couple or so posts is explaining what the problem/issue was that I had and show you how I went about resolving the problem/issue.</p>
<h4>How do I add a sub menu for my plugins admin and what is a "unique identifier"?</h4>
<p>Ok, creating a submenu is not very hard and <a href="http://codex.wordpress.org/Adding_Administration_Menus#Sub-Menus" rel="nofollow">WordPress docs</a> does an ok job of explaining it.  But when you are building your plugin using a class structure it is not very clear what you should do.</p>
<p>Lets assume that you have a class called "myClass" and a function with in it that is called "adminMenu."  Let's also assume that this class is also on the same file that is your main plugin file that has the version information on it. Your typical php4 based class would look like (php5 based classes have __construct instead of calling myClass and some other minor differences):</p>
<div class="igBar"><span id="lphp-30"><a href="#" onclick="javascript:showPlainTxt('php-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-30">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> myClass<span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> myClass<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; add_action<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'admin_menu'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>&amp;amp;<span style="color:#0000FF;">$this</span>, <span style="color:#FF0000;">'adminMenu'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> adminMenu<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'add_menu_page'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add_menu_page<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'My Class'</span>,<span style="color:#FF0000;">'My Class'</span>, <span style="color:#CC66CC;color:#800000;">7</span>, <span style="color:#000000; font-weight:bold;">__FILE__</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>&amp;<span style="color:#0000FF;">$this</span>, <span style="color:#FF0000;">'adminSubPage1'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'add_submenu_page'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add_submenu_page<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">__FILE__</span>, <span style="color:#FF0000;">'SubMenu 1'</span>, <span style="color:#FF0000;">'SubMenu 1'</span>, <span style="color:#CC66CC;color:#800000;">7</span>, <span style="color:#000000; font-weight:bold;">__FILE__</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>&amp;<span style="color:#0000FF;">$this</span>, <span style="color:#FF0000;">'adminSubPage1'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add_submenu_page<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">__FILE__</span>, <span style="color:#FF0000;">'SubMenu 2'</span>, <span style="color:#FF0000;">'SubMenu 2'</span>, <span style="color:#CC66CC;color:#800000;">7</span>, <span style="color:#FF0000;">'mc_adminSubPage2'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>&amp;<span style="color:#0000FF;">$this</span>, <span style="color:#FF0000;">'adminSubPage2'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>At line three we add an action that points to the "adminMenu" function and let me clarify what I have found happens with "array(&amp;$this, 'adminMenu')".  WordPress will take "array(&amp;$this, 'adminMenu')" and make it into myClass::adminMenu() and execute it like that - the <font color="#ff0000">&amp;this</font> is a reference to <font color="#ff0000">myClass.</font></p>
<p>At line 8 we have the main link that gets put at the top next to "Plugins," "Comments" and so on.  You will notice the <font color="#ff0000">__FILE__</font> constant, this allows WordPress to set that menu item to reference the plugins main file.   You also see <font color="#ff0000">array(&amp;$this, 'adminSubPage1') </font>will execute as <font color="#ff0000">myClass::adminSubPage1()</font> (this function is not shown).</p>
<p>At line 11 we create our first submenu for our plugin which also points to the  <font color="#ff0000">adminSubPage1</font> function, which is needed I found.  If you don't have a submenu item that points to the same "page" as the main menu item, the submenu items will not show up.</p>
<p>At line 12 we create our second submenu item that points to the  <font color="#ff0000">adminSubPage2</font> function (also not shown).    You will notice a three differences between the two submenus, two being the Names and the function they point to, and the third is the <font color="#ff0000">mc_adminSubPage2 </font>which is our <font color="#ff0000">unique identifier</font>.  This will give us a url the looks something like <font color="#ff0000">admin.php?page=mc_adminSubPage2</font>.</p>
<p>Nothing real fancy with this one, just wanted show how to create your plugin menu items while using a Object Oriented approach.  Feel free to let me know if there is an easier way or if I am all around incorrect.  Next post will be about loading of jQuery and your other JavaScript without messing up the Prototype code that WordPress and other WP plugins use.</p>
 <div class='series_links'> </div>]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/things-ive-learned-while-building-a-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhotoXhibit RC2 released, a call for testing</title>
		<link>http://benjaminsterling.com/photoxhibit-rc2-released-a-call-for-testing/</link>
		<comments>http://benjaminsterling.com/photoxhibit-rc2-released-a-call-for-testing/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 03:46:04 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[picasa]]></category>
		<category><![CDATA[smugmug]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/photoxhibit-rc2-released-a-call-for-testing/</guid>
		<description><![CDATA[<img src="wp-content/themes/sterling/common/img/icon_wordpress.jpg" class="excerptImg"/>As some of you may know I have been working on adding a bunch of functionality to my <a href="http://benjaminsterling.com/benjaminsterlinggalleries/">WordPress plugin</a> <abbr title="Benjamin Sterling Galleries" lang="EN">BSG</abbr> and with many sleepless nights and countless hours (203) I have release beta 2 of the plugin under the new name <a href="http://benjaminsterling.com/photoxhibit/">PhotoXhibit</a>.]]></description>
			<content:encoded><![CDATA[<p>As some of you may know I have been working on adding a bunch of functionality to my <a href="http://benjaminsterling.com/benjaminsterlinggalleries/">WordPress plugin</a> <abbr title="Benjamin Sterling Galleries" lang="EN">BSG</abbr> and with many sleepless nights and countless hours (203) I have release beta 2 of the plugin under the new name <a href="http://benjaminsterling.com/photoxhibit/">PhotoXhibit</a>.</p>
<p>Why the name change, "Benjamin Sterling Galleries" was just so darn catchy?  Ummm... it wasn't!  <abbr title="Benjamin Sterling Galleries" lang="EN">BSG</abbr> was originally built for <a href="http://neurosesgalore.com/">my wife</a> and after showing it to a few friends, who in turn showed to a few of their friends, the feedback and suggestions that were given kinda forced me to add to it.  First I added the ability to communicate with Picasa, then to Flickr, the Default WordPress image/file manager, and now to SmugMug as well as the newly build Album Manger with multiple upload, multiple thumbnail support.  As well as many other new features that I really can't list, I just could not leave it with such an egotistical, no descriptive name.  So now we have PhotoXhibit, isn't that nicer?</p>
<p>I can ramble on forever, but this is not the time so go and download, test and give me feedback.</p>
<p><a href="http://wordpress.org/extend/plugins/photoxhibit/">The download link</a><br />
<a href="http://benjaminsterling.com/photoxhibit/">Please to leave feedback and report bugs</a></p>
<p>I am working on documentation and some screen casts, but if you are good with words and would like to help with docs, please don't hesitate to drop me a line.</p>
<p>Well, that's it, go... go, test away, let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/photoxhibit-rc2-released-a-call-for-testing/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>So You Want More Tag Buttons for WordPress</title>
		<link>http://benjaminsterling.com/so-you-want-more-tag-buttons-for-wordpress/</link>
		<comments>http://benjaminsterling.com/so-you-want-more-tag-buttons-for-wordpress/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 23:38:33 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[editors]]></category>
		<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/11/29/so-you-want-more-tag-buttons-for-wordpress/</guid>
		<description><![CDATA[<img src="wp-content/themes/sterling/common/img/icon_wordpress.jpg" class="excerptImg"/>If you are anything like me, you find using the Rich Text editor for Wordpress to be a bit daunting for any number of reason.  For me, it is mainly when I go to add custom code and go back to the visual editor and it just disappears.  Yes I know I can go in and hack the thing to get it to appreciate my code, but really, I find that to be to much work.  Besides, I found a really nice alternative, <strong>Quicktags</strong>!]]></description>
			<content:encoded><![CDATA[<p>If you are anything like me, you find using the Rich Text editor for WordPress to be a bit daunting for any number of reason.  For me, it is mainly when I go to add custom code and go back to the visual editor and it just disappears.  Yes I know I can go in and hack the thing to get it to appreciate my code, but really, I find that to be to much work.  Besides, I found a really nice alternative, <strong>Quicktags</strong>!<br />
<span id="more-39"></span></p>
<p>What are <strong>Quicktags </strong>you say?  Well, they are a bunch of little trolls that run around tagging things, they are really a bunch of fun once you learn to stay out of their way.  They like Pepsi I find; tried to sneak Coke past them one day and ouch, never do that again.</p>
<p>Well, that's it...</p>
<p>Ok, I'm kidding, there are no Quicktag trolls running around, just my baby girl pulling the dogs tail and grabbing the cat.  But I do have a fix for those how prefer to work in code view.</p>
<p>WordPress has a file located at "<em><strong>wp-incudes\js\quicktags.js</strong></em>" that controls the buttons and it is pretty simple to implements.  Go to the "<em><strong>wp-incudes\js\</strong></em>" folder, open up "quicktags.js" in your favorite editor and add the following to just before line 36:</p>
<h3>Look for:</h3>
<div class="igBar"><span id="ljavascript-31"><a href="#" onclick="javascript:showPlainTxt('javascript-31'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-31">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">edButtons<span style="color: #66cc66;">&#91;</span>edButtons.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#93;</span> = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'ed_strong'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'b'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;strong&gt;'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;/strong&gt;'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'b'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Add:</h3>
<div class="igBar"><span id="ljavascript-32"><a href="#" onclick="javascript:showPlainTxt('javascript-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-32">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">edButtons<span style="color: #66cc66;">&#91;</span>edButtons.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#93;</span> = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'ed_h1'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h1'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;h1&gt;'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;/h1&gt;'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h1'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Save it, upload it and test it.  Now you should have an <strong>H1</strong> button just before the <strong>B</strong> (bold) button.  Pretty simple.</p>
<p>You are free to add as many tags as you want and below is the partial list of what I have on my system:</p>
<div class="igBar"><span id="ljavascript-33"><a href="#" onclick="javascript:showPlainTxt('javascript-33'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-33">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">edButtons<span style="color: #66cc66;">&#91;</span>edButtons.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#93;</span> = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'ed_h1'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h1'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;h1&gt;'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;/h1&gt;'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h1'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">edButtons<span style="color: #66cc66;">&#91;</span>edButtons.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#93;</span> = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'ed_h2'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h2'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;h2&gt;'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;/h2&gt;'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h2'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">edButtons<span style="color: #66cc66;">&#91;</span>edButtons.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#93;</span> = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'ed_h3'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h3'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;h3&gt;'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;/h3&gt;'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h3'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">edButtons<span style="color: #66cc66;">&#91;</span>edButtons.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#93;</span> = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'ed_h4'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h4'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;h4&gt;'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;/h4&gt;'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h4'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">edButtons<span style="color: #66cc66;">&#91;</span>edButtons.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#93;</span> = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'ed_h5'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h5'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;h5&gt;'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'&lt;/h5&gt;'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">,<span style="color: #3366CC;">'h5'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/so-you-want-more-tag-buttons-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Benjamin Sterling Galleries: WordPress Photo/Image Gallery Plugin for Flickr &amp; Picasa</title>
		<link>http://benjaminsterling.com/benjaminsterlinggalleries/</link>
		<comments>http://benjaminsterling.com/benjaminsterlinggalleries/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 04:47:43 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Photogallery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[photo gallery]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[picasaweb]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/11/20/benjamin-sterling-galleries-wordpress-photoimage-gallery-plugin-for-flickr-picasa/</guid>
		<description><![CDATA[New Version and Name Change The "Benjamin Sterling Galleries" plugin has been renamed and recoded with a ton of new features. The new URL is http://benjaminsterling.com/photoxhibit/ and although support will still be given for this version (1.6.2) I would suggest you checking out PhotoXhibit Comments for this post are closed, please go to PhotoXhibit for [...]]]></description>
			<content:encoded><![CDATA[<h3>New Version and Name Change</h3>
<p>The "Benjamin Sterling Galleries" plugin has been renamed and recoded with a ton of new features.  The new URL is <a href="http://benjaminsterling.com/photoxhibit/">http://benjaminsterling.com/photoxhibit/</a> and although support will still be given for this version (1.6.2) I would suggest you checking out <a href="http://benjaminsterling.com/photoxhibit/">PhotoXhibit</a> </p>
<p>Comments for this post are closed, please  go to <a href="http://benjaminsterling.com/photoxhibit/">PhotoXhibit</a> for support.</p>
<h3>What is it?</h3>
<p>A godsend plugin for anyone who wants to add a photogallery to their website using WordPress and jQuery.</p>
<h3>Download (current count: 1,810)</h3>
<p>Download Benjamin Sterling Galleries Version 1.6.2</p>
<ul>
<li><a href="http://downloads.wordpress.org/plugin/benjamin-sterling-galleries.1.6.2.zip" rel="nofollow">Download zip version</a></li>
</ul>
<h3>Features</h3>
<ul class="formatted">
<li>
		Pull in photos / images, thumbnail and large size, from just about everywhere</p>
<ul>
<li>from flickr via rss or their json api</li>
<li>from picasa via rss</li>
<li>from a local folder</li>
<li>from photos / images already in the WordPress database</li>
</ul>
</li>
<li>
		Ulilizes the jQuery JavaScript framework's power and a ever growing list of great photogallery plugins
	</li>
<li>
		Drag and drop reordering of gallery images
	</li>
<li>
		Change functionality of your photogallery with few clicks of the mouse
	</li>
<li>
		Combine photos from multiple accounts  and services
	</li>
<li>
		Embed your gallery in posts or anywhere on your site
	</li>
<li>
		Galleries are 508 compliant and will degrade nicely when JavaScripts are turned off
	</li>
<li>
		Preview your gallery on the fly
	</li>
</ul>
<h3>Resources</h3>
<ul class="formatted">
<li>
		Demo/Dev install (test/test)</p>
<ul>
<li><a href="http://galleries.benjaminsterling.com/wp-admin" rel="nofollow">WordPress 2.3</a></li>
</ul>
</li>
<li><a href="#respond">Support</a></li>
<li><a href="#timeline">Timeline</a></li>
<li>
		jQuery Gallery Plugins Used</p>
<ul>
<li><a href="http://benjaminsterling.com/2007/09/30/jquery-jqgalview-photo-gallery/">jqGalView</a></li>
<li><a href="http://benjaminsterling.com/2007/10/02/jquery-jqgalviewii-photo-gallery/">jqGalViewII</a></li>
<li><a href="http://benjaminsterling.com/2007/09/09/jquery-jqgalscroll-photo-gallery/">jqGalScroll</a></li>
<li><a href="http://www.malsup.com/jquery/cycle/" target="_blank" rel="nofollow">cycle</a></li>
</ul>
</li>
</ul>
<h3>History</h3>
<p>While wordpress does have a ton of image / photo galleries, I felt that none of them really gave you control over everything in an easy unobtrusive way.  Not to say this this plugin is the is all be all, but it will get there.</p>
<p>In my hunt to find a good one for my wife and installing all the ones that I thought had what was needed, I found that none of them made it easy.  My wife is a very smart woman, so when she gets frustrated with something it most likely not her.  So after a few months of her beating me, I decided to build some jQuery gallery plugins which you can find on this site.  This was able to keep her happy for a bit, but I had to go in and make changes everytime she wanted to add and image or take one out.  After doing this a few times I decided to just put together a quick plugin that will take in the images via a picasa feed provided by her and let her do the changes her self.</p>
<p>After showing this plugin to a few other developers they suggested I should make it into a full fledge plugin and well, here it is.</p>
<h3>Prerequisites</h3>
<ul class="formatted">
<li>WordPress 2.1 or higher</li>
<li>A Flickr account and api key or</li>
<li>A Picasa account or</li>
<li>Images in a local directory or</li>
<li>Images in your WordPress database</li>
</ul>
<h3>Aside</h3>
<p>Although this plugin was test on a pc in IE6, IE7, FF2, and Opera 9.24 and on IIS6 PHP5, Apache PHP4 &#038; PHP5 and feel comfortable that this plugin will work flawlessly, I am the creator of the plugin, thus, I am naturally going to use it the way it is supposed to be used and not have any issues.  That is where you come in, any and all comments and concerns should be posted asap and I will build up a punch list of fixes.  Also, if there are jQuery or even other Javascript libraries that have nice photo / image gallery plugins, let me know and I will see what I can do to add that into the mix.</p>
<h3 id="timeline">Timeline</h3>
<p>Here is a brief timeline of what I hope to accomplish and in what order.  There is no exact date for each release, but the time between each release should not be more then two months.</p>
<ul class="formatted">
<li>1.2 current release</li>
<li>1.3
<ul>
<li>Add more Picasa interaction
<ul>
<li>interactions tbd</li>
</ul>
</li>
</ul>
</li>
<li>1.4
<ul>
<li>Add more control of the style for each jQuery photo gallery plugins
<ul>
<li>The thought is to possibly have all the styles embedded in the database<br />
						and then have those styles transfer over when<br />
						you create a gallery. </li>
</ul>
</li>
<li>Add better control over parameters for jQuery photo gallery plugins  </li>
</ul>
</li>
<li>1.5
<ul>
<li>Add the ability to change the alt text for each image no matter where<br />
				the image is from</p>
<ul>
<li>The thought is to possibly have an edit icon appear when mousing over<br />
						an image </li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>Installation</h3>
<p>If you have ever installed a plugin, then this will be pretty easy.</p>
<ol>
<li><strong><a href="http://codex.wordpress.org/WordPress_Backups" target="_blank" rel="nofollow">always back up your WordPress before making any modifications.</a></strong></li>
<li>Extract the files. Place the <strong>benjamin-sterling-galleries</strong> directory into <strong> wp-content/plugins/ </strong></li>
<li>Login to the Site Admin and go to Plugins and active Benjamin Sterling Galleries</li>
<li>Then it can be configured from the BSG menu that you should now have on the top menu bar.</li>
</ol>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9213319579769471";
//between 1
google_ad_slot = "9115797393";
google_ad_width = 400;
google_ad_height = 15;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>More Info</h3>
<p>Let me try to explain what this plugin actually does; it builds image galleries or photo galleries.  Wow, I know, that was descriptive.  But since you look like you are still puzzled by how it actually works, I will go into a little more detail.  Say you have a Picasa photo album with all these really nice photos that you want to add to your site either in a post or in the side bar.  But, you don't want to use the "slideshow" feature that they provide.  Well, with this plugin you simply use your rss feed link for your Picasa photo album and paste it into the lovely interface that is provided by the Benjamin Sterling Galleries plugin.  Then you select what size thumbnails you want to preview and you click a button and wham, you have all your images/photos listed on the page.  You double click on the ones you want to add to your gallery, you fill in some info, select the style of gallery you want and click another button and wham, you have a preview of the gallery that can be added to your WordPress.  What?  You have a Flickr account too?  Well if you did not click the button to add you gallery yet, go a head and paste in the url to your Flickr rss feed and click the first button and there you go, a list of your Flickr photos.  Double click on the ones you want and click build gallery and there you go, a photogallery with both your Flickr AND Picasa photos!</p>
<p>The other nice thing about this plugin is that you can re-order the images you want in your gallery.  Simply click and drag the images you want to move around and put them wherever you want in the gallery.</p>
<p>Ok, with out rambling too much more, let me ask for your help.  What do I need up with?  Well, my instructions are very minimal, do I need more?  I only have four photo / image gallery plugins installed, do I need more?  If so, which ones do you like? And why?  Is there a feature that is needed/that is missing?  What is it?</p>
<p>The download link is below, please leave comments to help me make this plugin better.</p>
<p><strong>Download:</strong> <a href="http://downloads.wordpress.org/plugin/benjamin-sterling-galleries.1.2.zip" rel="nofollow">http://wordpress.org/extend/pl.....galleries/</a></p>
<p>My muse S.Sterling <a href="http://neurosesgalore.com">http://www.neurosesgalore.com</a> </p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9213319579769471";
//between 2
google_ad_slot = "9343051901";
google_ad_width = 400;
google_ad_height = 15;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/benjaminsterlinggalleries/feed/</wfw:commentRss>
		<slash:comments>154</slash:comments>
		</item>
	</channel>
</rss>

