Gus SOS Brasil

Minhas dicas tecnológicas em Português claro!

 

 


 

Acabo de ler num blog a dica para tornar o plugin popularity contest compatível com o novo Wordpress 2.5.

Basta editar o arquivo popularity-contest.php e na linha 59 substituir a linha:

require(’../../wp-blog-header.php’);

por:

require('../wp-blog-header.php');

Depois ative o plugin. Note que se está ativando pela primeira vez, você tem que criar a tabela manualmente no mysql:

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;

Gostou? Compartilhe esta dica com seus seus amigos:
  • Facebook
  • email
  • Print
  • del.icio.us
  • Google Bookmarks
  • Twitter

Agradeça, Critique, Comente!

Comentários fechados.

Agradeça, Critique e Comente...

Bad Behavior has blocked 1535 access attempts in the last 7 days.