<?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 RoarinPenguin Techiezone &#187; wordpress</title>
	<atom:link href="http://techiezone.rottigni.net/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiezone.rottigni.net</link>
	<description>Notes, hints, tips... in one word: experience!</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:17:58 +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>Assigning privileges to a user on MySQL DB</title>
		<link>http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/</link>
		<comments>http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 18:09:43 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[privileges]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/</guid>
		<description><![CDATA[Quick and dirty commands from commandline: mysql -u &#60;user&#62; -p&#60;password&#62; mysql&#62; CREATE DATABASE wordpress; mysql&#62; GRANT ALL PRIVILEGES ON wordpress.* TO &#8216;wpuser&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;dbpassword&#8217;; mysql&#62; SET PASSWORD FOR &#8216;wpuser&#8217;@'localhost&#8217; = OLD_PASSWORD(&#8216;dbpassword&#8217;); mysql&#62; FLUSH PRIVILEGES; mysql&#62; quit;]]></description>
			<content:encoded><![CDATA[<p>Quick and dirty commands from commandline:</p>
<p> <font face="Helv"><font face="Helv" color="#0080ff" size="2">
<p dir="ltr">mysql -u &lt;user&gt; -p&lt;password&gt;       <br />mysql&gt; CREATE DATABASE wordpress;        <br />mysql&gt; GRANT ALL PRIVILEGES ON wordpress.* TO &#8216;wpuser&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;dbpassword&#8217;;        <br />mysql&gt; SET PASSWORD FOR &#8216;wpuser&#8217;@'localhost&#8217; = OLD_PASSWORD(&#8216;dbpassword&#8217;);        <br />mysql&gt; FLUSH PRIVILEGES;        <br />mysql&gt; quit;</p>
<p>   </font></font></p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.3: Fixing post by mail default category in postie plugin.</title>
		<link>http://techiezone.rottigni.net/2007/12/wordpress-23-fixing-post-by-mail-default-category-in-postie-plugin/</link>
		<comments>http://techiezone.rottigni.net/2007/12/wordpress-23-fixing-post-by-mail-default-category-in-postie-plugin/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 05:33:34 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[default category]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[post by mail]]></category>
		<category><![CDATA[postie]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=9</guid>
		<description><![CDATA[This bit of experience has been &#8220;grabbed-as-is&#8221; from another blog. See page bottom for details&#8230; If you’ve tried using the Postie plug-in (version 1.1.1, anyway) with WordPress 2.3, you’ve probably seen that the feature related to Categories do not work. The database schema changed for WordPress2.3, and Postie was reading categories directly from the tables [...]]]></description>
			<content:encoded><![CDATA[<p>This bit of experience has been &#8220;grabbed-as-is&#8221; from another blog. See page bottom for details&#8230;</p>
<p>If you’ve tried using the <a href="http://www.economysizegeek.com/?page_id=395" target="_blank">Postie plug-in</a> (version 1.1.1, anyway) with WordPress 2.3, you’ve probably seen that the feature related to Categories do not work. The database schema changed for WordPress2.3, and Postie was reading categories directly from the tables with SQL calls.</p>
<p>Thanks to efforts of a few others, who nearly got it right, I managed to cobble together a fix that allows emailed posts to be categorized and add a default category to emailed posts that do not include category details. Credit/kudos to Olivier and Greg and Benjamin for comments and work referenced on<a href="http://www.economysizegeek.com/?page_id=395"> the Postie page</a>.</p>
<p><span id="more-34"></span>I don’t mean to detract from the work these gentlemen did before I stumbled across the same problem. I tried implementing their corrections, but had a different problem that nobody else mentioned: only a fraction of my established categories appeared in the list on the config page. It had similar problems locating Categories specified in the email subject. The solution was to provide an additional parameter in the call to get_categories(). For efficiency, I also pulled the call to create a local list of categories out of a foreach loop, so that the same work wasn’t being done multiple times, in the case of an email specifying multiple categories. (Always <a href="http://optimyzed.com/">optimyze</a>…)</p>
<h3><span id="more-9"></span>Instructions</h3>
<p>Follow the instructions for installing Postie.  Then, either download and install the two files from <a href="http://stairway27.net/blog/wp-content/uploads/2007/11/stairway27-postie-23-catfix.zip" title="stairway27’s Postie fix for WordPress 2.3 Categories">this zip archive</a>, or edit the two files as shown below. <a href="http://stairway27.net/blog/wp-content/uploads/2007/11/stairway27-postie-23-catfix.zip" title="stairway27’s Postie fix for WordPress 2.3 Categories"><br />
</a></p>
<p>Edit config_form.php from the postie plugin directory. Search for “DEFAULT_POST_CATEGORY” and replace the line with the SELECT query with the new code shown below:<br />
<code>&lt;td&gt;&lt;select name="DEFAULT_POST_CATEGORY" id="DEFAULT_POST_CATEGORY"&gt;<br />
&lt;?php<br />
<strong>//$categories = $wpdb-&gt;get_results(”SELECT * FROM $wpdb-&gt;categories ORDER BY cat_name”);<br />
$categories = get_categories(array(’orderby’ =&gt;’name’, ‘get’ =&gt;’all’));</strong><br />
foreach ($categories as $category) {<br />
$selected = ($category-&gt;cat_ID == $config[”DEFAULT_POST_CATEGORY”] ? “SELECTED”: NULL);<br />
echo “\n\t&lt;option value=’$category-&gt;cat_ID’ $selected&gt;$category-&gt;cat_name&lt;/option&gt;”;<br />
}<br />
?&gt;<br />
&lt;/select&gt;&lt;/td&gt;</code><br />
Finally, edit postie-functions.php,<br />
function GetPostCategories(&amp;$subject)<br />
<code>{<br />
$config = GetConfig();<br />
global $wpdb;<br />
$post_categories = array();<br />
$matches = array();<br />
//try and determine category<br />
if ( preg_match('/(.+): (.*)/', $subject, $matches))  {<br />
$subject = trim($matches[2]);<br />
$matches[1] = array($matches[1]);<br />
}<br />
else if (preg_match_all('/\[(.[^\[]*)\]/', $subject, $matches)) {<br />
preg_match("/](.[^\[]*)$/",$subject,$subject_matches);<br />
$subject = trim($subject_matches[1]);<br />
}<br />
else if ( preg_match_all('/-(.[^-]*)-/', $subject, $matches) ) {<br />
preg_match("/-(.[^-]*)$/",$subject,$subject_matches);<br />
$subject = trim($subject_matches[1]);<br />
}<br />
<strong> $categories = get_categories(array(’orderby’ =&gt;’name’, ‘get’ =&gt;’all’));<br />
if (count($matches)) {<br />
foreach($matches[1] as $match) {<br />
$match = trim($match);<br />
$category = NULL;<br />
print(”Working on $match\n”);<br />
//Work on the category search to see if we can determine the cat_id<br />
//check the database to see if their is a category similar<br />
foreach ($categories as $category) {<br />
if ($match == $category-&gt;cat_name) {<br />
$post_categories[] = $category-&gt;cat_ID;<br />
print(”   Match: $category-&gt;cat_name\n”);<br />
continue;<br />
}<br />
if ($match == $category-&gt;cat_ID) {<br />
$post_categories[] = $category-&gt;cat_ID;<br />
print(”   Match: $category-&gt;cat_name\n”);<br />
continue;<br />
}<br />
if (strpos($category-&gt;cat_name,$match) !== false) {<br />
$post_categories[] = $category-&gt;cat_ID;<br />
print(”   Match: $category-&gt;cat_name\n”);<br />
}<br />
}<br />
}<br />
}</strong><br />
if (!count($post_categories)) {<br />
$post_categories[] =  $config[”DEFAULT_POST_CATEGORY”];<br />
}<br />
print(”Posting categories: “);<br />
print_r($post_categories);<br />
print(”\n”);<br />
return($post_categories);<br />
}</code><br />
Source: <a href="http://stairway27.net/blog/2007/11/25/fixing-postie-for-wordpress-23/" title="Go to original article" target="_blank">Entropy in the Stairway Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2007/12/wordpress-23-fixing-post-by-mail-default-category-in-postie-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Character Set and accented characters when migrating WP 2.0 to 2.3.</title>
		<link>http://techiezone.rottigni.net/2007/12/character-set-and-accented-characters-when-migrating-wp-20-to-23/</link>
		<comments>http://techiezone.rottigni.net/2007/12/character-set-and-accented-characters-when-migrating-wp-20-to-23/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 06:13:43 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[accented characters]]></category>
		<category><![CDATA[character set]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=8</guid>
		<description><![CDATA[Again on WP migration. My previous 2.0.11 installation was having DB collation and Character Set configured as latin1 (by default with WordPress 2.0.x). Bad thing happened when I exported my sql db and reimported in new 2.3.1 installation (defaulting at UTF-8) and saw all accented characters displayed as question marks, ugly signs, etc. I also [...]]]></description>
			<content:encoded><![CDATA[<p>Again on WP migration.</p>
<p>My previous 2.0.11 installation was having DB collation and Character Set configured as <em>latin1</em> (by default with WordPress 2.0.x).</p>
<p>Bad thing happened when I exported my sql db and reimported in new 2.3.1 installation (defaulting at UTF-8) and saw all accented characters displayed as question marks, ugly signs, etc. <img src='http://techiezone.rottigni.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I also tried exporting as UTF-8 in WP 2.0, but soon realized that WP 2.0.x does not include support for UTF-8 Character Set.</p>
<p>Found a solution in a blog, and reporting it here to avoid spending again two days in future Googling&#8230; and testing.<span id="more-8"></span></p>
<p>MySQL Export command from WordPress 2.0.11:</p>
<p><font face="Courier New">mysqldump -a &#8211;add-drop-table &#8211;databases -u <em>&lt;username with privileges&gt;</em> -p <em>&lt;database_name&gt;</em> &gt; <em>&lt;filename&gt;</em>.sql</font></p>
<p>MySQL Import command on WordPress 2.3.1 box:</p>
<p><font face="Courier New">cat <em>&lt;filename&gt;</em>.sql | mysql &#8211;default-character-set=utf8 -u <em>&lt;username with privileges&gt;</em> -p <em>&lt;database_name&gt;</em></font></p>
<p>Also. remember to check for presence in your wp-config.php of two <strong>very important </strong>lines:</p>
<p>define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;);<br />
define(&#8216;DB_COLLATE&#8217;, &#8221;);</p>
<p>Especially the first line: if it&#8217;s missing, WordPress will still display ugly characters even if in tables they are properly formatted.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2007/12/character-set-and-accented-characters-when-migrating-wp-20-to-23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Odd WordPress &gt; 2.1 error</title>
		<link>http://techiezone.rottigni.net/2007/12/odd-wordpress-21-error/</link>
		<comments>http://techiezone.rottigni.net/2007/12/odd-wordpress-21-error/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 05:38:04 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[database error]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mysql error]]></category>
		<category><![CDATA[outdated plugin]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wp_post2cat]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=7</guid>
		<description><![CDATA[I recently upgraded my WordPress database from 2.0.11 to 2.3.1.I was writing a post, clicked Save and I got a WordPress database error: Table &#60;tablename&#62;.wp_post2cat doesn&#8217;t exist nasty error. I dug a bit on the Net and found it was a plugin, in my case Goosle Sitemap plugin, doing a query like SELECT * FROM [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded my WordPress database from 2.0.11 to 2.3.1.I was writing a post, clicked Save and I got a</p>
<p>WordPress database error: Table <em>&lt;tablename&gt;</em>.wp_post2cat doesn&#8217;t exist</p>
<p>nasty error.</p>
<p>I dug a bit on the Net and found it was a plugin, in my case Goosle Sitemap plugin, doing a query like</p>
<p>SELECT * FROM wp_categories</p>
<p>when this table is not anymore in WP 2.3.1.</p>
<p><a href="http://http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/" target="_blank">Updating the plugin</a> fixed the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2007/12/odd-wordpress-21-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

