<?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>Lester Chan's WordPress Plugins &#187; wpdb</title>
	<atom:link href="http://lesterchan.net/wordpress/tag/wpdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://lesterchan.net/wordpress</link>
	<description>Lester Chan's WordPress Plugins Development Blog</description>
	<lastBuildDate>Tue, 22 May 2012 12:02:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>My Plugins And WordPress 2.5</title>
		<link>http://lesterchan.net/wordpress/2008/03/20/my-plugins-and-wordpress-25/</link>
		<comments>http://lesterchan.net/wordpress/2008/03/20/my-plugins-and-wordpress-25/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 14:24:49 +0000</pubDate>
		<dc:creator>Lester Chan</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WP-Polls]]></category>
		<category><![CDATA[WP-ServerInfo]]></category>
		<category><![CDATA[WP-Sticky]]></category>
		<category><![CDATA[WP-UserOnline]]></category>
		<category><![CDATA[2.5]]></category>
		<category><![CDATA[prefix]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[wpdb]]></category>

		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=159</guid>
		<description><![CDATA[The current version of all my plugins will work on WordPress 2.5 PROVIDED you have upgraded your WordPress blog from WP 2.x to WP 2.5. If you are using a fresh copy of WordPress 2.5 together with my plugins, it &#8230; <a href="http://lesterchan.net/wordpress/2008/03/20/my-plugins-and-wordpress-25/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The current version of all my plugins will work on WordPress 2.5 <strong>PROVIDED</strong> you have upgraded your WordPress blog from WP 2.x to WP 2.5.</p>
<p>If you are using a fresh copy of WordPress 2.5 together with my plugins, it WILL NOT work as WordPress 2.5 changes the <a href="http://codex.wordpress.org/Migrating_Plugins_and_Themes#Activation_Global_Scope">Activation Global Scope Of The Plugins</a>. In simpler terms, it means that upon activation of my plugins in WP-Admin, it will not create the tables needed by the respective plugins.</p>
<p>To solve this problem temporary, do the following in <strong>polls.php</strong> (I am using WP-Polls as an example):</p>
<p><strong>Find:</strong></p>
<pre lang="php" line="1">
$wpdb->pollsq = $table_prefix.'pollsq';
$wpdb->pollsa = $table_prefix.'pollsa';
$wpdb->pollsip = $table_prefix.'pollsip';
</pre>
<p><strong>Replace:</strong></p>
<pre lang="php" line="1">
global $wpdb;
$wpdb->pollsq = $wpdb->prefix.'pollsq';
$wpdb->pollsa = $wpdb->prefix.'pollsa';
$wpdb->pollsip = $wpdb->prefix.'pollsip';
</pre>
<p>Note the addition of the &#8220;<strong>global $wpdb;</strong>&#8221; and the replacement of &#8220;$table_prefix&#8221; with &#8220;<strong>$wpdb->prefix</strong>&#8220;.</p>
<p>I have updated WP-Polls, WP-ServerInfo, WP-Sticky and WP-UserOnline to work with WordPress 2.5. You can get them here at <a href="http://lesterchan.net/wordpress/downloads/">my downloads page</a> (do note that they are still in beta). Those plugins that end with a &#8220;Beta 2&#8243; means it will work for WordPress 2.5.</p>
<p>Some of the updates are:</p>
<ul>
<li>Making sure that the styling, alignment and color of the plugin matches WordPress 2.5</li>
<li>Fixes the &#8220;Activation Global Scope&#8221; issue</li>
<li>Updated WP-Polls TinyMCE plugin to work with TinyMCE 3.0</li>
<li>Added a summary of WP-ServerInfo as a Dashboard Widget</li>
<li>Added a summary of WP-UserOnline in the Right Now Dashboard Widget</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://lesterchan.net/wordpress/2008/03/20/my-plugins-and-wordpress-25/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

