$entry= $db->query_first("SELECT tags FROM " . TABLE_PREFIX . "journal_entries WHERE journal_id=1"); $entry['tags'] = stripslashes($entry['tags']); if ($entry['tags']){ $kwords = explode(',', trim($entry['tags'])); $entry['tags'] = ''; foreach ($kwords AS $keyword) { $keyword = trim($keyword); $entry['tags'] .='<a href="/journal.php?' .$vbulletin->session->vars['sessionurl']. 'do=showjournal&tag='.$keyword.'&j='.$j.'" target="_top">' .$keyword. '</a>, '; } $entry['tags']= substr_replace($entry['tags'],'',-2); } eval('print_output("' . fetch_template('journal_blogcloud') . '");');$db->free_result($entry);