{"id":1422,"date":"2007-07-25T03:16:52","date_gmt":"2007-07-25T01:16:52","guid":{"rendered":"https:\/\/www.dreamsworld.it\/emanuele\/2007-07-25\/blogbabel-rank-plus-widget-per-wordpress-e-per-k2\/"},"modified":"2018-07-09T11:44:52","modified_gmt":"2018-07-09T09:44:52","slug":"blogbabel-rank-plus-widget-per-wordpress-e-per-k2","status":"publish","type":"post","link":"https:\/\/www.dreamsworld.it\/emanuele\/2007-07-25\/blogbabel-rank-plus-widget-per-wordpress-e-per-k2\/","title":{"rendered":"BlogBabel Rank Plus: widget per WordPress e per K2"},"content":{"rendered":"<p><em>Si vede che mi sento in vacanza in questi giorni.<\/em><\/p>\n<p>Oggi, dopo aver continuato lo sviluppo del plugin, ho pensato di realizzare i widget per WordPress (introdotti in<a href=\"https:\/\/wordpress.org\/news\/2007\/05\/wordpress-22\/\" title=\"Wordpress 2.2\" target=\"_blank\"> WordPress 2.2<\/a>) e per <a href=\"https:\/\/github.com\/Heilemann\/k2-for-wordpress\" title=\"K2\" target=\"_blank\">K2<\/a>, uno dei pi\u00f9 famosi temi per WordPress, noto per la sua facilit\u00e0 di personalizzazione.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.dreamsworld.it\/emanuele\/wp-content\/uploads\/2007\/07\/2007-07-25_blogbabel_rank_widget.jpg\" title=\"Widget BlogBabel Rank Plus - tema K2\" alt=\"Widget BlogBabel Rank Plus - tema K2\" class=\"alignleft\" align=\"left\" height=\"61\" width=\"144\" \/>Ovviamente il widget per WordPress va usato in presenza di un tema modulare (se non sapete come rendere tale il vostro, <a href=\"http:\/\/automattic.com\/code\/widgets\/themes\/\" title=\"Widgetizing Themes\" target=\"_blank\">leggete qui<\/a>).<\/p>\n<p><strong>Widget per WordPress 2.2+<\/strong><\/p>\n<p>Scaricate il file ed apritelo. Raggiungete la riga 16 ed impostate il vostro slug nella variabile. Ad esempio:<\/p>\n<p><code>$slug = \"time-is-what-you-make-of-it\";<\/code><\/p>\n<p>Lo slug \u00e8 la parte finale dell\u2019url di BlogBabel per le vostre statistiche.<\/p>\n<p>Fatto questo, salvatelo e caricatelo nella cartella dei plugin (<em>\/wp-contents\/plugins<\/em>).<\/p>\n<p>Dopo averlo attivato insieme a <a href=\"\/\/www.dreamsworld.it\/emanuele\/2007-07-23\/wordpress-plugin-blogbabel-rank-plus\/\" title=\"Wordpress plugin: Blogbabel Rank Plus\" target=\"_blank\">BlogBabel Rank Plus<\/a> dal pannello dei plugin, dovrete andare in <em>Aspetto &#8211; Widgets<\/em> ed inserire il widget nella vostra sidebar nella posizione desiderata.<\/p>\n<p><strong>Widget per K2<\/strong><\/p>\n<p>Scaricate il file ed apritelo. Raggiungete la riga 8 ed impostate il vostro slug nella variabile come per il widget per WordPress.<\/p>\n<p>Fatto questo, salvatelo e caricatelo nella cartella dei moduli di K2 (<em>\/wp-content\/themes\/k2\/app\/modules<\/em>).<\/p>\n<p>Attivate <a href=\"\/\/www.dreamsworld.it\/emanuele\/2007-07-23\/wordpress-plugin-blogbabel-rank-plus\/\" title=\"Wordpress plugin: Blogbabel Rank Plus\" target=\"_blank\">BlogBabel Rank Plus<\/a> dal pannello dei plugin, ed andate poi in <em>Aspetto &#8211; K2 Sidebar Modules<\/em>. Selezionate il widget, scegliete un nome, ed aggiungetelo alla sidebar.<\/p>\n<p>Per non visualizzare il titolo del widget, selezionatelo dalla sidebar e visualizzate le <em>Opzioni Avanzate<\/em>; togliete la spunta a <em>Show module&#8217;s title<\/em> e salvate il modulo.<\/p>\n<p><strong><font color=\"#ff0000\">Download:<\/font><\/strong><br \/>\n<a href=\"\/\/www.dreamsworld.it\/emanuele\/wp-content\/uploads\/2007\/07\/widget_wpbbrp.zip\" onClick=\"javascript:urchinTracker('zip\/widget_wpbbrp.zip')\" title=\"Widget BlogBabel Rank Plus - temi WordPress\">Widget BlogBabel Rank Plus &#8211; temi WordPress<\/a> (~1kb)<br \/>\n<a href=\"\/\/www.dreamsworld.it\/emanuele\/wp-content\/uploads\/2007\/07\/k2widget_wpbbrp.zip\" onClick=\"javascript:urchinTracker('zip\/k2widget_wpbbrp.zip')\" title=\"Widget BlogBabel Rank Plus - tema K2\">Widget BlogBabel Rank Plus &#8211; tema K2<\/a> (~1kb)<\/p>\n<p><strong>Nota:<\/strong> non dimenticare, in entrambi i casi, di scaricare <a href=\"\/\/www.dreamsworld.it\/emanuele\/2007-07-23\/wordpress-plugin-blogbabel-rank-plus\/\" title=\"Wordpress plugin: Blogbabel Rank Plus\" target=\"_blank\">il plugin principale<\/a>.<\/p>\n<p>Ciao,<\/p>\n<p><strong>P|xeL<\/strong><\/p>\n<p>PS: qualcuno storcer\u00e0 il naso in quanto i widget sono stati creati per non far toccare minimamente il codice dei plugin da parte degli utenti. Personalmente penso che inserire un url in un file sia sufficientemente semplice da non giustificare l&#8217;utilizzo di un record sul database (o su file) per salvare lo <em>slug<\/em>. Usando i widget rimane comunque la comodit\u00e0 di poterli spostare facilmente se necessario.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Si vede che mi sento in vacanza in questi giorni. Oggi, dopo aver continuato lo sviluppo del plugin, ho pensato di realizzare i widget per WordPress (introdotti in WordPress 2.2) e per K2, uno dei pi\u00f9 famosi temi per WordPress, &hellip; <a href=\"https:\/\/www.dreamsworld.it\/emanuele\/2007-07-25\/blogbabel-rank-plus-widget-per-wordpress-e-per-k2\/\">Leggi ancora &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-1422","post","type-post","status-publish","format-standard","hentry","category-internet"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/posts\/1422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/comments?post=1422"}],"version-history":[{"count":0,"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/posts\/1422\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/media?parent=1422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/categories?post=1422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dreamsworld.it\/emanuele\/wp-json\/wp\/v2\/tags?post=1422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}