<?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>Digital home of Peter Manis &#187; Wordpress</title>
	<atom:link href="http://peterjmanis.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterjmanis.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 21 Feb 2010 21:57:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Design modifications, please give input</title>
		<link>http://peterjmanis.com/wordpress/design-modifications-please-give-input/200702/</link>
		<comments>http://peterjmanis.com/wordpress/design-modifications-please-give-input/200702/#comments</comments>
		<pubDate>Sat, 03 Feb 2007 05:29:31 +0000</pubDate>
		<dc:creator>Peter Manis</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.digital39.com/index.php/wordpress/design-modifications-please-give-input/2007/02/133/</guid>
		<description><![CDATA[I am going to be changing this theme soon, it will look the same for the most part, but I will be making it just wide enough so the shadows just fit on a 1024 screen and I will also be changing from the original table layout to css divs.
I would like to know the [...]]]></description>
			<content:encoded><![CDATA[<p>I am going to be changing this theme soon, it will look the same for the most part, but I will be making it just wide enough so the shadows just fit on a 1024 screen and I will also be changing from the original table layout to css divs.</p>
<p>I would like to know the things you dislike about the site so I can possibly remove them.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterjmanis.com/wordpress/design-modifications-please-give-input/200702/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Arabic translation added</title>
		<link>http://peterjmanis.com/wordpress/arabic-translation-added/200701/</link>
		<comments>http://peterjmanis.com/wordpress/arabic-translation-added/200701/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 03:37:44 +0000</pubDate>
		<dc:creator>Peter Manis</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.digital39.com/index.php/wordpress/arabic-translation-added/2007/01/128/</guid>
		<description><![CDATA[I have added the Iraq flag to my translation bar.  I think I am going to have to write a quick plugin for wordpress to handle translation differently.  I currently use Translator and enjoy it, but Arabic seems to cause problems.  Arabic is read and written right to left and if you [...]]]></description>
			<content:encoded><![CDATA[<p>I have added the Iraq flag to my translation bar.  I think I am going to have to write a quick plugin for wordpress to handle translation differently.  I currently use <a href="http://blog.taragana.com/index.php/archive/wordpress-plugin-automatic-machine-translation-for-your-blog-in-eight-languages-spanish-french-german-portuguese-italian-japanese-korean-and-chinese/" target="_blank">Translator</a> and enjoy it, but Arabic seems to cause problems.  Arabic is read and written right to left and if you <a href="http://www.digital39.com/wp-content/plugins/translator.php?l=ar&#038;u=http://www.digital39.com/index.php">view my website in Arabic</a> you will see that it has put my sidebar on the left.  I would like my text to be in available in Arabic, but I do not want my site to be altered.  I am thinking about using CURL to post to the translator and I will make it per post linked with the Iraq flag or something.  Then it will show up in a separate window and it will only be the Arabic text.</p>
<p>My reasoning behind all this is that I am beginning to learn Arabic and I am waiting for some CDs from a friend of mine that are supposed to be exceptional.  I will be giving updates on the process as I learn and I am very excited.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterjmanis.com/wordpress/arabic-translation-added/200701/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design Change, input needed</title>
		<link>http://peterjmanis.com/wordpress/design-change-input-needed/200610/</link>
		<comments>http://peterjmanis.com/wordpress/design-change-input-needed/200610/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 16:01:18 +0000</pubDate>
		<dc:creator>Peter Manis</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.digital39.com/index.php/news/design-change-input-needed/2006/10/87/</guid>
		<description><![CDATA[Should I have the line under the post title like I have had
Screen Shot
or use boxes like I have setup right now
Screen Shot
I can&#8217;t decide so input would be appreciated
]]></description>
			<content:encoded><![CDATA[<p>Should I have the line under the post title like I have had</p>
<p><a href="http://static.digital39.com/images/posts/20061017/line.jpg" target="_blank">Screen Shot</a></p>
<p>or use boxes like I have setup right now</p>
<p><a href="http://static.digital39.com/images/posts/20061017/box.jpg" target="_blank">Screen Shot</a></p>
<p>I can&#8217;t decide so input would be appreciated</p>
]]></content:encoded>
			<wfw:commentRss>http://peterjmanis.com/wordpress/design-change-input-needed/200610/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wordpress Post Popularity</title>
		<link>http://peterjmanis.com/programming/wordpress-post-popularity/200608/</link>
		<comments>http://peterjmanis.com/programming/wordpress-post-popularity/200608/#comments</comments>
		<pubDate>Sun, 13 Aug 2006 02:02:13 +0000</pubDate>
		<dc:creator>Peter Manis</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.digital39.com/index.php/programming/wordpress-post-popularity/2006/08/64/</guid>
		<description><![CDATA[For anyone wanting a popularity ranking for Wordpress posts that are also using the WP-Postviews plugin this is a solution.  It isn&#8217;t the best version, but it does what I want.  Someone has already created a popularity plugin, but it did not work for me and taking the time to make it work [...]]]></description>
			<content:encoded><![CDATA[<p>For anyone wanting a popularity ranking for Wordpress posts that are also using the <a href="http://www.lesterchan.net/portfolio/programming.php">WP-Postviews</a> plugin this is a solution.  It isn&#8217;t the best version, but it does what I want.  Someone has already created a popularity plugin, but it did not work for me and taking the time to make it work could not be justified.</p>
<phpcode>
<code><span style="color: #0000ff;">$int_tpop</span> = <span style="color: #cc66cc;">0</span>;<br />
the_pop<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</code></p>
<p><code><span style="color: #000000; font-weight: bold;">function</span> the_pop<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/global"><span style="color: #000066;">global</span></a> <span style="color: #0000ff;">$wpdb</span>, <span style="color: #0000ff;">$int_tpop</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$total_views</span> = <span style="color: #0000ff;">$wpdb</span>-&gt;<span style="color: #006600;">get_row</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SELECT SUM(meta_value) as tviews<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM wp_postmeta WHERE meta_key = 'views'&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$int_tpop</span> = <span style="color: #0000ff;">$total_views</span>-&gt;<span style="color: #006600;">tviews</span>;<br />
<span style="color: #66cc66;">&#125;</span></code></p>
<p><code><span style="color: #000000; font-weight: bold;">function</span> return_pop <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$views</span> = <span style="color: #cc66cc;">0</span>, <span style="color: #0000ff;">$total</span> = <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$formatted</span> = <a href="http://www.php.net/number_format"><span style="color: #000066;">number_format</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$views</span>/<span style="color: #0000ff;">$total</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #ff0000;">'.'</span>, <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$out</span> = <span style="color: #0000ff;">$formatted</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">' &lt;b&gt;&amp;middot;&lt;/b&gt; '</span>.<span style="color: #0000ff;">$out</span>.<span style="color: #ff0000;">'% Popularity'</span>;<br />
<span style="color: #66cc66;">&#125;</span></code></p>
<p>Enter this where you would like the popularity to be displayed.<br /><code><span style="color: #000000; font-weight: bold;">&lt;?php</span> return_pop<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span>the_views<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">''</span>,<span style="color: #000000; font-weight: bold;">FALSE</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #0000ff;">$int_tpop</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></code></p>
</phpcode>
<p>I placed the above code into my header template file and placed the last line of code in my post display file.  If you have any problems please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterjmanis.com/programming/wordpress-post-popularity/200608/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Email problems with Wordpress Plugins</title>
		<link>http://peterjmanis.com/programming/email-problems-with-wordpress-plugins/200607/</link>
		<comments>http://peterjmanis.com/programming/email-problems-with-wordpress-plugins/200607/#comments</comments>
		<pubDate>Wed, 26 Jul 2006 01:53:00 +0000</pubDate>
		<dc:creator>Peter Manis</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.digital39.com/index.php/programming/email-problems-with-wordpress-plugins/2006/07/56/</guid>
		<description><![CDATA[Moving everything to Wordpress has been different I guess you would say.  I have had to edit many plugins to get this thing to work correctly and recently I had to edit even more to get some simple functionality.  I am in no way knocking Wordpress, it is just that most plugins are [...]]]></description>
			<content:encoded><![CDATA[<p>Moving everything to Wordpress has been different I guess you would say.  I have had to edit many plugins to get this thing to work correctly and recently I had to edit even more to get some simple functionality.  I am in no way knocking Wordpress, it is just that most plugins are originally developed for the developer and eventually get released to the public.  This makes the occurance of bugs a little more common.  There are a couple scripts which shall remain nameless that caused problems with my current setup.  The reason was that IIS6 seems to have trouble with email addresses that have < and > in them.</p>
<p>Example Header</p>
<p><code>From: Peter Manis &lt;notgonna@tellyou.com&gt;</code></p>
<p>So you have to remove the name and the < and > to get it to work.  However this seems strange to me because I remember formatting my email in asp that way.  It has been so long since I wrote any asp that it could just be the way asp works that makes that format work.  I did not test whether it was IIS WWW or IIS SMTP that caused this problem.  When I have the opportunity to test this I will post an update.</p>
<p>So to those of you who have seen an error in your PHP logs that said</p>
<p>&#8220;SMTP server response: 501 5.5.4 Invalid Address in&#8230;.&#8221;</p>
<p>then by removing the above from the scripts it will fix the problem.  My recommendation is to make a copy of the line and make it a comment until I have an opportunity to find out whether it was W3 on IIS or SMTP.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterjmanis.com/programming/email-problems-with-wordpress-plugins/200607/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Printing Pages with wp2pdf</title>
		<link>http://peterjmanis.com/programming/printing-pages-with-wp2pdf/200607/</link>
		<comments>http://peterjmanis.com/programming/printing-pages-with-wp2pdf/200607/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 13:14:35 +0000</pubDate>
		<dc:creator>Peter Manis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.digital39.com/index.php/wordpress/printing-pages-with-wp2pdf/2006/07/40/</guid>
		<description><![CDATA[When I installed wp2pdf I was only able to print posts, but since I am offering tutorials and articles on the site I wanted to make sure you guys could have a offline copy available.  These are the changes I had to make to get it to work properly.
wp2pdf v0.4.2
Start by opening wp2pdf.php and [...]]]></description>
			<content:encoded><![CDATA[<p>When I installed wp2pdf I was only able to print posts, but since I am offering tutorials and articles on the site I wanted to make sure you guys could have a offline copy available.  These are the changes I had to make to get it to work properly.</p>
<p>wp2pdf v0.4.2</p>
<p>Start by opening wp2pdf.php and add
<pre>$wp2pdf_bln = TRUE;</pre>
<p> to line 26</p>
<p>Change directories to wp-includes and open classes.php</p>
<p>Open that file and add
<pre>global $wp2pdf_bln;</pre>
<p> to line 594</p>
<p>Replace line
<pre>} elseif ($this->is_single) {</pre>
<p> on line 599 with
<pre>} elseif (($this->is_single) &#038;&#038; !$wp2pdf_bln) {</pre>
<p>The last part is to go to line 601 and add</p>
<pre>
} elseif ($wp2pdf_bln == TRUE) {
$where .= ' AND (post_status = "static")';
</pre>
<p>What we have done is set a variable stating that we want to print pages and when it starts to build the SQL query it will check if it is a static page and that our variable is not TRUE.  If it is true it will add
<pre>post_status = "static"</pre>
<p> to our SQL query.  It works and it hasnt screwed anything up.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterjmanis.com/programming/printing-pages-with-wp2pdf/200607/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
