WordPress 2.5.1 With Alex King Popularity Contest Plugins
Article Source: JunkieYard Dot Com
As some of you might have noticed that we’re currently using the Popularity Contest plugins for WordPress by Alex King . There’s been a lot of controversial issues about this plugins compatibility with WordPress 2.5 and above. Some says that it could not be activated when you’re using the latest version of WordPress 2.5.1 and some says it gave a fatal error message after they have upgraded their WordPress.
The plugins author himself has noted that this plugins is boken in WordPress 2.5 and has a compatiblility issues with WordPress version 2.5 and above. You can read the "WordPress 2.5 Plugin Compatibility " page at the author’s website. He says that a fix has been found but it’s not released yet I think.
I’ve been searching for the fix to make the plugins work with WordPress 2.5.1 and finally found a way to make it works. I’ve found a blog somewhere (I forgot where I found it) and it says something about editing the plugins file and change the code in it and create a new table for the plugins. That won’t work if you’re a first time user of the plugins because the plugins will trigger an error saying that it can’t find the table for the plugins. But if you’re previously using the plugins and upgraded your WordPress then that method will work for you.
So, here’s a solutions that I’ve found. This will only work if you’re using WordPress 2.5 and above and never used the plugins before and it required you to have access to your phpMyAdmin to create a new table for the plugins. Now, log in to your phpMyAdmin and execute this command to create the table manually. BACKUP your database table first and always create a BACKUP of your database before you change anything.
CREATE TABLE `wp_ak_popularity_options`
(
`option_name` VARCHAR( 50 ) NOT NULL
, `option_value` VARCHAR( 50 ) NOT NULL
)
CREATE TABLE `wp_ak_popularity`
(
`post_id` INT( 11 ) NOT NULL
, `total` INT( 11 ) NOT NULL
, `feed_views` INT( 11 ) NOT NULL
, `home_views` INT( 11 ) NOT NULL
, `archive_views` INT( 11 ) NOT NULL
, `category_views` INT( 11 ) NOT NULL
, `single_views` INT( 11 ) NOT NULL
, `comments` INT( 11 ) NOT NULL
, `pingbacks` INT( 11 ) NOT NULL
, `trackbacks` INT( 11 ) NOT NULL
, `last_modified` DATETIME NOT NULL
, KEY `post_id` ( `post_id` )
)
Please NOTE that if you’re using a table PREFIX other than the default WordPress table PREFIX then you have to change the table PREFIX to your custom PREFIX. This code is for the default WordPress PREFIX "wp_" and after you’ve successfully created the database table then you just activate the plugins and it will works like a charm.
And this method is used if you’re previously using the plugins and upgraded your WordPress to version 2.5 and above. You need to edit the plugins file and make some change in it. Now, find this code in the plugins file.
if (!isset($wpdb)) {
require(’../../wp-blog-header.php’);
akpc_init();
}
And change it to this one.
if (!isset($wpdb)) {
require(’../wp-blog-header.php’);
akpc_init();
}
Then re-activate your plugins. It works for me.
Popularity: 57%
Article Source: JunkieYard Dot Com
If you like all this stuff here then you can buy me a pack of cigarettes.
| 1.4 |






Using
Rais last blog post… How PayPerPost Works For Me
[Reply]
Using
[Reply]
[Reply]
Using
RegretfulMornings last blog post… Regretful Submission - Bare feet n’ Baby Batter
[Reply]
Using
http://google.com
[Reply]
Using
[Reply]