Wordpress Plugin: Post in Clouds 0.8

Tagged: Wordpress Plugins Date: 25th, November 2006

Version 0.9 has been released.
Post in Clouds is Wordpress plugin that will display your blogs most popular posts in Tag Cloud anywhere on your blog. Plug-in in is inspired by Digg’s cloud view.
Most popular posts are found by number of unique views post has got.

Installation

To install Post in Clouds simply Download it and then upload to Wordpress Plugin directory. After you enable it in plugin section you are ready to go.
Edit header.php (in your templates dir) and paste fallowing lines at the very beginning of the file (must be on the first line, not even a blank space should be before it or you will get Output already started error).

session_start();
if (function_exists('countPostViewsX')) { countPostViewsX ();}

This will count all views your posts get.
Now place fallowing code anywhere where you wish to display Cloud with most popular posts:

if (function_exists('cloudOutput')) {
couldOutput($limitX=10,$min_font_size = 9,$max_font_size = 26);
}

You can change options how ever you want. $limitX is number of posts in cloud and font size is in pixels.
Simple right? :)

Demo can be found on this page just above comments section.

TODO

  • Write decent readme.txt
  • Make it possible to determine post popularity by number of comments it got

Well thats about it drop me a comment on how do you like it.

7 Responses to “Wordpress Plugin: Post in Clouds 0.8”

  1. Knowbies.com - Development and Marketing Weblog - Wordpress Plugin: Post in Clouds 0.9:

    [...] Post in Clouds plugin just got better and went up one version :). [...]

  2. Amber:

    In your second code box, you’ve typo’d the function call. It reads “couldOutput(…)”, but should read “cloudoutput(…)”. :)

  3. Stephanie:

    Hi,

    I found your plugin and I would install it in my blog. Unfortunately, I can’t do it.
    - I downloaded and uploaded it to Wordpress Plugin directory.
    - I edited “header.php”
    … and this error appears :
    Warning: Cannot modify header information – headers already sent by
    (output started at
    /homepages/24/d180675309/htdocs/wp-content/plugins/clouds.php:132) in
    /homepages/24/d180675309/htdocs/wp-includes/pluggable-functions.php on
    line 270
    Could you explain me very clearly what to do ? PHP is difficult for
    me… Thanks a lot
    Sorry for my english, I’m french !
    Cordially
    Stephanie

  4. Henk:

    would you be so kind to make a FAQ for dummy’s ? i uploaded the file.phps but nothing happens. then renamed the .phps to php and my site was all fucked up.

  5. Henk:

    when i’m installing the plugin ( phps to php ) i see the code in the plugin list and not a activate code :(

  6. Administrator:

    Activating the plugin

    Problem might be in comments or in removed

    Check to see if there is open

    If that doesn’t work try removing comments from beginning of the postInClouds.php file.

    PS
    sorry for late reply but I have been very very busy lately, ah too much work to be done.

  7. Alex:

    Thank You

Leave a Reply