<?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>Fly together Forever 比翼恒飞 &#187; WordPress</title>
	<atom:link href="http://www.liucougar.net/blog/archives/category/php/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.liucougar.net/blog</link>
	<description></description>
	<lastBuildDate>Sat, 10 Jul 2010 20:42:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wedding photos are uploaded to Gallery</title>
		<link>http://www.liucougar.net/blog/archives/73</link>
		<comments>http://www.liucougar.net/blog/archives/73#comments</comments>
		<pubDate>Tue, 28 Aug 2007 14:45:06 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/73</guid>
		<description><![CDATA[I got married several months ago, but did not have time to put up all the photos to share with my families and friends all over the world.
Just installed   
Gallery 2 and   
WPG2 for Wordpress and all   
wedding photos are all uploaded. However, you do need a login/password to [...]]]></description>
			<content:encoded><![CDATA[I got married several months ago, but did not have time to put up all the photos to share with my families and friends all over the world.
<p>Just installed   
<a href="http://gallery.menalto.com/">Gallery 2</a> and   
<a href="http://wpg2.galleryembedded.com/">WPG2</a> for Wordpress and all   
<a href="http://www.liucougar.net/gallery/v/7/">wedding photos</a> are all uploaded. However, you do need a login/password to access them. If you know me personally, please ask me for that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/73/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Convert wordpress 2.1 from mysql 4.0 to 4.1</title>
		<link>http://www.liucougar.net/blog/archives/68</link>
		<comments>http://www.liucougar.net/blog/archives/68#comments</comments>
		<pubDate>Mon, 18 Dec 2006 16:48:57 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/68</guid>
		<description><![CDATA[
Mysql 4.1 is available in the new server from           
migration. The transition from 4.0 to 4.1 is quite transparent as long as I do not try to set the default encodings of the db/tables to UTF-8.
However, as the        [...]]]></description>
			<content:encoded><![CDATA[
<p>Mysql 4.1 is available in the new server from           
<a href="post:yaah-new-server">migration</a>. The transition from 4.0 to 4.1 is quite transparent as long as I do not try to set the default encodings of the db/tables to UTF-8.</p>
<p>However, as the           
<a href="http://dev.mysql.com/tech-resources/articles/4.1/unicode.html">proper way</a> is to set the encodings in mysql 4.1 correctly, I decided to do it sooner rather than later.</p>
<p>According to           
<a href="http://dev.mysql.com/doc/refman/4.1/en/charset-conversion.html">the document</a>, if UTF-8 was saved in the mysql 4.0 db although the default encoding is not UTF-8, then:</p>
<blockquote>However, you         should avoid trying to convert directly from                   
<code class="literal">latin1</code> to the &quot;real&quot; character set. This may         result in data loss. Instead, convert the column to a binary         data type, and then from the binary type to a non-binary type         with the desired character set. Conversion to and from binary         involves no attempt at character value conversion and preserves         your data intact.</blockquote>
<p>As it turns out, wordpress 2.1-alpha actually just save the text as latin1 strings, so no need to convert the fields to BINARY first, setting charset to UTF-8 on those fields is sufficient.</p>
<p>          
<a href="attachment:67">An sql file</a> is prepared for doing this. (Proceed at your own risk and always backup first)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/68/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FCKeditor 2.3 was released</title>
		<link>http://www.liucougar.net/blog/archives/33</link>
		<comments>http://www.liucougar.net/blog/archives/33#comments</comments>
		<pubDate>Wed, 21 Jun 2006 23:19:06 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[SJSD]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[eZ Publish]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/33</guid>
		<description><![CDATA[
I have been really busy lately, so I hadn&#8217;t noticed that   
FCKeditor 2.3 finaly was released a week ago until yesterday.
It seems it is now the time for a new release of SJSD which supports the latest FCKeditor: The svn trunk of SJSD supports 2.3 already, but no public release yet. I will [...]]]></description>
			<content:encoded><![CDATA[
<p>I have been really busy lately, so I hadn&#8217;t noticed that   
<a href="http://sourceforge.net/forum/forum.php?forum_id=580251">FCKeditor 2.3 finaly was released</a> a week ago until yesterday.</p>
<p>It seems it is now the time for a new release of SJSD which supports the latest FCKeditor: The svn trunk of SJSD supports 2.3 already, but no public release yet. I will try to make a release if I can find some time to sort it out.</p>
<p>In addition, a new patched EditMonkey would be nice as well, but as I haven&#8217;t ported the FCKeditor plugin for wordpress to FCKeditor 2.3 yet, it requires much more time, which I probably won&#8217;t do until some time later when I am not so occupied.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/33/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CaptCha! does not work anymore?</title>
		<link>http://www.liucougar.net/blog/archives/25</link>
		<comments>http://www.liucougar.net/blog/archives/25#comments</comments>
		<pubDate>Mon, 29 May 2006 01:13:55 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/25</guid>
		<description><![CDATA[
Have no clue, but since several days ago, my blog had kept having comment spams, although 
CaptCha! is enabled. I have no choice but to try to activate 
Akismet instead.
As this is a 2.1-alpha (svn) of wordpress, it refused to store the 
WordPress.com API key. However, after a svn up of wordpress, it got fixed.
I [...]]]></description>
			<content:encoded><![CDATA[
<p>Have no clue, but since several days ago, my blog had kept having comment spams, although 
<a href="http://www.boriel.com/?page_id=17">CaptCha!</a> is enabled. I have no choice but to try to activate 
<a href="http://akismet.com/">Akismet</a> instead.</p>
<p>As this is a 2.1-alpha (svn) of wordpress, it refused to store the 
<a href="http://wordpress.com/api-keys/">WordPress.com API key</a>. However, after a svn up of wordpress, it got fixed.</p>
<p>I deactivated plugin CaptCha! and went and saw how well Akismet could do its job. So far, Akismet caught 8 spams perfectly without missing a single one. I guess I will stick with Akismet then.</p>
<p>I just did not come up how can the spammer bot work around the Captcha challenge&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/25/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>EditMonkey 2.5 Patched Version</title>
		<link>http://www.liucougar.net/blog/archives/18</link>
		<comments>http://www.liucougar.net/blog/archives/18#comments</comments>
		<pubDate>Tue, 16 May 2006 04:43:04 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/18</guid>
		<description><![CDATA[
Yesterday, I 
notified the author of EditMonkey about the 
pre tag bug patch, However, he already made his mind about dropping support of FCKeditor for EditMonkey 3.0. Although personally I prefer FCKeditor, I agree that focus on one editor is better for stability issues with only one developer working on it.
Due to working on SJSD, [...]]]></description>
			<content:encoded><![CDATA[
<p>Yesterday, I 
<a href="http://forums.rajprasad.net/viewtopic.php?t=114">notified</a> the author of EditMonkey about the 
<a href="post:editmonkey-bugfix-patch">pre tag bug patch</a>, However, he already made his mind about dropping support of FCKeditor for EditMonkey 3.0. Although personally I prefer FCKeditor, I agree that focus on one editor is better for stability issues with only one developer working on it.</p>
<p>Due to working on SJSD, I am pretty familiar with FCKeditor code base. When I tried the built-in tinyMCE editor of WordPress, I noticed it supports &lt;!&#8211;more&#8211;&gt; and &lt;!&#8211;nextpage&#8211;&gt; much better than the FCKeditor does in EditMonkey 2.5: in tinyMCE, an image is displayed instead of an invisible comment.</p><span id="more-18"></span>
<p>I noticed this post in regarding to this issue in the 
<a href="http://forums.rajprasad.net/viewtopic.php?t=109">EditMonkey forum</a>:</p>
<blockquote>This can&#8217;t be fixed. I spent a week trying to get visual aids to show up in FCKeditor with an FCK plugin only to discover that this can only be done by extensively hacking the innards of FCKeditor.  The two images are provided just in case someone does figure out a way to do this through the plugin.  Unfortunately, as detailed in other posts, do to the difficulty in working with FCKeditor, I won&#8217;t be supporting FCK in any further releases of EM.</blockquote>
<p>It looks like that &quot;someone&quot; happens to be me: I am pretty sure a FCKeditor plugin can achieve this (talking about version 2.2 here).</p>
<p>If you are fans of FCKeditor, than you may want to try this 
<a href="content:2006/05/editormonkey-2.5-cougar.zip">EditMonkey 2.5 Patched by Cougar</a> version. It fixed lots of bugs related to FCKeditor interface. This download file does not contain tinyEMC and dictionaries. Unzip this file under your wp-content/plugins directory is enough.</p>
<p>However if you need dictionaries, you can unzip the original EditMonkey 2.5 file first, then uncompress this one to overwrite FCKeditor related part.</p>
<p>This is a ChangeLog compared to the original EditMonkey 2.5:</p>
<ul>
<li>Better &lt;!&#8211;more&#8211;&gt; and &lt;!&#8211;nextpage&#8211;&gt; support: at least as good as the tinyEMC counterpart</li>
<li>Complex PRE tag content is supported, and new lines are preserved correctly</li>
<li>Content saved to database is ensured to work with the builtin WYSIWYG editor as well as the builtin plain editor</li>
</ul>
<p>Hope you enjoy it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/18/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>EditMonkey Pre Tag Bugfix Patch</title>
		<link>http://www.liucougar.net/blog/archives/15</link>
		<comments>http://www.liucougar.net/blog/archives/15#comments</comments>
		<pubDate>Sun, 14 May 2006 22:07:32 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/15</guid>
		<description><![CDATA[
As a big fan for PRE tags, I use it a lot in blog. Unfortunately, the WYSIWYG editor deployed in this blog, EditMonkey 2.5 does not like PRE so much: once stored in database, all the new line in the PREs are missing, which is quite annoying. Thus I prepared a fix here.
Only modifing one [...]]]></description>
			<content:encoded><![CDATA[
<p>As a big fan for PRE tags, I use it a lot in blog. Unfortunately, the WYSIWYG editor deployed in this blog, EditMonkey 2.5 does not like PRE so much: once stored in database, all the new line in the PREs are missing, which is quite annoying. Thus I prepared a fix here.</p><span id="more-15"></span>
<p>Only modifing one file is enough to fix this, here is the patch:</p>
<pre>--- editormonkey.php.orig       2006-04-21 01:22:40.000000000 +0000
+++ editormonkey.php    2006-05-14 23:02:33.000000000 +0000
@@ -112,6 +112,8 @@
                add_action('admin_head',array('editormonkey', 'insert_interface'));
                add_action('edit_form_advanced',array('editormonkey', 'load_interface'));
                add_action('edit_page_form',array('editormonkey', 'load_interface'));
+               add_filter('content_save_pre',array('editormonkey', 'filter_content'));
+
                add_action('simple_edit_form',array('editormonkey', 'load_interface'));

                // Add actions to the comment form
@@ -165,7 +167,30 @@
                }
        }

-
+       function filter_content($content) {
+               if(preg_match( &amp;quot;#&amp;lt;pre.*&amp;gt;#imU&amp;quot;, $content) &amp;gt; 0)
+               {
+                   $splices = preg_split(&amp;quot;#(&amp;lt;\/?pre.*&amp;gt;)#iU&amp;quot;, $content, -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE);
+                   $content = '';
+                   $inside_pre = false;
+                   foreach($splices as $s)
+                   {
+                       if(substr(strtolower($s),0,4) == '&amp;lt;pre')
+                       {
+                           $inside_pre = true;
+                       }else if (substr(strtolower($s),0,5) == '&amp;lt;/pre')
+                       {
+                           $inside_pre = false;
+                       }else if($inside_pre)
+                       {
+                           $content .= htmlspecialchars(preg_replace(&amp;quot;#&amp;lt;\s*br\s*\/?&amp;gt;#i&amp;quot;, &amp;quot;\n&amp;quot;, $s));
+                           continue;
+                       }
+                       $content .= $s;
+                   }
+               }
+               return $content;
+       }
        /**
                Creates a personal dictionary, 0=plugin/global dictionary
        */</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Captcha for Fighting Comment SpaM</title>
		<link>http://www.liucougar.net/blog/archives/9</link>
		<comments>http://www.liucougar.net/blog/archives/9#comments</comments>
		<pubDate>Fri, 12 May 2006 17:00:45 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/9</guid>
		<description><![CDATA[
As for every open blog (open as in everyone can post comment without register first), anti-spam is of high priority.
Googling around for a WP plugin which implments 
Captcha, I found 
a list.
With further investigation, I decided to try out 
Captcha! (BTW: there is 
an open contest sponsored by eZ among others, in which one of [...]]]></description>
			<content:encoded><![CDATA[
<p>As for every open blog (open as in everyone can post comment without register first), anti-spam is of high priority.</p>
<p>Googling around for a WP plugin which implments 
<a href="http://en.wikipedia.org/wiki/Captcha">Captcha</a>, I found 
<a href="http://codex.wordpress.org/Plugins/Spam_Tools">a list</a>.</p>
<p>With further investigation, I decided to try out 
<a href="http://www.boriel.com/?page_id=17">Captcha!</a> (BTW: there is 
<a href="http://ez.no/community/news/code_challenge_of_german_web_developer_community" target="_blank">an open contest</a> sponsored by eZ among others, in which one of the three available categories of application is captcha. However, as it turned out that it has too little information in the English post, I do not know much about this contest)
<br />
</p><span id="more-9"></span>
<p>According to the document, I have to find a fancy font to use. I followed the suggestion to dig in website 
<a target="_blank" href="http://www.dafont.com">dafont</a>. &#8221;
<a target="_blank" href="http://www.dafont.com/28-days-later.font">28 Days Later</a>&#8221; seems to be a decent while fancy one, so I downloaded it and put it in the same dir as the Captcha! plugin.</p>
<p>It is also necessary to create a web server writable dir for Captcha! to put the generated image files and the dir has to be under document root.</p>
<p>You can see the results at the bottom of this page <img src='http://www.liucougar.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> 
<br />
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/9/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>About WYSIWYG editor in this blog</title>
		<link>http://www.liucougar.net/blog/archives/5</link>
		<comments>http://www.liucougar.net/blog/archives/5#comments</comments>
		<pubDate>Thu, 11 May 2006 21:38:09 +0000</pubDate>
		<dc:creator>liucougar</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/5</guid>
		<description><![CDATA[Although I am most familiar with eZ publish and have little knowledge about wordpress, but I bet the latter one is more appropriate for dedicated blog. That&#8217;s the reason this site was established based on wordpress.
However, that&#8217;s means I can not use the SJSD project. 



I searched in google for this kind of plugins for [...]]]></description>
			<content:encoded><![CDATA[<p>Although I am most familiar with eZ publish and have little knowledge about wordpress, but I bet the latter one is more appropriate for dedicated blog. That&#8217;s the reason this site was established based on wordpress.</p>
<p>However, that&#8217;s means I can not use the SJSD project. 
<br />
</p>
<span id="more-5"></span>
<p>I searched in google for this kind of plugins for wordpress. Without much effort, I found out a fabulous one: 
<a href="http://www.rajprasad.net/plugins/editormonkey/">Editormonkey</a>.</p>
<p>You can try it in the comment below. Of course, as you can imagine, the functionality in the comment area is a much limited one compared to its full potential.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liucougar.net/blog/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
