Popularity Contest 1.4 WordPress 2.6 Plugin Fixed and Hacked

31/08/2008
By

For the English version on clicking the flag to the right ->

Desde hace algun tiempo que el agregado de Popularity Contest dejo de funcionar. Supongo que el señor King no tiene tiempo para actualizarlo.

El dia de hoy me tome el tiempo para revisar el codigo del plugin y hacer los cambios necesarios. Es una lastima que un plugin tan popular se tire a la basura.Ya que en mi blog yo ya habia instalado versiones anteriores del plugin no fue necesario crear las tablas para la base de datos, pero si estas haciendo una instalacion nueva puede ser necesario correr este script contra tu base de datos:

    CREATE TABLE IF NOT EXISTS `PREFIX_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,
    KEY `post_id` (`post_id`)
    ) ENGINE=MyISAM;

    CREATE TABLE IF NOT EXISTS `PREFIX_ak_popularity_options` (
    `option_name` varchar(50) NOT NULL,
    `option_value` varchar(50) NOT NULL
    ) ENGINE=MyISAM;

Popularity Contest 1.4mod Download/Descarga

Update WordPress 3 support Download

Cambios:

  • Popularity Contest 1.4mod ha sido actualizado para soportar WordPress 2.6.1
  • Añadido akpc_most_popular_in_last_month () hack para mostrar los post más populares de los últimos 30 dí­as.

Por favor necesito informacion/reaccion de como ha funcionado el plugin, gracias.

Popularity: 3% [?]


Otros articulos de interes:

  1. Popularity Contest Plugin para WordPress
  2. WordPress actualización automática 2.7.1 – Cannot redeclare pclziputilpathreduction
  3. Super Cache – Como aumentar la velocidad de WordPress
  4. WordPress 2.3 Beta 1
  5. WordPress Update Script

Tags: lastima, option name, option value, popularity contest

16 Responses to Popularity Contest 1.4 WordPress 2.6 Plugin Fixed and Hacked

  1. Dinero Gratis Poker on 09/03/2011 at 20:11

    ¡Hola! una vez más llegó a su blog………Cuenta con más contenido ahora!felicitaciones!
    Yo me llamo André,un amigo blogger Portugues…….!

  2. Achuna on 04/11/2008 at 06:53

    How do I put these 2 line into phpMYadmin database table?

    KEY post_id (post_id)
    ) ENGINE=MyISAM;

  3. Byron on 26/10/2008 at 23:01

    Your code did the trick…I’ve got it working on a 2.6.3 blog. I had to cut the meat of your modded plugin and replace the original plugin’s code (everything except the header) to get it going. For some reason my Plugins page wasn’t seeing your plugin.

    Also, didn’t see the PREFIX in the database tables until after I’d run the SQL.

    After those tweaks, all is well (I think ;-)

    Thanks for the help!
    Cheers,
    Byron

  4. matt on 09/10/2008 at 11:42

    Hi,

    Thanks for the hard work. I modded your mod and added the “Create tables” script to the plugin so you do not have to manually make them anymore. Feel free to grab my hack and add the install() function to your mod.

    • fher98 on 05/01/2009 at 11:42

      Install function works.

  5. Cesar on 26/09/2008 at 12:06

    Hola, me sigue dando un error fatal.

    Baje el plugin original, despues ejecute la sentencias en la BD mediante phpMyAdmin exitosamente, fui al edito de plugins y borre todo lo que tenia y copie el codigo que proporcionas. Al momento de activarlo me salio el error

Leave a Reply

Your email address will not be published. Required fields are marked *

*