If you need block containing tags from multiple vocabularies, you can create a custom php block with the following code:

All or almost all vocabularies version:

if (module_exists("tagadelic")) {
  $output = "";
  $tag_levels = 3; //max 10
  $tag_count = 20; //unlimited, but think about the size of the rendered block......
  $vocs = array();
  foreach (taxonomy_get_vocabularies() as $voc) {
    /* uncomment this section to exclude vocabularies: 1, 2, 3 and 4. Replace this list to your needs.
    if (in_array($voc->vid, array(1,2,3,4))) {
      continue;
    }
    */
    $vocs[] = $voc->vid;
  }
  if (!empty($vocs)) {
    $tags = tagadelic_get_weighted_tags($vocs, $tag_levels, $tag_count);
    $tags = tagadelic_sort_tags($tags);
    $output = theme('tagadelic_weighted',$tags);
  }
  print $output;    
}

Only a few vocabulary version:

if (module_exists("tagadelic")) {
  $output = "";
  $tag_levels = 3; //max 10
  $tag_count = 20; //unlimited, but think about the size of the rendered block......
  $vocs = array();
  $voc_ids = array(1, 2, 3); //include tags from vocabularies: 1, 2 and 3. Replace this list to your needs.
  foreach ($voc_ids as $voc_id) {
    if ($voc = taxonomy_vocabulary_load($delta)) {
      $vocs[] = $voc->vid;
    }
  }
  if (!empty($vocs)) {
    $tags = tagadelic_get_weighted_tags($vocs, $tag_levels, $tag_count);
    $tags = tagadelic_sort_tags($tags);
    $output = theme('tagadelic_weighted',$tags);
  }
  print $output;    
}

Comments

Bèr Kessels’s picture

Status: Active » Closed (won't fix)
dash-1’s picture

I appreciate Ber's decision not to fix this, but in case anyone reaches here and wishes to use xmarkets code for fewer vocabularies (2nd block of code), then please bear in mind a small correction. I have created this block for D6 using tagadelic version 1.2...

The $delta at line 8 needs to be changed to $voc_id i.e.

  ...
  foreach ($voc_ids as $voc_id) {
    if ($voc = taxonomy_vocabulary_load($voc_id)) {
      $vocs[] = $voc->vid;
    }
  }
  ...