Oct
5
2006
I finally got a tag cloud

Never do I feel such a sense of accomplishment as I do when I spend over a week doing some hardcore coding, and logic thinking to finally see my finished product.  After several trials and errors I finally have a working tag cloud.  For those who don't know, a tag cloud pretty much shows what I post about the most.  The bigger the tag (category) in the cloud, the more post that are related to it.  You can check out an official definition of a tag cloud here.

Tag Cloud preview

You can check out my new tag cloud in the archives page.  Once you see my tag cloud then my definition should make more sense.  Currently the tag 'pc games' is the biggest tag which means I post most about pc games.  The purpose of a tag cloud is to help visitors find certain posts on your site.  Or to show them more popular ones.  More and more sites these days use tag clouds including Digg.com and personal sites like MattBrett.com.

I've been wanting to build a tag cloud for some time now.  I know I could code/create it no problem, but figuring out the logic or how it will work took the longest.  How would I set up the database?  How would I add tags, edit tags, delete tags, etc?  After several days, lots of trials and errors, and long long nights I finally figured out the logic behind it and was able to then begin the coding.

In the end I'm glad I built it.  I got to learn a lot about arrays in php (something I knew little to none about).

Author's Pic
// Article Summary
This article was published 3y 11mon ago on Thursday, October 05, 2006 10:22 pm by Nick Villescas. It was published under the following topics: Site News and with the following tags: coding, MySQL, PHP, tag cloud, updates. So far this article has received 653 hits with 2 comments.
2 comments
3y 5mon ago // March 22, 2007 7:38 pm
FPics // guest

Gravatar

You can employ more than one color with discretion.

One way to use colors in your cloud tag:
- select a main color, assign it to the biggest font;
- "blend" this color for smaller fonts.
A "coloring" example at


http://www.featurepics.com/editorial/tag-cloud.aspx

3y 5mon ago // March 23, 2007 9:49 pm
Nick Villescas // author

Gravatar

Really?

Maybe you should look at my tag cloud again. It already does that dude. The bigger fonts are a darker color while the little fonts are lighter....

Add your comment
// required


Allowed Tags // <a><ul><ol><li><strong><em><blockquote> // required


This form is protected from spam by Akismet. Comments are Gravatar enabled and also moderated.