In: , , , , ,
On: 2004 / 10 / 02
Shorter URL for this post: http://ozh.in/2q
Outdated stuff: this was written in 2004 for WordPress 1.1 or something. Does not work with modern versions of WordPress


Inspired by Extisp.icio.us, I've written a script that produces the same kind of results. Categories are randomly positionned, font size and colors show how many posts you have in each. Install the script, reload till you get something less random than pretty, then reload again :) Works best if you have a lot of categories with varying number of posts.

Get the script : either the .txt version and Save As .php, or copy & paste the colorized .php version into a blank file.

Shorter URL

Want to share or tweet this post? Please use this short URL: http://ozh.in/2q

Metastuff

This entry "WordPress Category Map" was posted on 02/10/2004 at 10:01 pm and is tagged with , , , , ,
Watch this discussion : Comments RSS 2.0.

30 Blablas

  1. omjn says:

    hi. i really dig your script, or at least, its intention. can't get it to work on my site at all. getting an unexpected TString parse error on line 24. any ideas?

  2. Ozh says:

    Hmmm, weird, the source shown here is the exact replica of my live example. I've also tested it on WP 1.2 and on a (rather old) nighlty build 1.3
    What's your version of WP ? You sure you didn't edit the script and forgot something ?

  3. omjn says:

    yeah, just a copy and paste. my site is default 1.2 install more or less. I'll have a more thorough attmept later today. I'm assuming when you say install the script you just mean drop it in the root of the WP install?

  4. Ozh says:

    Exactly, it is supposed to work with no editing, in your blog root. Maybe a phpinfo() will help if you can't get it to work.

  5. extisp.icio.us
    How can you not fall in love with the web? Followed a breadcrumb trail from PhotoMatt to planet Ozh to extisp.icio.us, entered my del.icio.us username as instructed, and was floored by the result. Way fucking cool.

  6. I think omjn's problem is because the script should be under wp-content and not wordpress root. Or he has to edit the script.

  7. Heatsink says:

    Check there are no blank lines at the end of your script. When you cut and paste there's a tendencey to take some blank lines at the end. I'm really not sure why, but this appears to cause the PHP engine some problems.

    I've had that happen to me twice, and deleting the blank lines at the bottom of the script cures it.

    Shrug..give it a whirl.

  8. Heatsink says:

    Any idea what's causing this error on my end:

    Parse error: parse error, unexpected T_STRING in /var/www/html/blog/wp-content/plugins/runphp.php(46) : eval()'d code on line 14

    ?? I've played with the code in run_php.php and it seems to be doing the right thing, but I don't really understand what the eval($phpcode) line does.

  9. Heatsink says:

    I should add that when I access the script directly from my browser it works fine – I only get this error when I try to incorporate it into a page.

  10. Ozh says:

    Sorry, not only I'm not using "runphp" but I didn't understand what you're trying to do :)
    But from what I see on your blog it seems to be running fine.

  11. Clarke says:

    Is there any way to include this file in a page somehow using php require or include commands? I would be editing it into a wordpress page and using the phpexec command I assume…

  12. Ozh says:

    Well, of course, you could simply include('wordpress-category-map.php'), but this would not make sense since the output is printed all over the page ….

  13. […] Mappa del blog Se usate WordPress, con questo script è possibile generare una mappa dei post, raggruppati per cat […]

  14. Lemmings sans mullet

    Zeldman has declared tag clouds as uncool as the mullet. What does this mean excactly? It means I had to bother to get one.

    So after a search for the easiest to impliment version, taa-daa, on the left you see my tag cloud, with the 'blog' tag excl…

  15. Prem says:

    I have just started testing this plugin. Very good work.

    It is good to be able to see the contents of a site in a more visual way than simple heirarchical lists.

    I have some ideas for some ways that this map could be taken further…

    A great addition would be to use the placement and proximity of different category words on the map. For example, if I categorise a particular post as "music" and "politics", then that will bring the "music" and "politics" categories slightly closer to each other on the map.

    This would take the map one step further – where at the moment it visually displays the volume of posts within each category, this extra step would be to also display the relationships that exist between the categories themselves. This relationship is created because posts are connecting points between different categories.

    The categories with the greatest volume of posts could be at the centre of the map, with lesser categories rdiating out from the centre.

    As an alternative, the "latest activity" of the site could be mapped, rather than the "total volume of posts". This would give another view into the site.

    You could also consider the number of comments made to posts within a particular category. So a category with a much more lively community of commentors could be understood by looking at the map. The category names could have differences in colour or boldness depending on how active the commenting is in that category.

    And again, you could consider "most recent commenting activity" as a differnt way to view the site.

    So, there you go… some ideas.
    It would be great to get some intelligent mapping happening. As a free software community, we can create something. I wonder if what I'm thinking about already exists out there.

    Something in the right direction (though not free software) ThinkMap.

    Prem.

  16. […] ts on the site and the relative differences in category size gets more pronounced. I have posted some comments the plugin's website, about […]

  17. Ozh says:

    Interesting comments & ideas. I guess I should consider adding them to my "to do or at least to think about" list ;)

  18. Gary says:

    Cool idea, but I think the random placement makes it seems strange. When I look at the list I try to make sense out of the placement.

    I like the idea of either volume, or most recent being a factor – and if I have two categories that show up in more posts than others those two categories should show up close together. Otherwise why not just do an alpha sort?

  19. conundrum says:

    Charting

    Nuovo anno, nuovo plugin per WordPress.

    Lo trovate qui, se avete WordPress.

  20. […] 一个类似于tag集的插件wordpress category map,担心显示中文有问题,还好我的map没有问题。 […]

  21. cifero says:

    great script!

    thankyou

  22. Joseph says:

    I see no directions on how to go about implimenting that script.

    Do you add it to plug ins onWP or do you access it via a link or what.

    Please be more specific and understand not everyone who reads these are as proficient in server side and script languages as some.

    Thanks.

  23. Ozh says:

    Joseph : you just put this file on your server, for example in /wp-content/, or edit its first line to change, if needed, the path to wp-blog-header.php

  24. Eliecia says:

    Hi Ozh,

    Can this script count the links in the "sidebar" as well..? Can you teach me how to modify? If it's possible can You kindly mail me Your reply..?

    Thanks a lot for Your attention…

    -Elie

  25. Ozh says:

    Sorry I don't even understand your question :/

  26. marco says:

    hi,
    my php file (wp-blog-header.php) is located in the main root (the exactle url is http://www.marcoziero.it/wp-blog-header.php);
    i modify your php file and i put this url (http://www.marcoziero.it/wp-blog-header.php) in the editable area.
    then i rename your php file in mappa-del-sito.php and i put it in the same root (http://www.marcoziero.it), but when i go to http://www.marcoziero.it/mappa-del-sito.php with my browser, it doesn't work.
    what can i do to make it works correctly?
    thanks

    marco from italy

  27. […] WordPress Category Map Plugin von planetozh.com erzeugt aus Kategorien eine Art Tag Wolke. Das Plugin läuft nur auf […]

  28. Levent says:

    I like the idea.
    And I wonder if this plugin can be still used?

  29. Ozh says:

    Levent » Check and tell us :) Probably not though, this was written a long time ago and several stuff have changed in WP since.

  30. Levent says:

    Sorry guys.
    I couldn't get it work on my page.
    Yet, it makes me happy to see ppl who took benefit of this tip (I'm lying)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar and sign for a free account
Spam: Various spam plugins may be activated. I'll put pins in a Voodoo doll if you spam me.

Read more ?

 Gmail stuff »