31 agosto, 2008
16 Comments
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.
Ā”Hola! una vez mĆ”s llegĆ³ a su blog………Cuenta con mĆ”s contenido ahora!felicitaciones!
Yo me llamo AndrĆ©,un amigo blogger Portugues…….!
How do I put these 2 line into phpMYadmin database table?
KEY post_id (post_id)
) ENGINE=MyISAM;
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
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.
Install function works.
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
Hello i dont understand what i have to do whit the file .txt ? I have to upload to w-content/plugin
The text file has been posted as an extra. You can edit your plugin via wordpress plugin editor then you copy/paste the txt file into the plugin to overwrite it.
Hola estoy probando este plugin en la versiĆĀ³n 2.6.2 y me da error fatal.
Se te puede ocurrir cual es el problema
Un saludo
Grabriel:
Si tengo instalada la 2.6.2, pero no me ha saco el error fatal. Ya lo tenias instalado anteriormente ? o es una instalacion nueva?
hi. thanks for update.
Best regards
Thanks you for downloading, glad to help you.
Hi
Glad to see someone has updated this plugin. I’ve a little problem since a few days with it, it seems it just doesn’t count newer post anymore. The rankings are like frozen … Any idea what could have happened ? I was using 1.3b3 on WP 2.6, everything was working fine. I hope that with your version it will work again, but i suspect the problem is somewhere else.
Hi Bertrand, thanks for your comment.
Mmm I had my info from way back, so im just using the las 30 days. As you can se on the right side bar this post its already on top. So I guess this version of the plugin is working.
Maybe you can post some feadback a couple of days later.
Cheers š
Thanks for the upgrade, had mine offline for a year!!!
I manage two blogs and with wordpress 2.5 and 2.6.1, thanks finally popularity contest works on both
Your welcome dude!