<?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>takien, not taken</title> <atom:link href="http://takien.com/feed" rel="self" type="application/rss+xml" /><link>http://takien.com</link> <description>Webmaster&#039;s Information and Resource</description> <lastBuildDate>Wed, 28 Jul 2010 15:45:24 +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>jQuery Twitter Marquee</title><link>http://takien.com/699/jquery-twitter-marquee.php</link> <comments>http://takien.com/699/jquery-twitter-marquee.php#comments</comments> <pubDate>Wed, 28 Jul 2010 15:45:24 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://takien.com/?p=699</guid> <description><![CDATA[May be you see it everyday, a seamless-continuousÂ  marquee in the Twitter homepage shows the current trending topic.Â  It's damn good with fading background and short description in a tooltips. If you like that marquee and want to put it in your website/blog, I have write such script using jQuery and CSS3 I just stolen [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_700" class="wp-caption alignleft" style="width: 160px"><a
href="http://takien.com/wp-content/uploads/2010/07/twitter-marquee.png"><img
class="size-medium wp-image-700 " title="twitter-marquee" src="http://takien.com/wp-content/uploads/2010/07/twitter-marquee-300x230.png" alt="Twitter Marquee" width="150" /></a><p
class="wp-caption-text">Twitter Marquee</p></div><p>May be you see it everyday, a seamless-continuousÂ  marquee in the Twitter homepage shows the current trending topic.Â  It's damn good with fading background and short description in a tooltips.</p><p>If you like that marquee and want to put it in your website/blog,<span
style="text-decoration: line-through;"> I have write such script using jQuery and CSS3</span> I just stolen a bunch of jQuery and CSS code from Twitter, clean it up and made to work standalone. <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p>All you need to do is edit the CSS (marquee width, background, text color etc) and image to fit to your need and drop it into your website or blog.</p><p>It's nothing easier than to try it yourself and the following links will tell you everything.</p><div
class="information"><strong>Demo</strong><p><br
/> Demo:</p><p><a
href="http://cektkp.com/twittermarquee/twitmarquee.html">http://cektkp.com/twittermarquee/twitmarquee.html</a></p><p>Script, CSS and required images:</p><p><a
href="http://cektkp.com/twittermarquee/">http://cektkp.com/twittermarquee/</a><br
/></p></div><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/twitter+marquee+jquery" title="twitter marquee jquery">twitter marquee jquery</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/699/jquery-twitter-marquee.php/feed</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>WordPress Search Filter Plugins</title><link>http://takien.com/678/wordpress-search-filter-plugins.php</link> <comments>http://takien.com/678/wordpress-search-filter-plugins.php#comments</comments> <pubDate>Fri, 26 Mar 2010 22:15:28 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[filter]]></category> <category><![CDATA[search]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://takien.com/?p=678</guid> <description><![CDATA[May be you just wondering how to filter the WordPress search result by category. It's possible by adding some function to your wordpress, but if you don't familiar with PHP, I just write a plugin for you called WP Search Filter. This plugin is simply add a dropdown categories next to the search form. If [...]]]></description> <content:encoded><![CDATA[<p>May be you just wondering how to filter the WordPress search result by category. It's possible by adding some function to your wordpress, but if you don't familiar with PHP, I just write a plugin for you called <strong>WP Search Filter</strong>.</p><p>This plugin is simply add a dropdown categories next to the search form. If one of the category is selected, then it will only search on that category.</p><p>Actually it's also possible to filter the search result by <strong>custom field </strong>, but I will do it later <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p><strong>Installation</strong><br
/> Just install the plugin and activate. Make sure your search form is called from:<br
/><div
class="example"><div
class="example-contents programlisting"><div
class="phpcode"><code><span
style="color: #000000"> <span
style="color: #0000BB">&lt;?php<br
/>get_search_form</span><span
style="color: #007700">();<br
/>&lt;</span><span
style="color: #0000BB">p</span><span
style="color: #007700">&gt;</span><span
style="color: #0000BB">?&gt;</span> </span> </code></div></div></div></p><p><strong>Demo:</strong><br
/> Please see the live demo at the top right of this website.</p><div
class="information"><strong>Download</strong><p><br
/> <a
href='http://takien.com/wp-content/uploads/2010/03/wp-search-filter.zip'>Download WP Search Filter Here.</a><br
/></p></div><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/wordpress+search+filter" title="wordpress search filter">wordpress search filter</a></li><li><a
href="http://takien.com/search/wordpress+search+filters" title="wordpress search filters">wordpress search filters</a></li><li><a
href="http://takien.com/search/search+filtering+plugin" title="Search Filtering Plugin">Search Filtering Plugin</a></li><li><a
href="http://takien.com/search/wordpress+search+plugin" title="wordpress search plugin">wordpress search plugin</a></li><li><a
href="http://takien.com/search/wordpress+searchfilter" title="wordpress SearchFilter">wordpress SearchFilter</a></li><li><a
href="http://takien.com/search/filtered+search+wordpress" title="filtered search wordpress">filtered search wordpress</a></li><li><a
href="http://takien.com/search/wordpress+filter+search+plugin" title="wordpress filter search plugin">wordpress filter search plugin</a></li><li><a
href="http://takien.com/search/wordpress+search+filter+plugins" title="Wordpress Search Filter Plugins">Wordpress Search Filter Plugins</a></li><li><a
href="http://takien.com/search/searchfilter+wordpress" title="SearchFilter wordpress">SearchFilter wordpress</a></li><li><a
href="http://takien.com/search/wordpress+search+by+category" title="wordpress search by category">wordpress search by category</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/678/wordpress-search-filter-plugins.php/feed</wfw:commentRss> <slash:comments>29</slash:comments> </item> <item><title>WP Dropdown Posts Plugins</title><link>http://takien.com/661/wp-dropdown-posts-plugins.php</link> <comments>http://takien.com/661/wp-dropdown-posts-plugins.php#comments</comments> <pubDate>Mon, 01 Mar 2010 09:21:36 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[dropdown posts]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://takien.com/661/wp-dropdown-posts-plugins.php</guid> <description><![CDATA[Sometime you want to display WordPress Posts list in a dropdown style just like WordPress Page does. Unfortunately this feature is not available in WordPress. But dont' worry guys, I have created a plugin for this purpose. WP Dropdown Posts will shows posts list in dropdown and if you click on an item, you will [...]]]></description> <content:encoded><![CDATA[<p>Sometime you want to display WordPress Posts list in a dropdown style just like WordPress Page does. Unfortunately this feature is not available in WordPress. But dont' worry guys, I have created a plugin for this purpose. WP Dropdown Posts will shows posts list in dropdown and if you click on an item, you will be redirected to that post. <span
id="more-661"></span></p><p><strong>WP Dropdown Posts</strong><br
/> Author: takien<br
/> Contributors: takien<br
/> Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&#038;business=BL7ERUY46HPL8&#038;lc=ID&#038;item_name=WP%20Dropdown%20Posts%20Plugin&#038;currency_code=USD&#038;bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted<br
/> Tags: post, dropdown, jump, menu<br
/> Tested up to: 0.1<br
/> Stable tag: 0.1</p><p>This plugin will show post list as dropdown</p><p><strong>Description</strong></p><p>This plugin will show post list as dropdown just like wp_dropdown_pages, most parameter wp_dropdown_pages are accepted too.</p><p><strong>Screenshot</strong><br
/><div
id="attachment_665" class="wp-caption alignnone" style="width: 257px"><a
href="http://takien.com/wp-content/uploads/2010/03/dropdownposts.png"><img
src="http://takien.com/wp-content/uploads/2010/03/dropdownposts.png" alt="Dropdown Posts" title="dropdownposts" width="247" height="248" class="size-full wp-image-665" /></a><p
class="wp-caption-text">WP Dropdown Posts</p></div></p><p><strong>Installation</strong></p><p>1. Upload the 'wp-dropdown-posts.php' file to the '/wp-content/plugins/' directory<br
/> 2. Activate the plugin through the 'Plugins' menu in WordPress<br
/> 3. Paste the following code to your theme file, e.g in your sidebar.php</p><div
class="example"><p><strong>WP Dropdown Posts</strong></p><div
class="example-contents programlisting"><div
class="phpcode"><code><span
style="color: #000000"> <span
style="color: #0000BB">&lt;?php<br
/>wp_dropdown_posts</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'sort_column=post_date&amp;sort_order=DESC&amp;number=5'</span><span
style="color: #007700">);<br
/>&lt;</span><span
style="color: #0000BB">p</span><span
style="color: #007700">&gt;</span><span
style="color: #0000BB">?&gt;</span> </span> </code></div></div></div><br
/> That will show latest 5 posts in dropdown.</p><p><div
class="information"><strong>Download</strong><p><br
/> <a
target="_blank" href='http://wordpress.org/extend/plugins/wp-dropdown-posts/'>Click Here to Download from WordPress.org</a></p></div><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/wp+dropdown+posts" title="wp dropdown posts">wp dropdown posts</a></li><li><a
href="http://takien.com/search/wp+dropdown" title="wp dropdown">wp dropdown</a></li><li><a
href="http://takien.com/search/drop+down+post+list+plugin+for+wordpress" title="Drop-Down Post List Plugin for WordPress">Drop-Down Post List Plugin for WordPress</a></li><li><a
href="http://takien.com/search/wp_dropdown_posts" title="wp_dropdown_posts">wp_dropdown_posts</a></li><li><a
href="http://takien.com/search/dropdown+posts" title="dropdown posts">dropdown posts</a></li><li><a
href="http://takien.com/search/wp_dropdown" title="wp_dropdown">wp_dropdown</a></li><li><a
href="http://takien.com/search/wordpress+spry+plugin" title="wordpress spry plugin">wordpress spry plugin</a></li><li><a
href="http://takien.com/search/show+post+on+drop+down+categories" title="show post on drop down categories">show post on drop down categories</a></li><li><a
href="http://takien.com/search/wp+archives+dropdown" title="wp archives dropdown">wp archives dropdown</a></li><li><a
href="http://takien.com/search/wp+archives+dropdown+code" title="wp archives dropdown code">wp archives dropdown code</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/661/wp-dropdown-posts-plugins.php/feed</wfw:commentRss> <slash:comments>17</slash:comments> </item> <item><title>WordPress Iteration in Your Own PHP Application</title><link>http://takien.com/634/wordpress-iteration-in-your-own-php-application.php</link> <comments>http://takien.com/634/wordpress-iteration-in-your-own-php-application.php#comments</comments> <pubDate>Fri, 26 Feb 2010 22:25:14 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[iteration]]></category> <category><![CDATA[loop]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[while]]></category><guid
isPermaLink="false">http://takien.com/?p=634</guid> <description><![CDATA[WordPress has its own way to loop the posts, that is different than what other CMS does. I think it's great because of flexibility and usability reason. It would seem easy later, when you want to manipulate the result before it is displayed to the browser. So you want to implement the WordPress-style loop in [...]]]></description> <content:encoded><![CDATA[<p>WordPress has its own way to loop the posts, that is different than what other CMS does.  I think it's great because of flexibility and usability reason. It would seem easy later, when you want to manipulate the result before it is displayed to the browser.<br
/> So you want to implement the WordPress-style loop in your own PHP application? You have to say yes. <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p>The following PHP code contains some basic functions to make your own WordPress Loop.</p><div
class="refsect1"><h3 class="title">Code</h3><div
class="example"><p><strong>WordPress-style Loop</strong></p><div
class="example-contents programlisting"><div
class="phpcode"><code><span
style="color: #000000"> <span
style="color: #0000BB">&lt;?php<br
/>$posts&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">mysql_query</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'YOUR&nbsp;SQL&nbsp;QUERY&nbsp;HERE'</span><span
style="color: #007700">);<br
/></span><span
style="color: #0000BB">$post&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">null</span><span
style="color: #007700">;<br
/></span><span
style="color: #0000BB">$post_count&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">0</span><span
style="color: #007700">;<br
/></span><span
style="color: #0000BB">$post_index&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">0</span><span
style="color: #007700">;<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">have_post</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$posts</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$post_count</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$post_index</span><span
style="color: #007700">;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span
style="color: #0000BB">$posts&nbsp;</span><span
style="color: #007700">&amp;&amp;&nbsp;(</span><span
style="color: #0000BB">$post_index&nbsp;</span><span
style="color: #007700">&lt;&nbsp;=&nbsp;</span><span
style="color: #0000BB">$post_count</span><span
style="color: #007700">)){<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$post_count&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">count</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$posts</span><span
style="color: #007700">);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">true</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$post_count&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">0</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">false</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>}<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">the_post</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$posts</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$post</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$post_count</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$post_index</span><span
style="color: #007700">;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #FF8000">//&nbsp;make&nbsp;sure&nbsp;all&nbsp;the&nbsp;posts&nbsp;haven't&nbsp;already&nbsp;been&nbsp;looped&nbsp;through<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">if&nbsp;(</span><span
style="color: #0000BB">$post_index&nbsp;</span><span
style="color: #007700">&gt;&nbsp;</span><span
style="color: #0000BB">$post_count</span><span
style="color: #007700">)&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">false</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #FF8000">//&nbsp;retrieve&nbsp;the&nbsp;post&nbsp;data&nbsp;for&nbsp;the&nbsp;current&nbsp;index<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$post&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$posts</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$post_index</span><span
style="color: #007700">+</span><span
style="color: #0000BB">1</span><span
style="color: #007700">];<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #FF8000">//&nbsp;increment&nbsp;the&nbsp;index&nbsp;for&nbsp;the&nbsp;next&nbsp;time&nbsp;this&nbsp;method&nbsp;is&nbsp;called<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$post_index</span><span
style="color: #007700">++;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">$post</span><span
style="color: #007700">;<br
/><br
/>}<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">the_title</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$post</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">$post</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">Title</span><span
style="color: #007700">;<br
/>}<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">the_content</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$post</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">$post</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">Content</span><span
style="color: #007700">;<br
/>}<br
/><br
/></span><span
style="color: #FF8000">//and&nbsp;the&nbsp;output...&nbsp;tada....<br
/><br
/></span><span
style="color: #007700">if(</span><span
style="color: #0000BB">have_post</span><span
style="color: #007700">())&nbsp;:&nbsp;while(</span><span
style="color: #0000BB">have_post</span><span
style="color: #007700">())&nbsp;:&nbsp;</span><span
style="color: #0000BB">the_post</span><span
style="color: #007700">();<br
/>echo&nbsp;</span><span
style="color: #DD0000">"<br
/>&lt;h2&gt;"</span><span
style="color: #007700">.</span><span
style="color: #0000BB">the_title</span><span
style="color: #007700">().</span><span
style="color: #DD0000">"&lt;/h2&gt;<br
/><br
/>"</span><span
style="color: #007700">;<br
/>echo&nbsp;</span><span
style="color: #0000BB">the_content</span><span
style="color: #007700">();<br
/>endwhile;&nbsp;endif;<br
/><br
/>&lt;</span><span
style="color: #0000BB">p</span><span
style="color: #007700">&gt;</span><span
style="color: #0000BB">?&gt;</span> </span> </code></div></div></div></div><p>The <strong>advantage </strong>of using this iteration is:<br
/> 1. Easy to implement with templating system.<br
/> 2. Easy to filter output through PHP function, no need edit the template file.<br
/> 3. Every output element is a function rather than a variable. It accepts parameter, you can do more things.<br
/> 4. Want to display next post or previous post? that's no a pain.</p><p><strong>Disadvantage:</strong><br
/> Of course, that code confusing me at the first time <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><div
class="information"><strong>Information</strong><p><br
/> Thanks to <a
target="_blank" href="http://blackbooksingles.com/">Matt Huggins</a> post at <a
href="http://stackoverflow.com/questions/1516181/how-to-make-my-own-while-loop-just-like-wordpress-loop">Stackoverflow</a> and <a
title="Pedagang bubur kacang ijo" target="_blank" href="http://kacanghijau.com">xrvel</a> post at <a
href="http://www.kaskus.us/showpost.php?p=174087163&#038;postcount=8470">kaskus </a></p></div><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/wordpress+whilehave_post" title="wordpress while(have_post">wordpress while(have_post</a></li><li><a
href="http://takien.com/search/function+of+bubur+kacang+hijau" title="function of bubur kacang hijau">function of bubur kacang hijau</a></li><li><a
href="http://takien.com/search/wordpress+post_count" title="wordpress post_count">wordpress post_count</a></li><li><a
href="http://takien.com/search/wordpress+have_post" title="wordpress have_post">wordpress have_post</a></li><li><a
href="http://takien.com/search/return+while+function+php" title="return while function php">return while function php</a></li><li><a
href="http://takien.com/search/wordpress+post_count" title="wordpress $post_count">wordpress $post_count</a></li><li><a
href="http://takien.com/search/wordpress+db+queries+loop+in+functions+php" title="wordpress db queries loop in functions php">wordpress db queries loop in functions php</a></li><li><a
href="http://takien.com/search/wordpress+global+have_post" title="wordpress global have_post">wordpress global have_post</a></li><li><a
href="http://takien.com/search/wordpress+loop+post_count" title="wordpress loop post_count">wordpress loop post_count</a></li><li><a
href="http://takien.com/search/wordpress+plugin+iterate+posts" title="wordpress plugin iterate posts">wordpress plugin iterate posts</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/634/wordpress-iteration-in-your-own-php-application.php/feed</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Junk Is Poetry (?)</title><link>http://takien.com/625/junk-is-poetry.php</link> <comments>http://takien.com/625/junk-is-poetry.php#comments</comments> <pubDate>Wed, 17 Feb 2010 01:08:27 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Opiniku]]></category> <category><![CDATA[community]]></category> <category><![CDATA[forum]]></category> <category><![CDATA[kaskus]]></category><guid
isPermaLink="false">http://takien.com/?p=625</guid> <description><![CDATA[Barangkali ada yang aneh dengan judul posting ini. Ya, sayaÂ  sendiri nggak ngerti apa artinya kalimat tersebut, "junk is poetry". Kalau secara harfiah, junk artinya sampah dan poetry artinya puisi. Berarti junk is poetry adalah sampah yang sok puitis Okelah kalau begitu, bagi rekan-rekan yang suka gabung di forum pasti tau kalau istilah junk itu [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_624" class="wp-caption alignleft" style="width: 198px"><a
href="http://takien.com/wp-content/uploads/2010/02/junk-is-poetry.jpg"><img
class="size-full wp-image-624" title="junk-is-poetry" src="http://takien.com/wp-content/uploads/2010/02/junk-is-poetry.jpg" alt="junk is poetry, idiotnesia,kaskus, pertamax" width="188" height="231" /></a><p
class="wp-caption-text">Junk Is Poetry</p></div><p>Barangkali ada yang aneh dengan judul posting ini. Ya, sayaÂ  sendiri nggak ngerti apa artinya kalimat tersebut, "junk is poetry". Kalau secara harfiah, junk artinya sampah dan poetry artinya puisi. Berarti junk is poetry adalah sampah yang sok puitis <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p>Okelah kalau begitu, bagi rekan-rekan yang suka gabung di forum pasti tau kalau istilah <em>junk </em>itu adalah aktifitas nyampah di forum. Ya, memang nyampah kok. Memposting sesuatu yang tidak berguna (kadang cuma ngakak doang, posting smilies doang, sundul up-up doang, dan banyak lagi lainnya) yang tujuannya tidak lain adalah untuk menambah jumlah postingan dengan sedikit usaha. hahaha. Gak tau deh, mungkin pikir mereka jumlah postingan bisa ditukar beras kale ya.</p><p>Sudah barang tentu para pengurus forum tidak sepihak dengan para junker-junker tersebut yang kerjanya mengotori forum yang mereka kelola. Tapi secara informal (hah?) pengelola forum juga diam-diam mengakui bahwa aktifitas junker bermanfaat bagi mereka. Kenapa? Jadi ibarat memberantas perjudian. Setengah-setengah. Otherwise, setoran menurun. wkwkwkw</p><p>Aktifitas junker ini ada dimana-mana, tak terkecuali di forum terbesar di Indonesia yaitu kaskus.us khususnya di sub forum Website, Webmaster, Webdeveloper (W3). Tersebutlah sesosok userid (gak bilang oknum) bernama <strong>idiotnesia</strong> yang sebenernya sih enggak idiot. Idiotnesia pantas dijuluki kaskuser (pengguna kaskus) paling ngejunk sedunia (W3).Â  Bagaimana tidak, dalam sehari dia mampu memposting 16 post selama 5 tahun berturut-turut. ck ck ck.</p><p>Data ini memang tidak akurat, tapi perhitungan saya adalah selama 5 tahun (17 Feb 2005 - 17 Feb 2010) idiotnesia mampu membuat postingan sebanyak 30.889 (lihat gambar). Kalau kita kalikan jumlah hari dalam 5 tahun adalah 565 x 5 = 1825, jumlah postingan 30.889 / 1825 = <em>16.925479452054794520547945205479</em> (enam belas koma sembilan sekian sekian....). Sebuah angka yang fantastis bukan? Tentu saja angka sebenarnya bisa lebih besar dari itu. Karena pasti banyak postingan yang dihapus momod (perkiraan lebay saya mengatakan hampir 5 ribuan), dan idiotnesia juga tidak mungkin ngaskus (baca: ngejunk) setiap hari kan?</p><p>Lalu apa untungnya punya postingan berlimpah dengan cara <span
style="text-decoration: line-through;">korupsi </span> ngejunk tersebut? Jawabnnya tentu saja hanya idiotnesia yang tahu. Barangkali dia lagi menuntut suatu ilmu <span
style="text-decoration: line-through;">hitam </span>yang mensyaratkan untuk ngejunk setiap hari. hahahha.Â  Lalu, apa pula ruginya? Kata orang Jawa, <em>sing rugi yo kucing</em> (cuma kucing yang berak diurugi, red).Â  Sampai berita ini diturunkan si idiotnesia masih sering curhat soal laptopnya yang jebol. Loh, kenapa jebol? Karena ngejunk atau karena ngising gak diurugi? Hanya Tuhan lah yang tahu.</p><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/junk+artinya" title="junk artinya">junk artinya</a></li><li><a
href="http://takien.com/search/poetry+artinya" title="poetry artinya">poetry artinya</a></li><li><a
href="http://takien.com/search/artinya+junk" title="artinya junk">artinya junk</a></li><li><a
href="http://takien.com/search/idiotnesia" title="idiotnesia">idiotnesia</a></li><li><a
href="http://takien.com/search/junk+is+poetry" title="Junk Is Poetry">Junk Is Poetry</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/625/junk-is-poetry.php/feed</wfw:commentRss> <slash:comments>23</slash:comments> </item> <item><title>WP Editarea WordPress Plugin</title><link>http://takien.com/606/wp-editarea-wordpress-plugin.php</link> <comments>http://takien.com/606/wp-editarea-wordpress-plugin.php#comments</comments> <pubDate>Wed, 10 Feb 2010 20:16:21 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[code editor]]></category> <category><![CDATA[codepress]]></category> <category><![CDATA[editarea]]></category> <category><![CDATA[syntax highlighting]]></category> <category><![CDATA[syntaxhighlighter]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[wordpress plugins]]></category><guid
isPermaLink="false">http://takien.com/?p=606</guid> <description><![CDATA[WordPress used to embed Codepress syntax highlighting at Version 2.8 and immediately disabled it at Version 2.8.1 due to browser incompatibilities. However I found another free Javascript code editor called Editarea which has more features than Codepress . Now you can simply integrate Editarea functionality to your WordPress by using WP Editarea Plugins. WP Editarea [...]]]></description> <content:encoded><![CDATA[<p>WordPress used to embed Codepress syntax highlighting at <a
href="http://codex.wordpress.org/Version_2.8#New_Features">Version 2.8 </a> and immediately disabled it at <a
href="http://wordpress.org/development/2009/07/wordpress-2-8-1/">Version 2.8.1</a> due to browser incompatibilities. However I found another free Javascript code editor called <a
href="http://www.cdolivet.com/index.php?page=editArea">Editarea </a>which has more features than <a
href="http://sourceforge.net/projects/codepress/">Codepress </a>. Now you can simply integrate Editarea functionality to your WordPress by using <strong> WP Editarea Plugins</strong>.</p><p><strong>WP Editarea</strong><br
/> Contributors: takien<br
/> Requires at least: 2.9<br
/> Tested up to: 2.9.1<br
/> Stable tag: 0.1</p><p><strong>Description</strong></p><p>WP Editarea turns your Oldschool textarea code editor in WordPress Dashboard (plugin/theme editor) into a fancy realtime highlighted code editor using <a
target="_blank" href="http://www.cdolivet.com/index.php?page=editArea" title="EditArea, a free javascript editor for source code">Editarea</a>.</p><p><strong>Plugin Feature</strong></p><p>* Automatically detect syntax language<br
/> * Live preview in plugin option page<br
/> * Better than codepress (for me)<br
/> * Easy integration, no file to edit<br
/> * Easy to use configuration page</p><p><strong>Editarea Feature</strong><br
/> * Multi language interface<br
/> * Bracket matching highlight<br
/> * Support many syntax<br
/> * Line numbers<br
/> * Search/replace with regex<br
/> * More at <a
target="_blank" href="http://www.cdolivet.com/index.php?page=editArea" title="EditArea, a free javascript editor for source code">Editarea homepage</a>.</p><p><strong>Browser Compatibility</strong><br
/> * IE 6 &#038; 7 &#038; 8, Firefox 1.5 &#038; 2 &#038; 3, Safari 3.x &#038; 4, Opera 9, 9.5, 9.6 and Chrome 1 &#038; 2[2]</p><p><strong>Installation</strong></p><p>The installation process.</p><p>1. Upload `wp-editarea` folder to the `/wp-content/plugins/` directory. Make sure directory structures are not changed. Or Directly upload from your Plugin management page.<br
/> 2. Activate the plugin through the 'Plugins' menu in WordPress<br
/> 3. Go to Settings menu and set options you need.</p><p><strong>Screenshots</strong></p><p>1. Setting page and live preview.<br
/><div
id="attachment_604" class="wp-caption alignnone" style="width: 310px"><a
href="http://takien.com/wp-content/uploads/2010/02/screenshot-11.png"><img
src="http://takien.com/wp-content/uploads/2010/02/screenshot-11-300x236.png" alt="wordpress editarea, wordpress syntax highlight" title="WP Editarea" width="300" height="236" class="size-medium wp-image-604" /></a><p
class="wp-caption-text">WP Editarea setting page.</p></div><br
/> 2. Your new theme editor <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br
/><div
id="attachment_605" class="wp-caption alignnone" style="width: 310px"><a
href="http://takien.com/wp-content/uploads/2010/02/screenshot-2.png"><img
src="http://takien.com/wp-content/uploads/2010/02/screenshot-2-300x201.png" alt=" editarea, wordpress code editor, wordpress syntax highlight" title="WP Editarea" width="300" height="201" class="size-medium wp-image-605" /></a><p
class="wp-caption-text">WordPress Editarea</p></div></p><div
class="information"><strong>Download</strong><p><br
/> <a
href="http://wordpress.org/extend/plugins/wp-editarea/">Download from WordPress.org</a><br
/></p></div><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/wordpress+editarea" title="wordpress editarea">wordpress editarea</a></li><li><a
href="http://takien.com/search/editarea+wordpress" title="editarea wordpress">editarea wordpress</a></li><li><a
href="http://takien.com/search/wordpress+plugin+edit+area" title="wordpress plugin edit area">wordpress plugin edit area</a></li><li><a
href="http://takien.com/search/editare+wordpress" title="editare wordpress">editare wordpress</a></li><li><a
href="http://takien.com/search/wordpress+plugin+search+czech" title="wordpress plugin search czech">wordpress plugin search czech</a></li><li><a
href="http://takien.com/search/wordpress+page+editor+syntax+highlight" title="wordpress page editor syntax highlight">wordpress page editor syntax highlight</a></li><li><a
href="http://takien.com/search/wordpress+highlight+homepage+edit" title="wordpress highlight homepage edit">wordpress highlight homepage edit</a></li><li><a
href="http://takien.com/search/wordpress+editor+plugin" title="wordpress editor plugin">wordpress editor plugin</a></li><li><a
href="http://takien.com/search/wordpress+edit+plugin" title="wordpress edit plugin">wordpress edit plugin</a></li><li><a
href="http://takien.com/search/wordpress+edit+area" title="wordpress edit area">wordpress edit area</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/606/wp-editarea-wordpress-plugin.php/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>WordPress 3.0 with Twenty Ten Default Theme</title><link>http://takien.com/599/wordpress-3-0-with-twenty-ten-default-theme.php</link> <comments>http://takien.com/599/wordpress-3-0-with-twenty-ten-default-theme.php#comments</comments> <pubDate>Tue, 09 Feb 2010 10:19:45 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Wordpress theme]]></category><guid
isPermaLink="false">http://takien.com/599/wordpress-3-0-with-twenty-ten-default-theme.php</guid> <description><![CDATA[I just download and install alpha version of WordPress Version 3.0. At a glance, there are no major changes that I can see. After installation process that run as simple as usual, I walk through menus in the Dashboard and found a new sub-menu named "Network" under the Tools menu. As I have heard before [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_598" class="wp-caption alignleft" style="width: 160px"><a
href="http://takien.com/wp-content/uploads/2010/02/wp30screenshot.png"><img
class="size-thumbnail wp-image-598 " title="wp30screenshot" src="http://takien.com/wp-content/uploads/2010/02/wp30screenshot-150x150.png" alt="WordPress 3.0, twenty ten, wordpress screnshoot" width="150" height="150" /></a><p
class="wp-caption-text">Twenty Ten 0.7 comes with WordPress 3.0</p></div><p>I just download and install alpha version of WordPress Version 3.0. At a glance, there are no major changes that I can see. After installation process that run as simple as usual, I walk through menus in the Dashboard and found a new sub-menu named "Network" under the Tools menu. As I have heard before that in version 3.0 WordPress would be integrated with WordPress MU with <a
href="http://dougal.gunters.org/blog/2010/01/25/wordpress-3-0-multisite-terminology">Multi-Site</a> feature. Itâ€™s mean that you can multiply your site easily without Installing WordPress MU.</p><p>Navigate other menus, there is nothing striking until my mouse clicked on the "Appearance". There seems to be a new stuff. The new default theme entitled "<em>Twenty Ten 0.7<strong> </strong>by the WordPress team</em>", cool.Â  Thereâ€™s a new atmosphere in my WordPress instead of seeing Kubrick theme for several years.</p><p>My curiosity led to Theme Editor that may also have some changes there. A little difference with previous version in the lists of the theme file name. The file title and file name are separated into two lines. Look quite neater.</p><p>At the bottom of file lists, there is a new stylesheet file named "<em>editor-style.css</em>". I hope my guessâ€™ right, it is the css style file to be used in editor page when I write or edit a post. I think it will be useful for those who create a new post from the dashboard, but not for me who prefer to write using Windows Live Writer.</p><p>Thatâ€™s my story when testing WordPress 3.0 alpha -- <em>development version (3.0-alpha)</em>-- which may a lot of changes will be added Â until the final version released.</p><ul><li> To see some WordPress 3.0 features, please follow this link: <a
href="http://www.wordpressious.com/wordpress-3-0-what-we-will-see/">http://www.wordpressious.com/wordpress-3-0-what-we-will-see/</a></li><li>To test yourself pleased download the development version here: <a
title="http://wordpress.org/nightly-builds/wordpress-latest.zip" href="http://wordpress.org/nightly-builds/wordpress-latest.zip">http://wordpress.org/nightly-builds/wordpress-latest.zip</a> - Every night, the latest, up-to-date in-development version of WordPress.</li><li>To trac the code changes, visit : <a
title="http://core.trac.wordpress.org/browser" href="http://core.trac.wordpress.org/browser">http://core.trac.wordpress.org/browser</a></li></ul><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/wordpress+3+default+theme" title="wordpress 3 default theme">wordpress 3 default theme</a></li><li><a
href="http://takien.com/search/twenty+ten+0+7+by+the+wordpress+team" title="Twenty Ten 0 7 by the WordPress team">Twenty Ten 0 7 by the WordPress team</a></li><li><a
href="http://takien.com/search/twenty+ten+by+the+wordpress+team" title="Twenty Ten by the WordPress team">Twenty Ten by the WordPress team</a></li><li><a
href="http://takien.com/search/twenty+ten+1+0+by+the+wordpress+team" title="Twenty Ten 1 0 by the WordPress team">Twenty Ten 1 0 by the WordPress team</a></li><li><a
href="http://takien.com/search/twenty+ten+0+7" title="Twenty Ten 0 7">Twenty Ten 0 7</a></li><li><a
href="http://takien.com/search/wordpress+twenty+ten" title="wordpress Twenty Ten">wordpress Twenty Ten</a></li><li><a
href="http://takien.com/search/wordpress+3+0+nightly" title="wordpress 3 0 nightly">wordpress 3 0 nightly</a></li><li><a
href="http://takien.com/search/wordpress+3+0+alpha+download" title="wordpress 3 0 alpha download">wordpress 3 0 alpha download</a></li><li><a
href="http://takien.com/search/wordpress+3+0+default+theme" title="wordpress 3 0 default theme">wordpress 3 0 default theme</a></li><li><a
href="http://takien.com/search/wordpress+twenty+ten+1+0" title="wordpress twenty ten 1 0">wordpress twenty ten 1 0</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/599/wordpress-3-0-with-twenty-ten-default-theme.php/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Google Apps Tidak Lagi Mendukung Internet Explorer 6</title><link>http://takien.com/590/google-apps-tidak-lagi-mendukung-internet-explorer-6.php</link> <comments>http://takien.com/590/google-apps-tidak-lagi-mendukung-internet-explorer-6.php#comments</comments> <pubDate>Wed, 03 Feb 2010 05:25:54 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Opiniku]]></category> <category><![CDATA[Browser]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[google apps]]></category> <category><![CDATA[Internet]]></category> <category><![CDATA[Internet Explorer]]></category><guid
isPermaLink="false">http://takien.com/590/google-apps-tidak-lagi-mendukung-internet-explorer-6.php</guid> <description><![CDATA[Baru saja dapat email dari Pak Google bahwa Layanan mereka Google Apps tidak lagi mendukung pengaksesan melalui browser Internet Explorer. Tidak ada yang aneh sih, karena Anda para pengguna Google Apps pasti sudah dapat emailnya juga. Tapi menurut saya, keputusan Google ini sebenarnya sedikit telat (tepatnya telat 3 bulan telat 2 tahun, wow). Ya, karena [...]]]></description> <content:encoded><![CDATA[<p><div
id="attachment_589" class="wp-caption alignleft" style="width: 160px"><a
href="http://takien.com/wp-content/uploads/2010/02/google-apps.jpg"><img
src="http://takien.com/wp-content/uploads/2010/02/google-apps-150x150.jpg" alt="google apps, google aps logo, google" title="google apps" width="150" height="150" class="size-thumbnail wp-image-589" /></a><p
class="wp-caption-text">Google Apps</p></div><br
/> Baru saja dapat email dari Pak Google bahwa Layanan mereka Google Apps tidak lagi mendukung pengaksesan melalui browser Internet Explorer. Tidak ada yang aneh sih, karena Anda para pengguna Google Apps pasti sudah dapat emailnya juga.</p><p>Tapi menurut saya, keputusan Google ini sebenarnya sedikit telat (tepatnya <del
datetime="2010-02-03T05:14:24+00:00">telat 3 bulan </del>telat 2 tahun, wow). Ya, karena <a
href="http://takien.com">saya </a> sendiri sudah melakukan hal ini sejak 2 tahun lalu. Kalau nggak percaya lihat saja postingan saya yang ini:<a
href="http://takien.com/221/internet-explorer-sepertinya-kita-harus-berpisah.php" Internet Explorer, Sepertinya Kita Harus Berpisah">Internet Explorer, Sepertinya Kita Harus Berpisah</a> <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p>Walaupun Google telat, tapi sebagai manusia biasa selayaknya kita bersyukur atas keputusan tersebut guna mengurangi pengguna Internet Explorer 6 yang berarti akan meningkatkan taraf hidup para <a
href="http://ianbali.wordpress.com">Webdeveloper</a></p><p>Berikut kutipan email tersebut:</p><blockquote><p>Dear Google Apps admin,â€‹</p><p>In order to continue to improve our products and deliver more sophisticated features and performance, we are harnessing some of the latest improvements in web browser technology.  This includes faster JavaScript processing and new standards like HTML5.  As a result, over the course of 2010, we will be phasing out support for Microsoft Internet Explorer 6.0 as well as other older browsers that are not supported by their own manufacturers.</p><p>We plan to begin phasing out support of these older browsers on the Google Docs suite and the Google Sites editor on March 1, 2010.  After that point, certain functionality within these applications may have higher latency and may not work correctly in these older browsers. Later in 2010, we will start to phase out support for these browsers for Google Mail and Google Calendar.</p><p>Google Apps will continue to support Internet Explorer 7.0 and above, Firefox 3.0 and above, Google Chrome 4.0 and above, and Safari 3.0 and above.</p><p>Starting this week, users on these older browsers will see a message in Google Docs and the Google Sites editor explaining this change and asking them to upgrade their browser.  We will also alert you again closer to March 1 to remind you of this change.</p><p>In 2009, the Google Apps team delivered more than 100 improvements to enhance your product experience.  We are aiming to beat that in 2010 and continue to deliver the best and most innovative collaboration products for businesses.</p><p>Thank you for your continued support!</p><p>Sincerely,</p><p>The Google Apps team</p></blockquote><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/chinese+to+thai+++windows+internet+explorer" title="chinese to thai - windows internet Explorer">chinese to thai - windows internet Explorer</a></li><li><a
href="http://takien.com/search/internet+explorer+6+bagus" title="internet explorer 6 bagus">internet explorer 6 bagus</a></li><li><a
href="http://takien.com/search/internet+explorer+6+not+supported+messages" title="internet explorer 6 not supported messages">internet explorer 6 not supported messages</a></li><li><a
href="http://takien.com/search/intnet+lagi" title="intnet lagi">intnet lagi</a></li><li><a
href="http://takien.com/search/mendukung+internet" title="mendukung internet">mendukung internet</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/590/google-apps-tidak-lagi-mendukung-internet-explorer-6.php/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Word Replacer WordPress Plugin</title><link>http://takien.com/587/word-replacer-wordpress-plugin.php</link> <comments>http://takien.com/587/word-replacer-wordpress-plugin.php#comments</comments> <pubDate>Mon, 01 Feb 2010 10:37:41 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[comment replace]]></category> <category><![CDATA[content replace]]></category> <category><![CDATA[str_replace]]></category> <category><![CDATA[text replace]]></category> <category><![CDATA[word replace]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[wordpress plugins]]></category><guid
isPermaLink="false">http://takien.com/587/word-replacer-wordpress-plugin.php</guid> <description><![CDATA[Word Replacer is a WordPress plugin will enable you to replace a specific word in your content then replace it with replacement given. Contents that can be replaced are posts, pages, or comments. It's identical with the Word Censors in SMF Forum Software. Readme: === Word Replacer === Contributors: takien Donate link: Donate Tags: replacer, [...]]]></description> <content:encoded><![CDATA[<p>Word Replacer is a WordPress plugin will enable you to replace a specific word in your content then replace it with replacement given. Contents that can be replaced are posts, pages, or comments. It's identical with the Word Censors in SMF Forum Software.</p><p><strong>Readme:</strong></p><p><strong>=== Word Replacer ===</strong><br
/> Contributors: takien<br
/> Donate link: <a
href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&#038;business=BL7ERUY46HPL8&#038;lc=ID&#038;item_name=WP%20Spry%20Menu%20Plugin&#038;currency_code=USD&#038;bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted">Donate</a><br
/> Tags: replacer, post, comment, page, replace, censor, bbcode, filter<br
/> Requires at least: 2.9<br
/> Tested up to: 2.9.1<br
/> Stable tag: 0.1</p><p>Replace word in post, page, or comment.</p><p><strong>== Description ==</strong></p><p>Word Replacer is a WordPress plugins to replace any desired text/word with your choice. You can filter which content to be replaced, eg. only in page, comment, or post. With very userfriendly administration page you can manage list of word eaasily. It's also can be used to censor any bad/vulgar words in your comment your your guest posting. It's simple but useful.</p><p><strong>Feature:</strong></p><p>* Userfriendly administration page.<br
/> * Define yourself what word to replace in where. (e.g. a word shoud be replaced in comment but not in post etc)<br
/> * Uses it's own database table, if you wish you can directly update/add/delete/import through your MySQL admin.</p><p><strong>== Installation ==</strong></p><p>The installation process.</p><p>1. Upload zipped plugin file  to the `/wp-content/plugins/` directory. Or Directly upload from your Plugin management page.<br
/> 2. Activate the plugin through the 'Plugins' menu in WordPress<br
/> 3. Go to Settings menu and you will see Word Replacer sub menu. Yeah, there are your playground.</p><p><strong>== Frequently Asked Questions ==</strong></p><p><strong>== Support RegeX ==</strong></p><p>No, at this time.</p><p><strong>== Screenshots ==</strong></p><div
id="attachment_586" class="wp-caption alignnone" style="width: 160px"><a
href="http://takien.com/wp-content/uploads/2010/02/screenshot-1.png"><img
src="http://takien.com/wp-content/uploads/2010/02/screenshot-1-150x150.png" alt="Word replacer" title="screenshot-1" width="150" height="150" class="size-thumbnail wp-image-586" /></a><p
class="wp-caption-text">Administration page where you can add/remove your word.</p></div><br
/> Administration page where you can add/remove your word.</p><p>== Changelog ==</p><p>= 0.1 =<br
/> * First release</p><p><strong>The code:</strong><br
/><div
class="refsect1"><h3 class="title">Code</h3><div
class="example"><p><strong>Word Replacer Source Code</strong></p><div
class="example-contents programlisting"><div
class="phpcode"><code><span
style="color: #000000"> <span
style="color: #0000BB">&lt;?php<br
/></span><span
style="color: #FF8000">/*<br
/>Plugin&nbsp;Name:&nbsp;Word&nbsp;Replacer<br
/>Plugin&nbsp;URI:&nbsp;http://wordpress.org/#<br
/>Description:&nbsp;Replace&nbsp;word&nbsp;in&nbsp;post,&nbsp;page,&nbsp;or&nbsp;comment<br
/>Author:&nbsp;Takien<br
/>Version:&nbsp;0.1<br
/>Author&nbsp;URI:&nbsp;http://takien.com/<br
/>*/<br
/><br
/>/*&nbsp;&nbsp;Copyright&nbsp;2010&nbsp;takien.com<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;program&nbsp;is&nbsp;free&nbsp;software;&nbsp;you&nbsp;can&nbsp;redistribute&nbsp;it&nbsp;and/or&nbsp;modify<br
/>&nbsp;&nbsp;&nbsp;&nbsp;it&nbsp;under&nbsp;the&nbsp;terms&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;as&nbsp;published&nbsp;by<br
/>&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;Free&nbsp;Software&nbsp;Foundation;&nbsp;either&nbsp;version&nbsp;2&nbsp;of&nbsp;the&nbsp;License,&nbsp;or<br
/>&nbsp;&nbsp;&nbsp;&nbsp;(at&nbsp;your&nbsp;option)&nbsp;any&nbsp;later&nbsp;version.<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;program&nbsp;is&nbsp;distributed&nbsp;in&nbsp;the&nbsp;hope&nbsp;that&nbsp;it&nbsp;will&nbsp;be&nbsp;useful,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;but&nbsp;WITHOUT&nbsp;ANY&nbsp;WARRANTY;&nbsp;without&nbsp;even&nbsp;the&nbsp;implied&nbsp;warranty&nbsp;of<br
/>&nbsp;&nbsp;&nbsp;&nbsp;MERCHANTABILITY&nbsp;or&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE.&nbsp;&nbsp;See&nbsp;the<br
/>&nbsp;&nbsp;&nbsp;&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;for&nbsp;more&nbsp;details.<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;For&nbsp;a&nbsp;copy&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License,&nbsp;write&nbsp;to&nbsp;the&nbsp;Free&nbsp;Software<br
/>&nbsp;&nbsp;&nbsp;&nbsp;Foundation,&nbsp;Inc.,&nbsp;59&nbsp;Temple&nbsp;Place,&nbsp;Suite&nbsp;330,&nbsp;Boston,&nbsp;MA&nbsp;&nbsp;02111-1307&nbsp;&nbsp;USA<br
/>*/<br
/><br
/></span><span
style="color: #007700">global&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">;<br
/>global&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">;<br
/><br
/></span><span
style="color: #0000BB">$word_replacer&nbsp;</span><span
style="color: #007700">=&nbsp;Array(<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'name'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #DD0000">'Word&nbsp;Replacer'</span><span
style="color: #007700">,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'version'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #DD0000">'0.1'</span><span
style="color: #007700">,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'table_name'&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">prefix&nbsp;</span><span
style="color: #007700">.&nbsp;</span><span
style="color: #DD0000">"word_replacer"</span><span
style="color: #007700">,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'base_name'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #DD0000">'wordreplacer'<br
/></span><span
style="color: #007700">);<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">_specialchar</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$string</span><span
style="color: #007700">)&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">htmlspecialchars</span><span
style="color: #007700">(</span><span
style="color: #0000BB">stripcslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$string</span><span
style="color: #007700">));<br
/>}<br
/><br
/>if(isset(</span><span
style="color: #0000BB">$_POST</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'submit'</span><span
style="color: #007700">]))&nbsp;{<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$_POST</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'id'</span><span
style="color: #007700">];<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$original&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$_POST</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'original'</span><span
style="color: #007700">];<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$replacement&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$_POST</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'replacer'</span><span
style="color: #007700">];<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_posts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$_POST</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_posts'</span><span
style="color: #007700">];<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_comments&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$_POST</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_comments'</span><span
style="color: #007700">];<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_pages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$_POST</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_pages'</span><span
style="color: #007700">];<br
/><br
/></span><span
style="color: #0000BB">$numfield&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">count</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">);<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(</span><span
style="color: #0000BB">$i&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">1</span><span
style="color: #007700">;&nbsp;</span><span
style="color: #0000BB">$i&nbsp;</span><span
style="color: #007700">&lt;&nbsp;=&nbsp;</span><span
style="color: #0000BB">$numfield</span><span
style="color: #007700">;&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">++)&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;if(!empty(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">])&nbsp;&amp;&amp;&nbsp;empty(</span><span
style="color: #0000BB">$id</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]))&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">query</span><span
style="color: #007700">(&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">prepare</span><span
style="color: #007700">(&nbsp;</span><span
style="color: #DD0000">"<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INSERT&nbsp;INTO&nbsp;"</span><span
style="color: #007700">.</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">].</span><span
style="color: #DD0000">"<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(original,&nbsp;replacement,&nbsp;in_posts,&nbsp;in_comments,&nbsp;in_pages)<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VALUES&nbsp;(%s,&nbsp;%s,&nbsp;%s,&nbsp;%s,&nbsp;%s)"</span><span
style="color: #007700">,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$replacement</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$in_posts</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$in_comments</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$in_pages</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]))));<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$message&nbsp;</span><span
style="color: #007700">=&nbsp;&nbsp;</span><span
style="color: #DD0000">'<br
/>&lt;div&nbsp;id="message"&nbsp;class="updated&nbsp;fade"&gt;<br
/><br
/>&lt;strong&gt;Word&nbsp;Inserted.&lt;/strong&gt;<br
/>&lt;/div&gt;<br
/><br
/>'</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>&nbsp;&nbsp;&nbsp;&nbsp;elseif(empty(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">])&nbsp;&amp;&amp;&nbsp;!empty(</span><span
style="color: #0000BB">$id</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]))&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">query</span><span
style="color: #007700">(</span><span
style="color: #DD0000">"<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DELETE&nbsp;FROM&nbsp;"</span><span
style="color: #007700">.</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">].</span><span
style="color: #DD0000">"&nbsp;WHERE&nbsp;id&nbsp;=&nbsp;'"</span><span
style="color: #007700">.</span><span
style="color: #0000BB">$id</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">].</span><span
style="color: #DD0000">"'"</span><span
style="color: #007700">);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$message&nbsp;</span><span
style="color: #007700">=&nbsp;&nbsp;</span><span
style="color: #DD0000">'<br
/>&lt;div&nbsp;id="message"&nbsp;class="updated&nbsp;fade"&gt;<br
/><br
/>&lt;strong&gt;Word&nbsp;Deleted.&lt;/strong&gt;<br
/>&lt;/div&gt;<br
/><br
/>'</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>&nbsp;&nbsp;&nbsp;&nbsp;elseif(!empty(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">])&nbsp;&amp;&amp;&nbsp;!empty(</span><span
style="color: #0000BB">$id</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]))&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">update</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">],<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(</span><span
style="color: #DD0000">'original'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'replacement'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$replacement</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'in_posts'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$in_posts</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'in_comments'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$in_comments</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]),<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">'in_pages'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$in_pages</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">])<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span
style="color: #DD0000">'id'&nbsp;</span><span
style="color: #007700">=&gt;&nbsp;</span><span
style="color: #0000BB">$id</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;),&nbsp;array(&nbsp;</span><span
style="color: #DD0000">'%s'</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #DD0000">'%s'</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #DD0000">'%s'</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #DD0000">'%s'</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #DD0000">'%s'</span><span
style="color: #007700">),&nbsp;array(&nbsp;</span><span
style="color: #DD0000">'%d'&nbsp;</span><span
style="color: #007700">)&nbsp;);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$message&nbsp;</span><span
style="color: #007700">=&nbsp;&nbsp;</span><span
style="color: #DD0000">'<br
/>&lt;div&nbsp;id="message"&nbsp;class="updated&nbsp;fade"&gt;<br
/><br
/>&lt;strong&gt;Word&nbsp;Updated.&lt;/strong&gt;<br
/>&lt;/div&gt;<br
/><br
/>'</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>}<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">word_replacer_install&nbsp;</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">;<br
/><br
/>&nbsp;&nbsp;&nbsp;if(</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">get_var</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'show&nbsp;tables&nbsp;like&nbsp;"'</span><span
style="color: #007700">.</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">].</span><span
style="color: #DD0000">'"'</span><span
style="color: #007700">)&nbsp;!=&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">])&nbsp;{<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$sql&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #DD0000">"CREATE&nbsp;TABLE&nbsp;"&nbsp;</span><span
style="color: #007700">.&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">]&nbsp;.&nbsp;</span><span
style="color: #DD0000">"&nbsp;(<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id&nbsp;mediumint(9)&nbsp;NOT&nbsp;NULL&nbsp;AUTO_INCREMENT,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;original&nbsp;VARCHAR(200)&nbsp;NOT&nbsp;NULL,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;replacement&nbsp;VARCHAR(200)&nbsp;NOT&nbsp;NULL,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in_posts&nbsp;VARCHAR(5)&nbsp;NOT&nbsp;NULL,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in_comments&nbsp;VARCHAR(5)&nbsp;NOT&nbsp;NULL,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in_pages&nbsp;VARCHAR(5)&nbsp;NOT&nbsp;NULL,<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UNIQUE&nbsp;KEY&nbsp;id&nbsp;(id)<br
/>&nbsp;&nbsp;&nbsp;&nbsp;);"</span><span
style="color: #007700">;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require_once(</span><span
style="color: #0000BB">ABSPATH&nbsp;</span><span
style="color: #007700">.&nbsp;</span><span
style="color: #DD0000">'wp-admin/includes/upgrade.php'</span><span
style="color: #007700">);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">dbDelta</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$sql</span><span
style="color: #007700">);<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$badword&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #DD0000">"badword"</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$properword&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #DD0000">"goodword"</span><span
style="color: #007700">;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$insert&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #DD0000">"INSERT&nbsp;INTO&nbsp;"&nbsp;</span><span
style="color: #007700">.&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">]&nbsp;.<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">"&nbsp;(original,&nbsp;replacement,&nbsp;in_posts,&nbsp;in_comments,&nbsp;in_pages)&nbsp;"&nbsp;</span><span
style="color: #007700">.<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #DD0000">"VALUES&nbsp;('"&nbsp;</span><span
style="color: #007700">.&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$badword</span><span
style="color: #007700">)&nbsp;.&nbsp;</span><span
style="color: #DD0000">"','"&nbsp;</span><span
style="color: #007700">.&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">escape</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$properword</span><span
style="color: #007700">)&nbsp;.&nbsp;</span><span
style="color: #DD0000">"','yes','yes','yes')"</span><span
style="color: #007700">;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$results&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">query</span><span
style="color: #007700">(&nbsp;</span><span
style="color: #0000BB">$insert&nbsp;</span><span
style="color: #007700">);<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">add_option</span><span
style="color: #007700">(</span><span
style="color: #DD0000">"word_replacer_ver"</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'version'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;}<br
/>}<br
/><br
/></span><span
style="color: #0000BB">register_activation_hook</span><span
style="color: #007700">(</span><span
style="color: #0000BB">__FILE__</span><span
style="color: #007700">,</span><span
style="color: #DD0000">'word_replacer_install'</span><span
style="color: #007700">);<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">word_replacer_db</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">-&gt;</span><span
style="color: #0000BB">get_results</span><span
style="color: #007700">(</span><span
style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;"</span><span
style="color: #007700">.</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'table_name'</span><span
style="color: #007700">].</span><span
style="color: #DD0000">"&nbsp;ORDER&nbsp;BY&nbsp;id"</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">ARRAY_A</span><span
style="color: #007700">);<br
/>}<br
/><br
/></span><span
style="color: #FF8000">//&nbsp;for&nbsp;content&nbsp;<br
/><br
/></span><span
style="color: #007700">function&nbsp;</span><span
style="color: #0000BB">word_replacer_postpage</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$content</span><span
style="color: #007700">)&nbsp;{<br
/></span><span
style="color: #0000BB">$i&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">1</span><span
style="color: #007700">;<br
/>foreach(</span><span
style="color: #0000BB">word_replacer_db</span><span
style="color: #007700">()&nbsp;as&nbsp;</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">)&nbsp;{<br
/></span><span
style="color: #0000BB">$i</span><span
style="color: #007700">++;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'original'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$replacement</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'replacement'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_posts</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_posts'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_comments</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_comments'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_pages</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_pages'</span><span
style="color: #007700">]);<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span
style="color: #0000BB">is_page</span><span
style="color: #007700">()&nbsp;&amp;&amp;&nbsp;(</span><span
style="color: #0000BB">$in_pages</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;==&nbsp;</span><span
style="color: #DD0000">'yes'</span><span
style="color: #007700">))&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$content&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">str_replace</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">],</span><span
style="color: #0000BB">$replacement</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">],</span><span
style="color: #0000BB">$content</span><span
style="color: #007700">);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>&nbsp;&nbsp;&nbsp;&nbsp;elseif(!</span><span
style="color: #0000BB">is_page</span><span
style="color: #007700">()&nbsp;&amp;&amp;&nbsp;(</span><span
style="color: #0000BB">$in_posts</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;==&nbsp;</span><span
style="color: #DD0000">'yes'</span><span
style="color: #007700">))&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$content&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">str_replace</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">],</span><span
style="color: #0000BB">$replacement</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">],</span><span
style="color: #0000BB">$content</span><span
style="color: #007700">);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/><br
/>}<br
/>return&nbsp;</span><span
style="color: #0000BB">$content</span><span
style="color: #007700">;<br
/>}<br
/><br
/></span><span
style="color: #FF8000">//&nbsp;for&nbsp;comment<br
/></span><span
style="color: #007700">function&nbsp;</span><span
style="color: #0000BB">word_replacer_comment</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$content</span><span
style="color: #007700">)&nbsp;{<br
/></span><span
style="color: #0000BB">$i&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">1</span><span
style="color: #007700">;<br
/>foreach(</span><span
style="color: #0000BB">word_replacer_db</span><span
style="color: #007700">()&nbsp;as&nbsp;</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">)&nbsp;{<br
/></span><span
style="color: #0000BB">$i</span><span
style="color: #007700">++;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'original'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$replacement</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'replacement'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_posts</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_posts'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_comments</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_comments'</span><span
style="color: #007700">]);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$in_pages</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span
style="color: #0000BB">stripslashes</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'in_pages'</span><span
style="color: #007700">]);<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span
style="color: #0000BB">$in_comments</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;==&nbsp;</span><span
style="color: #DD0000">'yes'</span><span
style="color: #007700">)&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">$content&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">str_replace</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$original</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">],</span><span
style="color: #0000BB">$replacement</span><span
style="color: #007700">[</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">],</span><span
style="color: #0000BB">$content</span><span
style="color: #007700">);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>&nbsp;&nbsp;&nbsp;&nbsp;}<br
/>return&nbsp;</span><span
style="color: #0000BB">$content</span><span
style="color: #007700">;<br
/>}<br
/><br
/></span><span
style="color: #0000BB">add_filter</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'comment_text'</span><span
style="color: #007700">,</span><span
style="color: #DD0000">'word_replacer_comment'</span><span
style="color: #007700">);<br
/></span><span
style="color: #0000BB">add_filter</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'the_content'</span><span
style="color: #007700">,</span><span
style="color: #DD0000">'word_replacer_postpage'</span><span
style="color: #007700">);<br
/></span><span
style="color: #0000BB">add_action</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'admin_menu'</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #DD0000">'word_replacer_add_page'</span><span
style="color: #007700">);<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">word_replacer_add_page</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">add_options_page</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$word_replacer&nbsp;</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'name'</span><span
style="color: #007700">],&nbsp;</span><span
style="color: #0000BB">$word_replacer&nbsp;</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'name'</span><span
style="color: #007700">],&nbsp;</span><span
style="color: #DD0000">'administrator'</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #DD0000">'wordreplacer'</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #DD0000">'word_replacer_page'</span><span
style="color: #007700">);<br
/>}<br
/><br
/>function&nbsp;</span><span
style="color: #0000BB">word_replacer_page</span><span
style="color: #007700">()&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;</span><span
style="color: #0000BB">$wpdb</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">,&nbsp;</span><span
style="color: #0000BB">$message</span><span
style="color: #007700">;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span
style="color: #DD0000">'<br
/>&lt;div&nbsp;class="wrap"&gt;<br
/>&lt;h2&gt;'</span><span
style="color: #007700">.</span><span
style="color: #0000BB">$word_replacer&nbsp;</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'name'</span><span
style="color: #007700">].</span><span
style="color: #DD0000">'&lt;/h2&gt;<br
/><br
/>'</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span
style="color: #0000BB">$message</span><span
style="color: #007700">;<br
/></span><span
style="color: #0000BB">?&gt;<br
/></span><br
/>&lt;script&nbsp;language="Javascript"&nbsp;type="text/javascript"&gt;<br
/>&lt;!--<br
/>function&nbsp;addField(area,field,limit)&nbsp;{<br
/>&nbsp;&nbsp;&nbsp;&nbsp;if(!document.getElementById)&nbsp;return;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;field_area&nbsp;=&nbsp;document.getElementById(area);<br
/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;all_inputs&nbsp;=&nbsp;field_area.getElementsByTagName("input");<br
/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;last_item&nbsp;=&nbsp;all_inputs.length&nbsp;-&nbsp;1;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;last&nbsp;=&nbsp;all_inputs[last_item].id;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;count&nbsp;=&nbsp;Number(last.split("_")[1])&nbsp;+&nbsp;1;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;if(count&nbsp;&gt;&nbsp;limit&nbsp;&amp;&amp;&nbsp;limit&nbsp;&gt;&nbsp;0)&nbsp;return;<br
/><br
/>&nbsp;&nbsp;&nbsp;&nbsp;field_area.innerHTML&nbsp;+=&nbsp;"<br
/>&lt;tr&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;type='hidden'&nbsp;name='id[]'&nbsp;value=''&nbsp;/&gt;<br
/>&lt;input&nbsp;style='width:100%'&nbsp;name='original[]'&nbsp;type='text'&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;&nbsp;=&gt;&nbsp;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;style='width:100%'&nbsp;name='replacer[]'&nbsp;type='text'&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;value='yes'&nbsp;name='in_posts[]'&nbsp;type='checkbox'&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;value='yes'&nbsp;name='in_comments[]'&nbsp;type='checkbox'&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;value='yes'&nbsp;name='in_pages[]'&nbsp;type='checkbox'&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;/tr&gt;<br
/><br
/>";<br
/><br
/>}<br
/>//--&gt;<br
/>&lt;/script&gt;<br
/><br
/><span
style="color: #0000BB">&lt;?php<br
/>$action_url&nbsp;</span><span
style="color: #007700">=&nbsp;</span><span
style="color: #0000BB">$_SERVER</span><span
style="color: #007700">[</span><span
style="color: #0000BB">PHP_SELF</span><span
style="color: #007700">]&nbsp;.&nbsp;</span><span
style="color: #DD0000">'?page='&nbsp;</span><span
style="color: #007700">.&nbsp;</span><span
style="color: #0000BB">$word_replacer</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'base_name'</span><span
style="color: #007700">];<br
/><br
/></span><span
style="color: #0000BB">?&gt;<br
/></span><br
/>Put&nbsp;the&nbsp;word&nbsp;to&nbsp;be&nbsp;replaced&nbsp;on&nbsp;the&nbsp;left,&nbsp;and&nbsp;what&nbsp;to&nbsp;change&nbsp;it&nbsp;to&nbsp;on&nbsp;the&nbsp;right.<br
/>&lt;form&nbsp;method="post"&nbsp;action="<span
style="color: #0000BB">&lt;?php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$action_url</span><span
style="color: #007700">;</span><span
style="color: #0000BB">?&gt;</span>"&gt;<br
/>&lt;table&nbsp;class="widefat&nbsp;fixed"&nbsp;width="650"&nbsp;align="center"&nbsp;id="word-replacer-list"&nbsp;width="100%"&gt;<br
/>&lt;thead&gt;<br
/><span
style="color: #0000BB">&lt;?php&nbsp;wp_nonce_field</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'update-options'</span><span
style="color: #007700">);&nbsp;</span><span
style="color: #0000BB">?&gt;<br
/></span>&lt;tr&gt;<br
/>&lt;th&gt;Original&lt;/th&gt;<br
/>&lt;th&nbsp;width="20"&gt; &lt;/th&gt;<br
/>&lt;th&gt;Replacement&lt;/th&gt;<br
/>&lt;th&nbsp;width="80"&gt;Posts&lt;/th&gt;<br
/>&lt;th&nbsp;width="80"&gt;Comments&lt;/th&gt;<br
/>&lt;th&nbsp;width="80"&gt;Pages&lt;/th&gt;<br
/>&lt;/tr&gt;<br
/>&lt;/thead&gt;<br
/><br
/><span
style="color: #0000BB">&lt;?php<br
/>$i&nbsp;</span><span
style="color: #007700">=&nbsp;-</span><span
style="color: #0000BB">1</span><span
style="color: #007700">;<br
/><br
/>foreach(</span><span
style="color: #0000BB">word_replacer_db</span><span
style="color: #007700">()&nbsp;as&nbsp;</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">)&nbsp;{&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">++&nbsp;</span><span
style="color: #0000BB">?&gt;<br
/>&lt;?php&nbsp;$alternate&nbsp;</span><span
style="color: #007700">=&nbsp;(empty(</span><span
style="color: #0000BB">$alternate</span><span
style="color: #007700">)&nbsp;?&nbsp;</span><span
style="color: #DD0000">'class="alternate"'&nbsp;</span><span
style="color: #007700">:&nbsp;</span><span
style="color: #DD0000">''</span><span
style="color: #007700">);</span><span
style="color: #0000BB">?&gt;<br
/></span>&lt;tr&nbsp;<span
style="color: #0000BB">&lt;?php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$alternate</span><span
style="color: #007700">;</span><span
style="color: #0000BB">?&gt;</span>&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;type="hidden"&nbsp;name="id[]"&nbsp;value="<span
style="color: #0000BB">&lt;?php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'id'</span><span
style="color: #007700">];&nbsp;?/&gt;</span><span
style="color: #DD0000">"&nbsp;/&gt;<br
/>&lt;input&nbsp;style="</span><span
style="color: #0000BB">width</span><span
style="color: #007700">:</span><span
style="color: #0000BB">100</span><span
style="color: #007700">%</span><span
style="color: #DD0000">"&nbsp;type="</span><span
style="color: #0000BB">text</span><span
style="color: #DD0000">"&nbsp;name="</span><span
style="color: #0000BB">original</span><span
style="color: #007700">[&lt;?</span><span
style="color: #0000BB">php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">;?/&gt;]</span><span
style="color: #DD0000">"&nbsp;id="</span><span
style="color: #0000BB">original_</span><span
style="color: #007700">&lt;?</span><span
style="color: #0000BB">php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">;</span><span
style="color: #0000BB">?&gt;</span>"&nbsp;value="<span
style="color: #0000BB">&lt;?php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">_specialchar</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'original'</span><span
style="color: #007700">])&nbsp;</span><span
style="color: #0000BB">?&gt;</span>"&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;&nbsp;=&gt;&nbsp;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;style="width:100%"&nbsp;type="text"&nbsp;name="replacer[<span
style="color: #0000BB">&lt;?php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">;?/&gt;]</span><span
style="color: #DD0000">"&nbsp;value="</span><span
style="color: #007700">&lt;?</span><span
style="color: #0000BB">php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">_specialchar</span><span
style="color: #007700">(</span><span
style="color: #0000BB">$wrdb</span><span
style="color: #007700">[</span><span
style="color: #DD0000">'replacement'</span><span
style="color: #007700">])&nbsp;</span><span
style="color: #0000BB">?&gt;</span>"&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;value="yes"&nbsp;name="in_posts[<span
style="color: #0000BB">&lt;?php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">;?/&gt;]</span><span
style="color: #DD0000">"&nbsp;&lt;?php&nbsp;echo&nbsp;(($wrdb['in_posts']&nbsp;==&nbsp;'yes')&nbsp;?&nbsp;'checked="</span><span
style="color: #0000BB">checked</span><span
style="color: #DD0000">"'&nbsp;:&nbsp;'');&nbsp;?&gt;&nbsp;type="</span><span
style="color: #0000BB">checkbox</span><span
style="color: #DD0000">"&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;value="</span><span
style="color: #0000BB">yes</span><span
style="color: #DD0000">"&nbsp;name="</span><span
style="color: #0000BB">in_comments</span><span
style="color: #007700">[&lt;?</span><span
style="color: #0000BB">php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">;?/&gt;]</span><span
style="color: #DD0000">"&nbsp;&lt;?php&nbsp;echo&nbsp;(($wrdb['in_comments']&nbsp;==&nbsp;'yes')&nbsp;?&nbsp;'checked="</span><span
style="color: #0000BB">checked</span><span
style="color: #DD0000">"'&nbsp;:&nbsp;'');&nbsp;?&gt;&nbsp;type="</span><span
style="color: #0000BB">checkbox</span><span
style="color: #DD0000">"&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;td&gt;<br
/>&lt;input&nbsp;value="</span><span
style="color: #0000BB">yes</span><span
style="color: #DD0000">"&nbsp;name="</span><span
style="color: #0000BB">in_pages</span><span
style="color: #007700">[&lt;?</span><span
style="color: #0000BB">php&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span
style="color: #0000BB">$i</span><span
style="color: #007700">;?/&gt;]</span><span
style="color: #DD0000">"&nbsp;&lt;?php&nbsp;echo&nbsp;(($wrdb['in_pages']&nbsp;==&nbsp;'yes')&nbsp;?&nbsp;'checked="</span><span
style="color: #0000BB">checked</span><span
style="color: #DD0000">"'&nbsp;:&nbsp;'');&nbsp;?&gt;&nbsp;type="</span><span
style="color: #0000BB">checkbox</span><span
style="color: #DD0000">"&nbsp;/&gt;&lt;/td&gt;<br
/>&lt;/tr&gt;<br
/><br
/>&lt;?php&nbsp;}&nbsp;?&gt;<br
/>&lt;/table&gt;<br
/>&lt;input&nbsp;type="</span><span
style="color: #0000BB">button</span><span
style="color: #DD0000">"&nbsp;value="</span><span
style="color: #007700">+&nbsp;</span><span
style="color: #0000BB">Add&nbsp;More&nbsp;Fields</span><span
style="color: #DD0000">"&nbsp;style="</span><span
style="color: #0000BB">cursor</span><span
style="color: #007700">:</span><span
style="color: #0000BB">pointer</span><span
style="color: #DD0000">"&nbsp;onclick="</span><span
style="color: #0000BB">addField</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'word-replacer-list'</span><span
style="color: #007700">,</span><span
style="color: #DD0000">'original_'</span><span
style="color: #007700">,</span><span
style="color: #0000BB">0</span><span
style="color: #007700">);</span><span
style="color: #DD0000">"&nbsp;/&gt;<br
/>&lt;input&nbsp;type="</span><span
style="color: #0000BB">hidden</span><span
style="color: #DD0000">"&nbsp;name="</span><span
style="color: #0000BB">action</span><span
style="color: #DD0000">"&nbsp;value="</span><span
style="color: #0000BB">update</span><span
style="color: #DD0000">"&nbsp;/&gt;<br
/>&lt;input&nbsp;name="</span><span
style="color: #0000BB">submit</span><span
style="color: #DD0000">"&nbsp;class="</span><span
style="color: #0000BB">button</span><span
style="color: #007700">-</span><span
style="color: #0000BB">primary</span><span
style="color: #DD0000">"&nbsp;type="</span><span
style="color: #0000BB">submit</span><span
style="color: #DD0000">"&nbsp;value="</span><span
style="color: #007700">&lt;?</span><span
style="color: #0000BB">php&nbsp;_e</span><span
style="color: #007700">(</span><span
style="color: #DD0000">'Add/Update&nbsp;Words'</span><span
style="color: #007700">)&nbsp;?/&gt;</span><span
style="color: #DD0000">"&nbsp;/&gt;<br
/>&lt;/form&gt;<br
/><br
/>Instruction:<br
/><br
/><br
/>1.&nbsp;To&nbsp;&lt;b&gt;Add&nbsp;New&nbsp;Word&lt;/b&gt;&nbsp;click&nbsp;Add&nbsp;More&nbsp;Fields&nbsp;&nbsp;add&nbsp;your&nbsp;word,&nbsp;replacement&nbsp;and&nbsp;filter,&nbsp;then&nbsp;hit&nbsp;Add/Update&nbsp;Words.<br
/>2.&nbsp;To&nbsp;&lt;b&gt;Update&lt;/b&gt;&nbsp;a&nbsp;word,&nbsp;just&nbsp;replace/retype&nbsp;in&nbsp;it's&nbsp;place&nbsp;an&nbsp;hit&nbsp;Add/Update&nbsp;Words.<br
/>3.&nbsp;To&nbsp;&lt;b&gt;Delete&lt;/b&gt;&nbsp;a&nbsp;word,&nbsp;leave&nbsp;blank/clear&nbsp;word&nbsp;in&nbsp;"</span><span
style="color: #0000BB">original</span><span
style="color: #DD0000">"&nbsp;field&nbsp;and&nbsp;hit&nbsp;Add/Update&nbsp;Words.<br
/>&lt;/div&gt;<br
/><br
/>&lt;?php<br
/>}<br
/>?&gt;<br
/><br
/>&lt;p&gt;?&gt;</span> </span> </code></div></div></div></div></p><p><div
class="information"><strong>Download</strong><p><br
/> <strong><a
href="http://wordpress.org/extend/plugins/word-replacer/">Word Replacer 0.1 Download</a></strong><br
/></p></div><br
/><blockquote
class="sub_post" id="subpost_597"><h3>Feature Wishlist</h3><p>Here areÂ  some feature wish lists for Word Replacer Plugin based on user comments:</p><ul><li>Replace the title</li><li>Replace Case-insensitive</li></ul><p
class="postmetadata"><small>This sub post was added on: Saturday, 06th February, 2010 <a
href="" rel="nofollow">Edit</a></small></p></blockquote><blockquote
class="sub_post" id="subpost_593"><h3>Uploaded to WordPress.org</h3><p>This Word Replacer Plugin just approved and uploaded to WordPress Plugins Directory<br
/> Please see it in action, here.. <a
href="http://wordpress.org/extend/plugins/word-replacer/">http://wordpress.org/extend/plugins/word-replacer/</a> <img
src='http://takien.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p><em>Note: This post was posted by <a
href="http://takien.com/550/wordpress-plugin-wp-sub-post.php">WP Sub Post Plugin</a></em><p
class="postmetadata"><small>This sub post was added on: Thursday, 04th February, 2010 <a
href="" rel="nofollow">Edit</a></small></p></blockquote><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/replacer+wordpress" title="replacer wordpress">replacer wordpress</a></li><li><a
href="http://takien.com/search/word+replacer" title="word replacer">word replacer</a></li><li><a
href="http://takien.com/search/w3+total+cache+error+minify+error+unterminated+string" title="W3 Total Cache Error: Minify error: Unterminated String:">W3 Total Cache Error: Minify error: Unterminated String:</a></li><li><a
href="http://takien.com/search/wordpress+blogs" title="wordpress blogs">wordpress blogs</a></li><li><a
href="http://takien.com/search/wordpress+censor+words" title="wordpress censor words">wordpress censor words</a></li><li><a
href="http://takien.com/search/where+can+you+find+word+replcaement" title="where can you find word replcaement">where can you find word replcaement</a></li><li><a
href="http://takien.com/search/wordpress+replace+words" title="wordpress replace words">wordpress replace words</a></li><li><a
href="http://takien.com/search/wordpress+plugin+replace+words+in+title" title="wordpress plugin replace words in title">wordpress plugin replace words in title</a></li><li><a
href="http://takien.com/search/wpdb+escape+in+wordpress+plugin" title="wpdb->escape in wordpress plugin">wpdb->escape in wordpress plugin</a></li><li><a
href="http://takien.com/search/wordpress+filter+bad+words+post" title="wordpress filter bad words post">wordpress filter bad words post</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/587/word-replacer-wordpress-plugin.php/feed</wfw:commentRss> <slash:comments>36</slash:comments> </item> <item><title>Cerita Remaja Kini</title><link>http://takien.com/564/cerita-remaja-kini.php</link> <comments>http://takien.com/564/cerita-remaja-kini.php#comments</comments> <pubDate>Fri, 29 Jan 2010 05:13:41 +0000</pubDate> <dc:creator>takien</dc:creator> <category><![CDATA[Unknown]]></category> <category><![CDATA[anak muda]]></category> <category><![CDATA[cerita]]></category> <category><![CDATA[remaja]]></category> <category><![CDATA[xpresi]]></category><guid
isPermaLink="false">http://takien.com/?p=564</guid> <description><![CDATA[Ikuti terus cerita dan tips-tips buat remaja di Halaman Xpresi Harian Sumut Pos. Halaman ini terbit setiap hari (kecuali hari Minggu) di halaman 24 Harian Sumut Pos. Terus bagi kamu-kamu kamu sobat Xpresi (sobeX) yang caem dan ganteng. Kalian bisa bergabung di Tim Xpresi Harian Sumut Pos untuk mengisi dan mewarnai halaman Xpresi. Kesempatan terbatas [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_565" class="wp-caption alignright" style="width: 186px"><a
href="http://takien.com/wp-content/uploads/2010/01/xpresi-sumut-pos.jpg"><img
class="size-full wp-image-565 " title="xpresi-sumut-pos" src="http://takien.com/wp-content/uploads/2010/01/xpresi-sumut-pos.jpg" alt="medan, sumut, sumut pos, xpresi" width="176" height="80" /></a><p
class="wp-caption-text">xpresi sumut pos</p></div><p>Ikuti terus cerita dan tips-tips buat remaja di Halaman <strong>Xpresi Harian Sumut Pos.</strong> Halaman ini terbit setiap hari (kecuali hari Minggu) di halaman 24 Harian Sumut Pos.</p><p>Terus bagi kamu-kamu kamu sobat Xpresi (sobeX) yang caem dan ganteng. Kalian bisa bergabung di Tim Xpresi Harian Sumut Pos untuk mengisi dan mewarnai halaman Xpresi.</p><p>Kesempatan terbatas ini khusus buat kamu-kamu anak SMU atau anak kampus yang masih duduk di tahun pertama. Kalau lulus seleksi, kamu berhak mengikuti pelatihan singkat dan mendapatkan pengalaman seru ikut mengasuh halaman Xpresi. Masih ada lagi bonusnya, Kak sobeX akan kasih kamu uang Rp500 ribu per bulan. Lumayan lho untuk tambah-tambah memenuhi kebutuhan.</p><p>Selengkapnya silahkan cek TKP <a
href="http://www.hariansumutpos.com/rubrik/xpresi">http://www.hariansumutpos.com/rubrik/xpresi</a></p><h4>Incoming search terms:</h4><ul><li><a
href="http://takien.com/search/cerita+remaja" title="cerita remaja">cerita remaja</a></li><li><a
href="http://takien.com/search/remaja" title="remaja">remaja</a></li><li><a
href="http://takien.com/search/cerita+anak+muda" title="cerita anak muda">cerita anak muda</a></li><li><a
href="http://takien.com/search/cerita" title="CERITA">CERITA</a></li><li><a
href="http://takien.com/search/cerita+remaja+kini" title="cerita remaja kini">cerita remaja kini</a></li><li><a
href="http://takien.com/search/remaja+kini" title="remaja kini">remaja kini</a></li><li><a
href="http://takien.com/search/www+cerita+remaja+com" title="www cerita remaja com">www cerita remaja com</a></li><li><a
href="http://takien.com/search/cerita+cerita+remaja" title="cerita cerita remaja">cerita cerita remaja</a></li><li><a
href="http://takien.com/search/cerita+anak+remaja" title="cerita anak remaja">cerita anak remaja</a></li><li><a
href="http://takien.com/search/ceritaremaja" title="ceritaremaja">ceritaremaja</a></li></ul>]]></content:encoded> <wfw:commentRss>http://takien.com/564/cerita-remaja-kini.php/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 61/72 queries in 0.013 seconds using disk

Served from: takien.com @ 2010-07-29 18:35:09 -->