Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Fancy TagClouds!
#3
You can use a 3rd party solution:

Install i18n serach: http://mvlcek.bplaced.net/get-simple/i18nsearch/

This provides tag clouds and the call return_i18n_tags()
Quote:returns an ordered array, where the key is the tag and the value is an array of urls (slugs) using that tag. Tags starting with "_" are ignored.

Then use something like the cumulus tag cloud swf: http://www.roytanck.com/2008/05/19/how-t...ash-movie/

You just need to create the xml stylevar using a bit of php to have this format:
Code:
<tags>
  <a href="http://www.roytanck.com/tag1" style="font-size:9pt;" >Tag name</a>
  <a href="http://www.roytanck.com/tag2" target="_blank" style="font-size:12pt;" >Tag two</a>
  ...
</tags>

off the top of my head, something like this should work:
Code:
$stylevartags = '<tags>';
$alltags = return_i18n_tags();
foreach ($alltags $tag => $slugarray) {
  $link= 'search/?tags=' .  $tag;
  $size = 9 + count($slugarray);  // or whatever function you want to convert instances to text size
  $stylevartags .= '<a href="' . $link . '" style="font-size:' . $size . 'pt;" >' . $tag . '</a>';
}
$stylevartags .= '</tags>';

(code not tested...)

-Rob A>
Reply


Messages In This Thread
Request Fancy TagClouds! - by bangkak - 2011-12-21, 16:21:33
Request Fancy TagClouds! - by Connie - 2011-12-21, 17:22:07
Request Fancy TagClouds! - by RobA - 2011-12-22, 03:10:13
Request Fancy TagClouds! - by bangkak - 2011-12-22, 12:07:10



Users browsing this thread: 1 Guest(s)