<?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>ClassiPress &#187; Tips &amp; Tricks</title>
	<atom:link href="http://wpclassipress.com/topics/blog/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpclassipress.com</link>
	<description>Instantly turn your WordPress blog into a classified ads system.</description>
	<lastBuildDate>Tue, 29 Jun 2010 05:55:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Quick Update + Handy mySQL Query Code</title>
		<link>http://wpclassipress.com/handy-mysql-query-code/</link>
		<comments>http://wpclassipress.com/handy-mysql-query-code/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 05:55:07 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=1064</guid>
		<description><![CDATA[Over the last few months it&#8217;s appeared rather quiet here at ClassiPress HQ. In actuality, we&#8217;ve been quite busy behind the scenes working on a new update (v3.0.3) and a brand new company web site. We plan on launching the new site early next month (which we&#8217;ll announce in a separate post and email to [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few months it&#8217;s appeared rather quiet here at ClassiPress HQ. In actuality, we&#8217;ve been quite busy behind the scenes working on a new update (v3.0.3) and a brand new company web site. We plan on launching the new site early next month (which we&#8217;ll announce in a separate post and email to all customers) and then the 3.0.3 update will be released soon thereafter. It&#8217;s a bug fix and feature enhancement release so nothing major.</p>
<p>Anyhow, the reason for this post was to provide a handy bit of mySQL code when migrating your ClassiPress site to another domain.</p>
<p>While going through the demo site migration process, we had to change a bunch of legacy meta_values which have the image urls hardcoded in them so the thumbnail and ad images weren&#8217;t showing up. Instead of manually having to go through hundreds of records, it made more sense to write a custom sql query to handle the same change in a matter of seconds. <span id="more-1064"></span></p>
<p>I wanted to share this just in case any of you plan on migrating one of your web sites to a different domain. Keep in mind, this sql query would only be necessary if you were previously using version 2.9.3 or earlier since 3.0+ doesn&#8217;t rely on the &#8220;images&#8221; meta field.</p>
<p>So you&#8217;ll need to login to your mySQL admin and go to your SQL tab. There you&#8217;ll want to paste in the following code (replace the oldsite.com and newsite.com of course first). You might even want to do a test run on one record first just to be safe.</p>
<p><code>UPDATE wp_postmeta<br />
SET meta_value = replace(meta_value, 'oldsite.com', 'newsite.com')<br />
WHERE meta_key = 'images'</code></p>
<p>After you run this query, all your oldsite.com&#8217;s will be replaced with your newsite.com&#8217;s!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/handy-mysql-query-code/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Making a WordPress Theme Install More User-Friendly</title>
		<link>http://wpclassipress.com/making-a-wordpress-theme-install-more-user-friendly/</link>
		<comments>http://wpclassipress.com/making-a-wordpress-theme-install-more-user-friendly/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 02:31:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=805</guid>
		<description><![CDATA[Building WordPress themes (especially as complex as ClassiPress) requires a lot of attention to organization and details. It doesn&#8217;t take much to write a bunch of messy code with no comments just as long as it works, right? That&#8217;s usually fine if you&#8217;re building a theme just for your website but if you plan on [...]]]></description>
			<content:encoded><![CDATA[<p>Building WordPress themes (especially as complex as ClassiPress) requires a lot of attention to organization and details. It doesn&#8217;t take much to write a bunch of messy code with no comments just as long as it works, right? That&#8217;s usually fine if you&#8217;re building a theme just for your website but if you plan on selling or giving a theme away for free, it&#8217;s very important to write clean code with lots of comments. This is one of the reasons it&#8217;s taking me longer than expected to release v3.0.</p>
<p>So great, you write clean code with comments but how do you create a theme and what are the proper standards you should abide by? With WordPress being as popular as it is, you would think there would be hard and fast guidelines on how to develop and release a theme but surprisingly there isn&#8217;t much.  Yes, you can find lots of blog posts from people claiming their way is correct but for me, I&#8217;ve taken advice and ideas from all sorts of sites. Another great way is to reverse engineer an existing theme by some of the best themers out there today like <a href="http://www.woothemes.com" target="_blank">WooThemes</a> or <a href="http://www.studiopress.com" target="_blank">StudioPress</a>.</p>
<p>The WordPress Codex also provides a <a href="http://codex.wordpress.org/Theme_Development" target="_blank">theme development article</a> and now even a <a href="http://codex.wordpress.org/Designing_Themes_for_Public_Release" target="_blank">designing themes for public release article</a> which indeed helps but it&#8217;s still the wild west when you are looking for a step-by-step guide to proper theming concepts.</p>
<p>As I continue to rewrite and rebuild ClassiPress, I try and not only improve the product but also decrease the steps it takes to install the theme. Currently there are several steps involved like creating a new page, assigning it a page template, then getting the page id and pasting it somewhere else to exclude it from showing in the nav. Lots of steps and it can lead to customer mistakes.</p>
<p>Not only will this new automation make it easier for new customers, but it will also cut down on support issues. You&#8217;d be surprised with the number of people who don&#8217;t read the installation guide and then wonder why their dashboard page gives them a 404 page not found.</p>
<p>New in v3.0, there will be a lot of install automation happening in the background when you click the &#8220;activate&#8221; theme link. Not only will new database tables get created, but pages and your blog will be setup and then the ClassiPress templates automatically associated to them. In addition, those new pages will be excluded from your navigation without having to manually track down the page id and paste it into a field.</p>
<p>Doing minor things behind the scenes on install might not seem like a huge deal but it dramatically helps those who aren&#8217;t good at reading instructions (or have the patience to read through it all) and it also improves customer satisfaction. Customers will be up and running much faster with less problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/making-a-wordpress-theme-install-more-user-friendly/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Sociable 3.5.2+ Plugin Image Alignment Issue</title>
		<link>http://wpclassipress.com/sociable-3-5-2-plugin-image-alignment-issue/</link>
		<comments>http://wpclassipress.com/sociable-3-5-2-plugin-image-alignment-issue/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 08:35:50 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[sociable]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=733</guid>
		<description><![CDATA[If you&#8217;ve recently upgraded your Sociable plugin to 3.5.2+, you&#8217;ll notice that the image icons on your single ad pages look out of whack like this: To fix this, go into &#8220;Settings&#8221; =&#62; &#8220;Sociable&#8221; and check the &#8220;Disable sprite usage for images?&#8221; box. Save and everything should now be all fixed. If you are using [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">If you&#8217;ve recently upgraded your Sociable plugin to 3.5.2+, you&#8217;ll notice that the image icons on your single ad pages look out of whack like this:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-734" title="share-icons" src="http://wpclassipress.com/wp-content/uploads/2009/12/share-icons.gif" alt="share-icons" width="440" height="90" /></p>
<p>To fix this, go into &#8220;Settings&#8221; =&gt; &#8220;Sociable&#8221; and check the &#8220;Disable sprite usage for images?&#8221; box. Save and everything should now be all fixed. If you are using WP Super Cache, you might need to clear the cache first. Also some browsers might need to clear their cache as well (ctrl+ reload page).</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/sociable-3-5-2-plugin-image-alignment-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Improve Your Blog in 31 Days – Guaranteed</title>
		<link>http://wpclassipress.com/improve-your-blog-in-31-days-guaranteed/</link>
		<comments>http://wpclassipress.com/improve-your-blog-in-31-days-guaranteed/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 02:30:42 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[better blogger]]></category>
		<category><![CDATA[darren rowse]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress book]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=592</guid>
		<description><![CDATA[If you haven&#8217;t heard the name Darren Rowse before then now is the time to listen. He&#8217;s a very popular blogger who makes 6-figures a year on his Problogger site and definitely knows his stuff. A while back he put together a month long series called &#8220;31 Days to Build a Better Blog&#8221; and it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/problogger/" target="_new"><img src="http://wpclassipress.com/wp-content/uploads/2009/09/31dbbb211-229x300.png" alt="problogger-image" title="problogger-image" width="229" height="300" class="alignleft size-medium wp-image-593" /></a>If you haven&#8217;t heard the name Darren Rowse before then now is the time to listen. He&#8217;s a very popular blogger who makes 6-figures a year on his Problogger site and definitely knows his stuff. A while back he put together a month long series called &#8220;<a href="/problogger/" target="_blank">31 Days to Build a Better Blog</a>&#8221; and it was such a hit, he decided to turn it into an e-book.</p>
<p>This downloadable e-book is designed to help you jump-start your blog by giving you 31 tasks that will turn your blog into the powerhouse you’ve always dreamed of. The great thing about Darren&#8217;s e-book is that you can do it at your own pace and in your own way. Set a goal of reading a chapter a day and take notes. I usually dog ear and highlight the important pieces and come back to them later.<span id="more-592"></span></p>
<p>The workbook uses a great approach to teaching and is designed so that you come away from the challenge having not only learned how to build a dynamic blog but you’ll have actually done something with the knowledge. <a href="/problogger/" target="_new">31 Days to Build a Better Blog</a> is for virtually bloggers at different stages of their blogging which includes:</p>
<ul>
<li>Those who have just started a blog but who don’t know what to do next</li>
<li>Those who have had a blog for a while but it’s stalled in its growth</li>
<li>Bloggers with bloggers block and lacking inspiration</li>
</ul>
<p>I was actually in a Borders bookstore the other day and saw a published version on the shelf and couldn&#8217;t help but pick it up. I first started thumbing through the chapters but soon realized I was reading it word for word. The book was addicting and I learned some things which I apply to my blogging today.</p>
<p>The cost of this e-book is only $19.95 and there&#8217;s even a money back guarantee.  Darren is one of the best known bloggers in the world. All of his works are top notch and his latest offering is no exception. If you want a better blog, you can have it in the next 31 days. <a href="/problogger/" target="_new">Buy it today</a> and you&#8217;ll be able to start reading it in minutes. Trust me, it pays for itself!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/improve-your-blog-in-31-days-guaranteed/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Add TinyMCE to ClassiPress</title>
		<link>http://wpclassipress.com/how-to-add-tinymce-to-classipress/</link>
		<comments>http://wpclassipress.com/how-to-add-tinymce-to-classipress/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 05:32:46 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=564</guid>
		<description><![CDATA[This is a feature that everyone has been asking for and I&#8217;ve finally got around to implementing it. You can now add an HTML WYSIWYG editor to the new ad submission description field. So if you&#8217;ve enabled the &#8220;Allow HTML Code&#8221; option in CP, your customers will be able to do some basic html markup [...]]]></description>
			<content:encoded><![CDATA[<p>This is a feature that everyone has been asking for and I&#8217;ve finally got around to implementing it. You can now add an HTML WYSIWYG editor to the new ad submission description field. So if you&#8217;ve enabled the &#8220;Allow HTML Code&#8221; option in CP, your customers will be able to do some basic html markup to their ad submission!</p>
<p>This feature will be in v2.9.3 but if you wanted to get a head start and use it now, you can easily add it to your site. Use at your own risk though. This code worked fine for me but your configuration might be different.</p>
<p>All you need to do is edit post-form.php and paste in the following code at the top.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'filter_html'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;yes&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;script type=&quot;text/javascript&quot; src=&quot;../wp-includes/js/tinymce/tiny_mce.js&quot;&gt;&lt;/script&gt;
&lt;script type='text/javascript' src='../wp-includes/js/tinymce/langs/wp-langs-en.js?ver=3241-1141'&gt;&lt;/script&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
tinyMCE.init({
mode : &quot;exact&quot;,
theme : &quot;advanced&quot;,
elements : &quot;description&quot;,
theme_advanced_buttons1 : &quot;bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink&quot;,
theme_advanced_buttons2 : &quot;&quot;,
theme_advanced_toolbar_location : &quot;top&quot;,
theme_advanced_toolbar_align : &quot;left&quot;,
languages : 'en',
disk_cache : true,
width : &quot;395&quot;,
height : &quot;200&quot;
});
--&gt;
&lt;/script&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You might need to change your .js paths or some of the parameters but this should work. I&#8217;ve set it up to use the existing tinyMCE code bundled with WordPress so you don&#8217;t need to download or install the core tinyMCE package.</p>
<p>If you get everything working properly, it should look like this:</p>
<p><a href="http://wpclassipress.com/wp-content/uploads/2009/07/tinyMCE-classipress.gif"><img class="aligncenter size-full wp-image-565" title="tinyMCE-classipress" src="http://wpclassipress.com/wp-content/uploads/2009/07/tinyMCE-classipress.gif" alt="tinyMCE-classipress" width="329" height="328" /></a></p>
<p>Then try submitting a new ad and see how it works out. For examples and additional parameters you can add/remove, go visit the <a href="http://tinymce.moxiecode.com/examples/full.php">tinyMCE example page</a> and have at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/how-to-add-tinymce-to-classipress/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>How to Translate a WordPress Theme</title>
		<link>http://wpclassipress.com/how-to-translate-a-wordpress-theme/</link>
		<comments>http://wpclassipress.com/how-to-translate-a-wordpress-theme/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 06:15:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[localize wordpress]]></category>
		<category><![CDATA[poedit]]></category>
		<category><![CDATA[translate wordpress]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=507</guid>
		<description><![CDATA[If you are familiar with WordPress and the many plugins and themes available for it, you&#8217;ve probably come across some strangely named files like .mo, .po, and .pot. If you haven&#8217;t then the theme and/or plugin has not been designed for translation. This article explains how to take a .po file that is included with [...]]]></description>
			<content:encoded><![CDATA[<p>If you are familiar with WordPress and the many plugins and themes available for it, you&#8217;ve probably come across some strangely named files like .mo, .po, and .pot. If you haven&#8217;t then the theme and/or plugin has not been designed for translation. This article explains how to take a .po file that is included with your WordPress theme and/or plugin download and translate it into your native language.</p>
<p>Don&#8217;t have a .po or .mo file for your theme or plugin yet? Follow these steps on <a href="http://codex.wordpress.org/User:Skippy/Creating_POT_Files" target="_blank">how to generate your first WordPress .pot file</a>. Another good article with resources about how to translate WordPress into your language is <a href="http://codex.wordpress.org/Translating_WordPress" target="_blank">located here</a>.</p>
<p>So what the heck are those .mo, .po, and .pot files anyhow and why are they included in my download?</p>
<p>Well, the files aren&#8217;t really important if English is your primary language but if you want to have WordPress, a WordPress theme, or even a plugin localized in your native language then those files are golden.</p>
<ul>
<li>.mo stands for Machine Object</li>
<li>.po stands for Portable Object</li>
<li>.pot stands for Portable Object Template</li>
</ul>
<p>The file that you want is ideally a .po file since it&#8217;s the raw editable text scraped from the entire WordPress theme/plugin. The .mo file is the compiled export of the .po file which is used by WordPress.</p>
<p>Here are the steps to translate/localize a .po or .pot file into another language</p>
<ol>
<li>Download a gettext file editor like <a href="http://www.poedit.net/" target="_blank">poedit</a> and install it.</li>
<li>Open the English .po file that came with your WordPress theme or plugin with poedit. If you only got a .pot, just rename it to .po and open it in poedit.</li>
<li>Now go through and translate all the text one line at a time in the bottom box.</li>
<li>Then &#8220;File&#8221; =&gt; &#8220;Save as&#8221; to your desktop or a folder on your computer. This will output a .po and .mo file.</li>
</ol>
<p>As you can see from the screen shot below, the top part of the file contains the entire list of text that needs to be translated. Each line represents a place within the WordPress theme or plugin that stores the text. If you click on different lines, you&#8217;ll notice the section below displays that exact line of text. What&#8217;s even cooler is if you right click on any line, you&#8217;ll see a file name and line number like &#8220;comments.php line 121&#8243;. That is the exact place in the theme or plugin where this text is being used.</p>
<p style="text-align: center;"><a rel="lightbox" href="http://wpclassipress.com/wp-content/uploads/2009/06/poedit-usage.gif"><img class="aligncenter size-medium wp-image-511" style="border: 0pt none;" title="poedit-usage" src="http://wpclassipress.com/wp-content/uploads/2009/06/poedit-usage-300x272.gif" alt="poedit-usage" width="300" height="272" /></a></p>
<p>Now here&#8217;s where you need to pay attention. The blank box below that is where you will type in your translations. So in the screen shot I translated &#8220;Page not found&#8221; into Spanish by typing in the correct translation in the box below.</p>
<p><strong>Important Note</strong>: Some text characters need to be converted into html entities otherwise they will not display correctly. A very common example is a word containing an apostrophe or single quote (&#8216;) which needs to be replaced with &amp;#39; &#8212; for example, <strong>Chloe O&#8217;Brian</strong> should be written as <strong>Chloe O&amp;#39;Brian</strong>. Kind of strange I know but that&#8217;s just how the parser works. For a complete list of html entities, visit <a target="_blank" href="http://www.w3schools.com/tags/ref_entities.asp">W3Schools</a>.</p>
<p>One other thing worth mentioning. PoEdit might give you an error related to &#8220;% comments&#8221; while you try to save the file (usually when you have a K preceding it like in German, &#8220;% Kommentare&#8221;). Usually if you just ignore the error, it will save fine. I will try and fix that comment translation issue in the next release.</p>
<p>After you start making updates, you&#8217;ll notice the upper right portion of the file will begin to fill in. Once you finish the translation (make sure to save often), you will have your final raw file.</p>
<p>Now that you&#8217;ve completed your translations, you can plug-in your file and see if it works. The .po file is your editable file which you can always load back up in poedit and update. The important file is the .mo file. This is what WordPress will use and if it&#8217;s for a new theme like ClassiPress, it needs to be placed in the /wp-content/themes/classipress directory.</p>
<p>I also forgot to mention that the naming of your .mo files is very important and must match the desired locale otherwise it won&#8217;t work. The naming convention is based on the language code (e.g. pt for Portuguese) followed by the country code (e.g. _BR for Brazil). So, the Brazilian Portuguese file would be called pt_BR.mo. See the complete list of <a href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Language-Codes" target="_blank">language codes</a> and <a href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Country-Codes" target="_blank">country codes</a> to find your exact locale.</p>
<p>You will also need to make a change to your WordPress wp-config.php file (located in your WP root directory) with the correct language codes like the example below. If you don&#8217;t have a WPLANG entry then create one.</p>
<p><code>define ('WPLANG', 'pt_BR');</code></p>
<p>Assuming you&#8217;ve made all these changes, you should now be able to reload your WordPress theme and see it in your native language! If it&#8217;s not working, chances are you didn&#8217;t use the correct naming conventions for your .mo file or in your wp-config.php file. If you see part of your site translated you either didn&#8217;t translate the entire .po file or the .po file wasn&#8217;t completely translated correctly in the first place.</p>
<p>So if you recently purchased ClassiPress and a <a href="http://wpclassipress.com/resources/">language pack file</a> (.mo) is not available for your native language, you should follow the steps above and create your own. ClassiPress is designed to work with virtually any language so just take the included .po file and translation away! Make sure to <a href="http://wpclassipress.com/contact/">contact me</a> and send over a copy so others can download your language pack. You will get full credit for the work and a link back to your site in return.</p>
<h3>How to Update an Older .POT File</h3>
<p>If you&#8217;ve previously translated an older version of ClassiPress and upgraded your site to the latest version of ClassiPress, you&#8217;ll notice the translation file no longer works correctly. This is due to the fact that the ClassiPress code has changed and the old .mo language file can no longer find the text locations.</p>
<p>Before I explain how to update your old language file to include the latest text to translate, I wanted to go behind the curtain and show you how it works. The .POT file is essentially a mapping of which text should be replaced in what file. It keeps track of this by file names and line numbers. When the ClassiPress code changes, it moves the line numbers so the .MO file can no longer find the original text to translate. To better understand what I&#8217;m talking about, open the .POT file with a text editor. You&#8217;ll see a bunch of readable lines that look like this:</p>
<p>#: 404.php:24<br />
msgid &#8220;Whoops! Page Not Found.&#8221;<br />
msgstr &#8220;Whoops! No se pudo encontrar la pagina.&#8221;</p>
<p>The first line tells the language processor what file (404.php) and line number (24) the text to be translated is located on. The &#8220;msgid&#8221; is the actual text that needs to be translated and the &#8220;msgstr&#8221; is the new translation (in this case, Spanish). Pretty easy once you understand how it works, huh?</p>
<p>Ok, so let&#8217;s talk about how to update your old ClassiPress.POT file.</p>
<ol>
<li>First open your old existing translated .POT file (i.e. pr_PR.po) in POEdit. &#8220;File&#8221; =&gt; &#8220;Open&#8221;</li>
<li>Next you&#8217;ll need to compare it with the new .POT file. Do this by going to &#8220;Catalog&#8221; =&gt; &#8220;Update from POT file&#8221; and select your new .POT file.</li>
<li>Now PoEdit will show you what text is new and needs to be translated. It should also update any other changes that have been made.</li>
<li>After you have translated the new text, save the project and then it will create your new .MO file.</li>
<li>Overwrite your old .MO file in your /themes/classipress/ directory and look at your site.</li>
<li>Also make sure you&#8217;ve activated the latest version of the theme (the one that the new language file came with)</li>
</ol>
<p>Now that should be it. Once you know how to work with existing .POT files, doing the updates can be really easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/how-to-translate-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>How to Prevent phpBB Registration Spam</title>
		<link>http://wpclassipress.com/how-to-prevent-phpbb-registration-spam/</link>
		<comments>http://wpclassipress.com/how-to-prevent-phpbb-registration-spam/#comments</comments>
		<pubDate>Sun, 31 May 2009 19:21:03 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[forum registration spam]]></category>
		<category><![CDATA[forum software]]></category>
		<category><![CDATA[phpbb3]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=481</guid>
		<description><![CDATA[For the ClassiPress forum I use a free software called phpBB. Up until a few weeks ago, I wasn&#8217;t having any problems with forum spam but now it seems the bots have me zeroed in. PhpBB does come with a simple captcha-style anti-bot option but for some reason it doesn&#8217;t seem to work very well. [...]]]></description>
			<content:encoded><![CDATA[<p>For the ClassiPress forum I use a free software called phpBB. Up until a few weeks ago, I wasn&#8217;t having any problems with forum spam but now it seems the bots have me zeroed in. PhpBB does come with a simple captcha-style anti-bot option but for some reason it doesn&#8217;t seem to work very well. I have also enabled a feature to require email verification by clicking on a link before their account becomes active.They beat that too.</p>
<p>I must say, the bot engines out there today are pretty damn smart. They have figured out a way to automate and bypass both of these security measures so they can post spammy links to their products or just be a nuisance. Luckily the spammy forum posts haven&#8217;t been porn&#8230;at least not yet. <span id="more-481"></span></p>
<p>So today I finally got fed up with having to delete spam posts and ban users and installed a great phpBB3 mod. It&#8217;s called <a href="http://www.phpbb.com/community/viewtopic.php?f=69&amp;t=645075" target="_blank">Anti-Bot Question</a> and it does a great job beating the spam bots. As with any mod, it takes some time to set everything up (it took me about 1 hour total) but so far it&#8217;s blocked everything. Since the phpBB spam robot scripts know the exact order and number of fields on the registration page, this new field throws them off. They also don&#8217;t know how to answer the question so they are stopped dead in their tracks. Here&#8217;s the final result.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-484" title="phpbb-anti-spam-bot-question-form" src="http://wpclassipress.com/wp-content/uploads/2009/05/phpbb-anti-spam-bot-question-form.gif" alt="phpbb-anti-spam-bot-question-form" width="474" height="356" /></p>
<p>This mod basically adds a new field on registration where you can create any question/answer combo you want. In my case I used the basic &#8220;Is fire hot or cold?&#8221; question but you can use whatever you like. You set this question up on the &#8220;General&#8221; =&gt; &#8220;User Registration Setting&#8221; page at the bottom.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-482" title="phpbb-anti-spam-bot-question" src="http://wpclassipress.com/wp-content/uploads/2009/05/phpbb-anti-spam-bot-question.gif" alt="phpbb-anti-spam-bot-question" width="455" height="206" /></p>
<p>If you aren&#8217;t familiar with installing phpBB mods, then listen up. Most of them come with a .xml file which contain the instructions. Just open it up locally in your web browser and follow the steps. For this mod you will need database and ftp access. You will have to run a simple mySQL query that inserts new values into the config table and also edit 3-5 phpBB3 files.</p>
<p>After you make the updates, it usually won&#8217;t show up until you clear your cache. So on your &#8220;General&#8221; page, click the &#8220;run now&#8221; button for the &#8220;purge the cache&#8221; option.  Remember to make sure you backup your files before doing this mod and read the directions carefully!</p>
<p>It&#8217;s also worth noting that applying mods to your forum will probably get blown away when it comes time to upgrade phpBB. I recommend bookmarking the sites of any mods you make as well as adding comments to the code you update. That way when it comes time to upgrade phpBB, you&#8217;ll remember exactly what you changed the first time and can do it again with ease.</p>
<p>For those of you who wonder why I decided to use phpBB, check out <a href="http://wpclassipress.com/forum/viewtopic.php?f=2&amp;t=191&amp;p=1014" target="_blank">this forum post</a> I wrote explaining my reasoning. I also recommend checking out a great site called <a href="http://www.forummatrix.org/" target="_blank">Forum Matrix</a> which lets you compare dozens of different forum solutions side-by-side.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/how-to-prevent-phpbb-registration-spam/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to Exclude Empty WordPress Categories</title>
		<link>http://wpclassipress.com/how-to-exclude-empty-wordpress-categories/</link>
		<comments>http://wpclassipress.com/how-to-exclude-empty-wordpress-categories/#comments</comments>
		<pubDate>Mon, 18 May 2009 04:53:57 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[classipress]]></category>
		<category><![CDATA[wordpress categories]]></category>
		<category><![CDATA[wp_list_categories]]></category>

		<guid isPermaLink="false">http://wpclassipress.com/?p=394</guid>
		<description><![CDATA[By default, ClassiPress includes listing all categories so your site visitors are able to post a new ad and place it in a category even if it&#8217;s empty. Otherwise, they wouldn&#8217;t even know the category exists and it&#8217;s pointless to even have it. With that being said, a couple of you have asked me how [...]]]></description>
			<content:encoded><![CDATA[<p>By default, ClassiPress includes listing all categories so your site visitors are able to post a new ad and place it in a category even if it&#8217;s empty. Otherwise, they wouldn&#8217;t even know the category exists and it&#8217;s pointless to even have it. With that being said, a couple of you have asked me how to remove empty categories from the ClassiPress navigation which is actually quite easy.</p>
<p style="text-align: center;"><a title="ClassiPress using wp_list_categories example" rel="lightbox" href="http://wpclassipress.com/wp-content/uploads/2009/05/wp_list_categories-example.jpg"><img class="aligncenter size-medium wp-image-395" title="wp_list_categories-example" src="http://wpclassipress.com/wp-content/uploads/2009/05/wp_list_categories-example-300x109.jpg" alt="wp_list_categories-example" width="300" height="109" /></a></p>
<p>ClassiPress uses the standard WordPress function <a href="http://codex.wordpress.org/Template_Tags/wp_list_categories" target="_blank">wp_list_categories</a> which allows you to pass certain parameters into it and alter the results. All of the parameters have certain default values if you don&#8217;t pass anything into the function it just uses the defaults.</p>
<p>For example, in the index.php file do a search for wp_list_categories and you&#8217;ll find something like this:</p>
<p><code>wp_list_categories('show_count=0&amp;title_li=&amp;depth=1');</code></p>
<p>As you can see it is passing in three different parameters which basically says:</p>
<ul>
<li><strong>show_count=0</strong> &#8211; Don&#8217;t show the category count ( i.e. Shoes (3) )</li>
<li><strong>title_li=</strong> &#8211; Don&#8217;t show the default header (i.e. Categories) which is equal to nothing on purpose</li>
<li><strong>depth=1</strong> &#8211; Only show the first level of categories. If you change this to 2 or 3, it will show you sub categories</li>
</ul>
<p>These are only three out of 15+ parameters you can set to achive different settings. So, if you wanted to remove all empty categories from the list, you would add the following parameter to the string &#8211;&gt; hide_empty=0. See the example below as to how you would add it to the existing function call.</p>
<p><code>wp_list_categories('show_count=0&amp;title_li=&amp;depth=1&amp;hide_empty=0');</code></p>
<p>Pretty easy huh? You should play around with the other parameters and see how they affect your category listing. The <a href="http://codex.wordpress.org" target="_blank">WordPress codex</a> (their tech docs) provides some great examples and is a good place to start learning how WordPress works under the covers.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpclassipress.com/how-to-exclude-empty-wordpress-categories/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
