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

Realme X50 5G launched in China: Rs 26,000 for 120Hz display, 5G connectivity and 30W fast charging

Samsung Galaxy A9 Star Pro Tipped to Sport 4 Rear Cameras and Bixby Button, Galaxy A7 (2018) With 3 Cameras Leaked

4G VoLTE devices in India