Adding a Tag cloud to a website

Adding a Tag Cloud to a website

I have use this as a test tool for one of my college technical event website.

source

http://www.lotsofcode.com/php/tutorials/tag-cloud

Its described clearly with a demo & a tutorial on how to add the tag cloud using PHP to a website. Adding hyperlinks to the tags ( tag cloud with links) is also easily customizable. It might be a bit confusing on the source site and here is how one can crack it.

After downloading the zip file from the source site,

Upload the css and worldcloud.class files on to your server. Before uploading example-with-links.php you might want to customize it according to your site needs.

Here is how one can proceed!

The array of tags can be edited and the display would be w.r.t “more the repetition of the word in the array the better its density of that tag on the site”

Open example-with-links.php and select

and add the above lines before tag in the site you want to insert the tag cloud.

then similarly add the ….. and codes from the example-with-links.php to your site source.

find > echo ‘

replace it with your desired path.

for instance in my case

Note : The hyperlink path should be same as the tag name. And remember to save the file as .php and not .html.

I hope its clea

Comments

Popular posts from this blog

Teen Life

Samsung Galaxy S6

Game of Thrones: 'The Old Gods and the New' recap and review