Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.
// TAGSfunction getTags () { connect_to_db(); $db = new Database(s('dbname')); $query = "SELECT * FROM " .s('prefix'). "articles WHERE published = 1"; $result = $db->query($query); while ($r = $result->fetch_array()) { $labels = explode(',', $r['keywords_meta']); $arr = $labels; }// Something needs to go in here!!!! ksort($arr); $min_font_size = 12; $max_font_size = 30; $tag = ksort($arr); foreach ($tag as $tag) { if($labels == '') break; srand ((double) microtime( )*1000000); $tagnum = (rand()%5); $tag = trim($tag); echo ''.$tag.' '; }// }}