| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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. |
| |||
|
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> |
| |||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |