Archive for the 'Wordpress' Category

Wordpress plugin, WP interests : generate a chart of your interests

Wp interests screenshot 1

This is a very simple wordpress plugin that uses Google Chart API to create and display a chart of your interests on the basis of blog’s categories and posts.

Version : 0.1

Download : http://ardoino.com/pub/wordpress/wp-interests.zip

Installation

1. Unzip into your `/wp-content/plugins/` directory..
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Edit your current theme adding the few lines below (for example in siderbar.php)

    <?php
        $wp_interests = new wp_interests();
        $wp_interests->wpi();
    ?>

3.1. Defining size of the chart

        <?php
            // Chart width: 300px , height: 200px
            $wp_interests = new wp_interests();
            $wp_interests->wpi(array("size" => "300x200"));
        ?>

3.2. Defining excluded categories from chart

        <?php
            // Excluding 'Humor' and 'General' categories from chart
            $wp_interests = new wp_interests();
            $wp_interests->wpi(array("size" => "300x200", "exclude_cats" => array("Humor", "General")));
        ?>

3.3. Renaming long categories names in chart

        <?php
            // Renaming 'Ajax/Javascript' in 'Ajax/JS' and 'Crypto/Security' in 'Crypt/Sec'
            $wp_interests = new wp_interests();
            $wp_interests->wpi(array(
                "size" => "300x200",
                "exclude_cats" => array("Humor", "General"),
                "rename_cats" => array("Ajax/Javascript" => "Ajax/JS", "Crypto/Security" => "Crypt/Sec")
            ));
        ?>

3.4. For more options visit http://ardoino.com
4. That’s it!

Changelog :

  • 0.1 -> initial release