Home » Archive

Articles Archive for December 2008

  Posted: Dec 27 | Filed under: Wordpress

Guide to fix popularity contest, a very popular WP Plugin!

Open popularity-contest.php and scroll down to line 59. Replace require(’../../wp-blog-header.php’); with require(’../wp-blog-header.php’);

If you get the following error:
wp_ak_popularity_options’ doesn’t exist on line: 124, then you will have to add the tables manually:

    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;

Enjoy the holidays!

  Posted: Dec 20 | Filed under: Javascript

If you want to retrieve various URL parameters without using PHP you can also do it via Javascript.

(more…)

  Posted: Dec 02 | Filed under: ModRewrite

Do you want to restrict access to certain folders only ?
Usually you will put a .htaccess into your main dir if your site should not be accesible to the public. That’s how you can easily avoid that it will get indexed by search engine spiders for example.
(more…)