Okay guy, but it shows the tags of the last post for every post with tags.
Its strange.
}elseif($btype == 'dynamictag' && (is_single())){
$tags = get_the_tags($post->ID);
if($tags) :
echo 'bb_keywords = "';
foreach($tags as $tag) :
$sep = (empty($keywords)) ? '' : ', ';
$keywords .= $sep . $tag->name;
echo $tag->name .', ';
endforeach;
echo '";';
endif;