WordPress 2.5.1 With Alex King Popularity Contest Plugins

1 Vote down Vote up


Article Source: JunkieYard Dot Com

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark




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. :cool:

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. :w00t:

Popularity: 57%


bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Article Source: JunkieYard Dot Com

If you like all this stuff here then you can buy me a pack of cigarettes.

Rate this:
1.4

Related Posts

About the Author

JYDC Admin (Check me out!)

JYDC Administrator.

6 Responses to “WordPress 2.5.1 With Alex King Popularity Contest Plugins”

  1. I did the suggested workaround from Alex King and Popularity Contest plugin worked for my blog. :)

    Rais last blog post… How PayPerPost Works For Me

    Rate this:
    2.5

    [Reply]

  2. I was thinking that it was a post about making a plugin for a contest :dizzy:
    Rate this:
    2.2

    [Reply]

    JYDC Admin (Check me out!) reply on May 19th, 2008 2:58 am:

    :lol: It’s a plugins to show your most popular post just like a contest :biggrin:
    Rate this:
    3.2

    [Reply]

  3. I’ve heard about this, haven’t tried it out yet. Thanks for the tip!

    RegretfulMornings last blog post… Regretful Submission - Bare feet n’ Baby Batter

    Rate this:
    2.5

    [Reply]

  4. Rate this:
    3.2

    [Reply]

  5. I would have liked to make use of such a plugin. Great thing I read your post about the popularity contest plugin first. Thanks.

    :cool:

    Rate this:
    2.2

    [Reply]

Leave a Reply

:alien: :angel: :angry: :blink: :blush: :cheerful: :cool: :cwy: :devil: :dizzy: :ermm: :face: :getlost: :biggrin: :happy: :heart: :kissing: :lol: :ninja: :pinch: :pouty: :sad: :shocked: :sick: :sideways: :silly: :sleeping: :smile: :tongue: :unsure: :w00t: :wassat: :whistle: :wink: :wub:

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>