#1 (permalink)  
Old 04-22-2007, 12:38 PM
Registered User
 
Join Date: Feb 2007
Posts: 10
Sunburnt is on a distinguished road
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 (permalink)  
Old 04-23-2007, 12:06 AM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

I hope zubby will share here, or you may send him a message in helpdesk.
  #3 (permalink)  
Old 04-23-2007, 12:46 AM
Registered User
 
Join Date: Apr 2007
Posts: 27
jg123 is on a distinguished road
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 (permalink)  
Old 04-25-2007, 02:41 AM
Registered User
 
Join Date: Feb 2007
Posts: 10
Sunburnt is on a distinguished road
Default

Thanks Zubby! It looks great now on my site.
  #5 (permalink)  
Old 04-25-2007, 07:09 AM
Registered User
 
Join Date: Apr 2007
Posts: 27
jg123 is on a distinguished road
Default

Looks nice and they are spaced out properly. Can you post here and share?
  #6 (permalink)  
Old 04-25-2007, 09:39 PM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

Sunburnt, it could be useful if you post here too
  #7 (permalink)  
Old 04-28-2007, 01:01 AM
Registered User
 
Join Date: Feb 2007
Posts: 10
Sunburnt is on a distinguished road
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 (permalink)  
Old 04-29-2007, 01:53 AM
Registered User
 
Join Date: Apr 2007
Posts: 27
jg123 is on a distinguished road
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
__________________
jg123

Last edited by jg123; 04-29-2007 at 02:00 AM. Reason: add info
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make cat image even? eMax v5.x 17 05-15-2006 12:06 AM
how do i make an extra page? landuyt v5.x 7 08-09-2005 03:31 AM
Make searches from other sites kylef v5.x 1 04-18-2005 03:34 PM
Let's make some money! esm v5.x 8 01-09-2005 08:08 PM
Help Us Make this Easy, Please Hart_House v5.x 0 11-21-2001 10:53 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 08:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate