I found what I need but I can't get it to work in Drupal 6 (Works fine in Drupal 5 though) I wish I could do this by myself but I don't have the skill so I have to ask for help.
Maybe somebody could be nice and help me with this or tell me what to read so I will understand how to make code for drupal 5 compatible with Drupal 6.

Display taxonomy terms broken out by vocabulary: http://drupal.org/node/133223

Comments

Chippe’s picture

In template.php:

<?php
// split out taxonomy terms by vocabulary
function yourthemename_print_terms($nid) {
     $vocabularies = taxonomy_get_vocabularies();
     $output = '<ul>';
     foreach($vocabularies as $vocabulary) {
       if ($vocabularies) {
         $terms = taxonomy_node_get_terms_by_vocabulary($nid, $vocabulary->vid);
         if ($terms) {
           $links = array();
           $output .= '<li>' . $vocabulary->name . ': ';
           foreach ($terms as $term) {
             $links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => strip_tags($term->description)));
           }
           $output .= implode(', ', $links);
           $output .= '</li>';
         }
       }
     }
     $output .= '</ul>';
     return $output;
}
?>

In node.tpl.php:

<?php
print yourthemename_print_terms($node->nid)
?>

Ok, I understand if you don't wan't to spend time on this but can somebody tell me what to change?
What is it that Drupal 6 doesn't like?

evillage.pl’s picture

<?php
function yourthemename_taxonomy_links($node) {
	  if (count($node->taxonomy)){
	  	$output = '<ul>';
		    foreach ($node->taxonomy as $terms) {
			      if ($terms){
					$my_vocabulary = taxonomy_vocabulary_load($terms->vid);
						$links = array();
						$output .= '<li>' . $my_vocabulary->name . ': ';	
						$links[] = l($terms->name, taxonomy_term_path($terms), array('rel' => 'tag', 'title' => strip_tags($term->description)));
			           	$output .= implode(', ', $links);
			           	$output .= '</li>';
			       }
			}
		$output .= '</ul>';
		return $output;
	  }
}
?>



Best Regards :)