Adding a tag cloud on your flash games portal

As you know, tag cloud is a popular navigation structure used in blogs mostly. But I see no reason not to have the same thing on a flash arcade website. Because it’s a simple yet effective way to represent the the entire games database to your visitors and keep the list of categories compact at the same time. This is why I’ve wrote this free addon. So, let’s get down to business.

First of all, you should download this archive containing all php code needed to set up this addon. Once you have it, please follow these installation instructions:

  1. Edit your htaccess file located in the root folder of your site:
    • replace all [L] in the ends of the lines by [QSA,L]
    • add the following line in the end of the .htaccess file:
      RewriteRule ^tag/(.*[^/])$ docs/doc.php?page=tag.php&tag=$1 [QSA,L]
       
  2. Create a new php block inside your CP (the "blocks" tab) with the following settings:
    ID: TAGCLOUD
    title: Tag cloud
    filename: block_tagcloud
    Pages: select all
    Max. elements: 40
    Sorting: random
    Code: copy and paste php code from the "tagcloud_code.txt" file
    Please note, the code contains some settings like cache ttl and useless tags, feel free to edit those settings.
    Click "Submit" button
     
  3. Once the page block is created, go to the "pages" tab and create a new page with the following settings:
    Page filename: tag.php
    Meta title: !TAGNAME!
    Link to this page must exist in the…: uncheck both
    Menu Item Title: any
    Meta Description: Games by tag !TAGNAME!
    Meta Keywords: !TAGNAME! games
    Code: copy and paste php code from the "tagcloud_page.txt" file
    Click "Submit" button
     
  4. Now you just need to insert our block in the pages: in the "pages" tab open (one by one) all main pages for editing and place the !TAGCLOUD! macro where you wish it to be.

That’s it.

Leave a Reply

Have a question or just want to comment this article? Feel free to post your thoughts here.