35, 'Adobe' => 22, 'Array' => 44, 'Background' => 43, 'Blur' => 18, 'Canvas' => 33, 'Class' => 15, 'Color Palette' => 11, 'Crop' => 42, 'Delimiter' => 13, 'Depth' => 34, 'Design' => 8, 'Encode' => 12, 'Encryption' => 30, 'Extract' => 28, 'Filters' => 42, 'Flash' => 32, 'Functions' => 19, 'Gaussian Blur' => 44, 'Grafix' => 49, 'Graphics' => 35, 'Hue' => 47, 'Illustrator' => 8, 'Image Ready' => 12, 'Javascript' => 47, 'Jpeg' => 15, 'Keyboard' => 18, 'Level' => 28, 'Liquify' => 30, 'Listener' => 10, 'Logo' => 12, 'Loops' => 22, 'Macromedia' => 26, 'Method' => 28, 'MySQL' => 18, 'Obfuscation' => 13, 'Object' => 39, 'Optimize' => 25, 'PDF' => 37, 'PHP' => 44, 'PSD' => 17, 'Photography' => 28, 'Photoshop' => 46, 'Revert' => 50, 'Saturation' => 35, 'Save as' => 28, 'Scope' => 11, 'Scripting' => 9, 'Security' => 41, 'Sharpen' => 49, 'Switch' => 41, 'Templates' => 11, 'Texture' => 22, 'Tool Palette' => 30, 'Variables' => 50); return $arr; } */ function get_tag_data() { require('settings.php'); DBConnect(); $result = mysql_query("SELECT * FROM $tag_cloud GROUP BY termine ORDER BY contatore DESC limit 50"); while($row = mysql_fetch_array($result)) { $arr[$row['termine']] = $row['contatore']; } DBclose(); ksort($arr); return $arr; } //funzione del tag cloud function get_tag_cloud() { //definiamo le dimensioni minime e massime del font $min_font_size = 12; $max_font_size = 30; //Recuperiamo l'array ordinato $tags = get_tag_data(); //calcoliamo la minima e la massima occorrenza dei tag $minimum_count = min(array_values($tags)); $maximum_count = max(array_values($tags)); //ne calcolo la differenza $spread = $maximum_count - $minimum_count; if($spread == 0) { $spread = 1; //controllo inserito per evitare errori del tipo divisione per zero } $cloud_html = ''; $cloud_tags = array(); //entriamo nel cuore della rappresentazione del tag cloud foreach ($tags as $tag => $count) { $size = $min_font_size + ($count - $minimum_count) * ($max_font_size - $min_font_size) / $spread; //in questo modo si calcola la dimensione del font in modo porporzionale all'occorrenza del tag $cloud_tags[] = '' . htmlspecialchars(stripslashes($tag)) . ''; } $cloud_html = join("\n", $cloud_tags) . "\n"; return $cloud_html; } $testotag="
TAG-CLOUD

le parole piu cercate
Che cosa sono i tag?
I TAG sono delle parole chiave o una etichetta di categoria che aiutano a trovare articoli che hanno qualcosa in comune.

"; $testo= get_tag_cloud(); //visualizza l'elenco delle categorie -------------------------------------------------------------------------------------- DBConnect(); $result1 = mysql_query("select * from $table_cat order by nome"); while (list($id,$nome) = mysql_fetch_row($result1)) { // visualizzazione $categorie = $categorie." $nome
"; $nocat = "Spiacente, non ci sono ancora news per questa categoria"; } //fine categorie DBClose(); $content_array = file("$theme/tag-cloud.html"); $template= implode("", $content_array); // $top = getStats($loggedinName); // $catlist = listCatagory(); // $prof = getProfilebox($userid); // $totpics = getTotpics(); // $template = getMemberbox($loggedinName,$template); // $Links = getResources(); $template = str_replace('$titolopagina', "- Tag-Cloud\n", $template); $template = str_replace('<:STATS:>', "$top\n", $template); $template = str_replace('<:INFOTEXT:>', "$UploadinfoText\n", $template); $template = str_replace('<:RESOURCES:>', "$Links", $template); $template = str_replace('<:OL:>', "$online\n", $template); $template = str_replace('<:ID:>', "$id\n", $template); $template = str_replace('<:UCOMMENTS:>', "$ucomments\n", $template); $LoginName = ucwords($loggedinName); $template = str_replace('<:LOGINNAME:>', "$LoginName\n", $template); $template = str_replace('<:TP:>', "$totpics\n", $template); $template = str_replace('<:VL:>', "$votesleft\n", $template); $template = str_replace('<:TITLE:>', "$title\n", $template); $template = str_replace('<:CAT:>', "$catlist\n", $template); $template = str_replace('<:CATBOX:>', "$catbox\n", $template); $template = str_replace('<:TEXT:>', "
$testo
", $template); $template = str_replace('<:TEXTTAG:>', "$testotag", $template); $template = str_replace('<:CATAGORY:>', "$catlist", $template); $template = str_replace('<:USERID:>', "$loggedinName", $template); $template = str_replace('$sitename', "$sitename\n", $template); $template = str_replace('<:PAGE:>', "$PHP_SELF\n", $template); $template = str_replace('<:CATEGORIE:>', "$categorie\n", $template); //multilanguage primi 7 comuni $template = str_replace('$diz_iscriviti', "$diz_iscriviti\n", $template); $template = str_replace('$diz_contattaci', "$diz_contattaci\n", $template); $template = str_replace('$diz_piu_votati', "$diz_piu_votati\n", $template); $template = str_replace('$diz_siti_amici', "$diz_siti_amici\n", $template); $template = str_replace('$diz_password_dimenticata', "$diz_password_dimenticata\n", $template); $template = str_replace('<:USERS:>', "$diz_utenti_online\n", $template); $template = str_replace('<:PHOTOS:>', "$diz_foto\n", $template); $template = str_replace('$footer', "$diz_copyright\n", $template); //multilingua pannello controllo $template = str_replace('$diz_pannello', "$diz_pannello", $template); $template = str_replace('$diz_carica', "$diz_carica", $template); $template = str_replace('$diz_gestisci', "$diz_gestisci", $template); $template = str_replace('$diz_profilo', "$diz_profilo", $template); $template = str_replace('$diz_messaggi', "$diz_messaggi ", $template); $template = str_replace('$diz_contatti', "$diz_contatti ", $template); // echo $template; exit; ?>