Results 1 to 8 of 8

Thread: How to make colorful tag cloud?

  1. #1
    Join Date
    Feb 2007
    Posts
    10

    Default How to make colorful tag cloud?

    Just saw Directory of niche and regional/local directories only - IndexU Directory tag cloud with different colors for tags.

    Anyone know how and where to change the codes for to get that effect? The new templates for 5.4 are just plain single color for the tags.

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    I hope zubby will share here, or you may send him a message in helpdesk.

  3. #3
    Join Date
    Apr 2007
    Posts
    30

    Default

    Also can it be spaced out any better, if you look on my directory totalxsearch.com the tags overlap and it is hard to click them.

    thanks

  4. #4
    Join Date
    Feb 2007
    Posts
    10

    Default

    Thanks Zubby! It looks great now on my site.

  5. #5
    Join Date
    Apr 2007
    Posts
    30

    Default

    Looks nice and they are spaced out properly. Can you post here and share?

  6. #6
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Sunburnt, it could be useful if you post here too

  7. #7
    Join Date
    Feb 2007
    Posts
    10

    Default

    Ok folks, here's how Zubby does it. Just edit the /themes/yourthemes/blocks/blocks.tag_cloud.html. Replace your current block <ul id="popular_tags">...</ul> with the code below:

    <ul id="popular_tags">
    <%section name=i loop=$tags_cloud%>
    <%php%>
    $colors = "0123456789ABCDE";
    $tag_color = "#";
    for ($ii = 1; $ii <= 6; $ii++) {
    $tag_color .= $colors[rand(0, 14)];
    }
    $this->_tpl_vars['tag_color'] = $tag_color;
    <%/php%>
    <li class="<%$tags_cloud[i].class%>"><a href="<%$tags_cloud[i].url%>" title="<%$tags_cloud[i].tag%>"><font color="<%$tag_color%>"><%$tags_cloud[i].tag%></font></a><span><%$tags_cloud[i].total%></span></li>
    <%/section%>
    </ul>

  8. #8
    Join Date
    Apr 2007
    Posts
    30

    Default

    That made the tags on the seperate pages colored but it did not change the look of the tags on the home page. I also have a file named 'block.tags_cloud_small.html' do I need to change that too? I am using version 5.4.0

    Update: Ok I decided to make the same changes to the other file and it worked. Now I would like to know if there is a way to space them out a bit more cause they sort of overlap, any ideas?

    thanks
    Last edited by jg123; 04-29-2007 at 01:00 AM. Reason: add info
    jg123

Similar Threads

  1. Make cat image even?
    By eMax in forum v5.x
    Replies: 17
    Last Post: 05-14-2006, 11:06 PM
  2. how do i make an extra page?
    By landuyt in forum v5.x
    Replies: 7
    Last Post: 08-09-2005, 02:31 AM
  3. Make searches from other sites
    By kylef in forum v5.x
    Replies: 1
    Last Post: 04-18-2005, 02:34 PM
  4. Let's make some money!
    By esm in forum v5.x
    Replies: 8
    Last Post: 01-09-2005, 07:08 PM
  5. Help Us Make this Easy, Please
    By Hart_House in forum v5.x
    Replies: 0
    Last Post: 11-21-2001, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •