Zelig Planet

L'esperienza è quella cosa meravigliosa che ti permette di riconoscere uno sbaglio quando lo ripeti. (F. P. Jones)

Home Page - Blog - Informazioni

Archivio

cerca un articolo inserendo una o più parole qui sotto:

oppure seleziona un mese dall'elenco:

oppure scegli una categoria di articoli:

oppure visualizza la pagina dell'archivio

Misc

Feed RSS 0.92 Feed RSS 2.0 RSS 2.0 comm. Feed Atom 0.3 XHTML valido CSS valido Sottoscrivi con Bloglines

Powered by
WordPress 2.0.7

Archivio blog - mese di Agosto 2006

Aggiornamento plugin WP: Zelig Show Plugins v1.1

Giovedì 31 Agosto 2006 by Zelig

Ho fatto un piccolo aggiornamento anche a questo plugin: ora è possibile visualizzare una linea di testo alla fine della tabella con il totale dei plugin attivi e personalizzarne l’aspetto (o anche escluderla) per mezzo di alcuni parametri opzionali.

Antispam per il blog: risultati del test

Martedì 29 Agosto 2006 by Zelig

Da quando ho installato il nuovo plugin antispam per i commenti del blog (vedi articolo), non ne è più arrivato nemmeno uno, quindi penso proprio di poter decretare l’esito positivo di questo periodo di prova. :thumbup:

Mi spiace per voi, ma questo significa anche che per commentare i miei articoli dovrete continuare a sorbirvi il piccolo test di matematica! :P

Retequattro

Lunedì 28 Agosto 2006 by Zelig

Non ci posso credere.

Walker Texas Ranger.

Di nuovo.

:wall:

Aggiornamento plugin WP: Zelig Dropdown Cats v1.3

Sabato 26 Agosto 2006 by Zelig

Nell’attesa che la bimba si decida a venire al mondo (!), ho approfittato del tempo libero per aggiornare il plugin Zelig Dropdown Cats alla versione 1.3.

Ho aggiunto la possibilità di escludere la prima riga con il titolo nella list box. Inoltre, se il titolo non viene specificato, viene utilizzata come default la traduzione localizzata di “Categories”, se disponibile.

Wordpress plugin: Zelig Dropdown Pages

Venerdì 25 Agosto 2006 by Zelig

english italian Articolo multilingue / Multilanguage post

Yes, another plugin from the “Zelig Dropdown” series!

This one shows the pages links in the sidebar as a simple and small dropdown list (select box). This plugin should replace the WP standard wp_list_pages() function.

INSTRUCTIONS:

  1. Download the zip file (current version is 1.1 of september 18, 2006).
  2. Extract the zelig-dropdown-pages.php file into the plugins directory in your WordPress installation (wp-content/plugins).
  3. Log in to WordPress administration. Go to the Plugins page and Activate this plugin.
  4. Put this code somewere in your template page, outside the loop (usually in sidebar):
<?php zelig_dropdown_pages(); ?>

The zelig_dropdown_pages() function has some optional parameters you can pass, and most of them are the same as in wp_list_pages() function.

Parameter Values Description Default
child_of integer display only the subpages of the page; use the numeric ID for a page as the value 0
(display all pages)
sort_column post_title
menu_order
post_date
post_modified
ID
post_author
post_name
sort pages list by one of the following options:
post_title (sort alphabetically by page/post title)
menu_order (sort by page order specified as part of your page entry in Write -> Pages)
post_date (sort by creation time)
post_modified (sort by time last modified)
ID (sort by numeric page ID)
post_author (sort by author numeric ID)
post_name (sort alphabetically by post slug)
post_title
sort_order ASC
DESC
sort order for options:
ASC (sort from lowest to highest )
DESC (sort from highest to lowest)
ASC
exclude integer or comma separated integers list list of page numeric IDs to be excluded from the list. Page numbers must be in ascending order  
depth integer numeric value for how many levels of hierarchy (sub-pages) to display. set to 0 display all pages, -1 shows no child pages. This parameter doesn’t seem to work as expected, just like in the standard wp_list_pages() function: every value different from 0 excludes all child pages from the list… 0
(display all pages)
title_li string text appearing in the list box when it’s closed “Pages” (or corresponding localized text)
boxwidth integer width size (in pixel) of the list box. If you don’t use this parameter or if you set it to zero, the list box will assume the width of the longest page name it contains. This could easily mess up your template, if you have long names and/or narrow sidebar. If you set a width value, longer names may be truncated at that point on some browsers (IE6…) 0
(no limit)

EXAMPLES:

<?php zelig_dropdown_pages('boxwidth=120'); ?>

Set the width size of the list box to 120 pixels.

<?php zelig_dropdown_pages('sort_column=menu_order&sort_order=DESC'); ?>

Shows the list in the opposite (DESC) order specified in administration panel.

<?php zelig_dropdown_pages(child_of=50&exclude55,62'); ?>

Shows only subpages of page 50, but excluding pages 55 and 62.

<?php zelig_dropdown_pages(depth=1&title_li=Section 1'); ?>

Shows only first level of subpages and set “Section 1″ as list title.

NOTES:

The output code is valid XHTML Strict.
Tested with WordPress 2.0.4 only. At present I can’t say if it works with previous versions (but I will apreciate if someone could try it and let me know!).

CHANGE LOG:

  • Version 1.1 (september 18, 2006): a little upgrade lets you use more than one istance of the function in the same page, for example to split your pages in two or more lists using the “exclude” option.

Look here for all the Wordpress plugins from Zelig!

Nove mesi

Mercoledì 23 Agosto 2006 by Zelig

I fatidici nove mesi scadevano oggi, ma a quanto pare la nostra Lucrezia non ne vuole sapere di farsi vedere! :snooty:

Restiamo in attesa…

Il fattore sorpresa

Domenica 20 Agosto 2006 by Zelig

Era una questione di principio, un chiodo fisso, ed era indubbiamente la prima cosa che voleva fare.
D’altra parte non poteva fargliela passare liscia, no di certo. Era stata proprio lei a denunciarlo. Si era fatto cinque anni dentro per colpa di quella puttana. Cinque anni, passati stringendo i denti e pensando al momento in cui finalmente gliel’avrebbe fatta pagare. Pensando anche al modo migliore per farlo, ovviamente, ed in questo i suoi compagni di cella erano stati molto prodighi di suggerimenti interessanti. Del resto lui aveva solo fatto sparire un po’ di soldi dal bilancio della società - un bel mucchio di soldi, in effetti - e anche corrotto qualche politico, ma non era mica un assassino! Non ancora, per lo meno…
Sapeva che la puttana aveva paura di lui, tanto che sicuramente stava progettando di trasferirsi in un’altra città facendo perdere le sue tracce. Ma non ne avrebbe avuto il tempo, la maledetta. Aveva ben altri programmi per lei, quella mattina, qualcosa di molto spettacolare.
continua…

Allacciarsi le scarpe

Sabato 19 Agosto 2006 by Zelig

LacciSi potrebbe pensare che allacciarsi le scarpe sia una cosa tutto sommato banale, vero? Niente di più sbagliato…

Come per ogni cosa, c’è sempre qualcuno che si mette a studiarci sopra e allora salta fuori che ci sono decine di modi diversi per farlo.
Sullo Ian’s Shoelace Site (sì, è proprio un sito dedicato alle allacciature delle scarpe…) per esempio ne trovate 31, alcuni dei quali veramente incredibili, tipo questo!

Mi sa che prima o poi ne proverò qualcuno, he he. :winky:

Antispam per il blog

Giovedì 17 Agosto 2006 by Zelig

Chiunque possieda un indirizzo email sa benissimo di cosa sto parlando, e chiunque gestisca un blog sa altrettanto bene che anche i propri articoli sono spesso presi di mira dagli spammer, sottoforma di commenti pubblicitari sparati a caso da appositi programmini automatici.
Nel mio caso non sarebbe un grosso problema, visto che comunque questo tipo di messaggi, così come quelli di chi scrive per la prima volta un normale commento, vanno a finire in moderazione e quindi non compaiono subito nel blog. La scocciatura per il sottoscritto è però quella di dover cancellare manualmente almeno quattro o cinque di questi commenti-spazzatura ogni giorno, oltre a riceverne le relative notifiche via email… :evil:

E’ per questo motivo che ho deciso di attivare un dispositivo antispam: da oggi chiunque voglia lasciare un commento, dovrà prima inserire in un apposito campo il risultato di una semplice operazione matematica (tranquilli, niente espressioni di algebra…), cosa che teoricamente il maledetto programmino spammatore non dovrebbe essere in grado di fare da solo…

Lo so che è una scocciatura in più, anche a me non stanno simpatici questi sistemi quando li trovo su altri blog, ma qualcosa dovevo pur fare, per cui portate pazienza. Tra l’altro non è neanche detto che funzioni: per il momento inizia una fase di prova e vediamo come si comporta, poi deciderò se lasciarlo così o provare qualcos’altro.

Incidente aereo a Piacenza

Lunedì 14 Agosto 2006 by Zelig

Ieri sera, più o meno a quest’ora (20.20), un Hercules C130 algerino si è schiantato al suolo a pochi chilometri da casa mia, dopo essermi passato quasi sopra alla testa con un rumore assordante.
Fortunatamente il pilota è riuscito a schivare le case, anche se soltanto di poche centinaia di metri e anche se per lui e gli altri due membri dell’equipaggio a bordo non c’è stato scampo.

Lo so che non è una gran bella notizia, ma son cose che fanno riflettere… :|

Aggiornamento plugin WP: Zelig Dropdown Cats v1.2

Lunedì 14 Agosto 2006 by Zelig

In questo periodo, forse l’avrete notato, mi è tornata un po’ la voglia di programmare (o per essere più precisi, diciamo che ne approfitto finché ho ancora un po’ di tempo libero…).

Ho aggiornato il mio primo plugin per Wordpress, nonché tuttora il più popolare: Zelig Dropdown Cats. L’ultima versione appena rilasciata è la 1.2 e apporta un paio di miglioramenti: prima di tutto semplifica il codice da inserire nella sidebar per visualizzare la lista (ora basta inserire la chiamata alla funzione e nient’altro - attenzione per chi aggiorna dalle versioni precedenti!) e poi ci sono un paio di opzioni in più da poter impostare, fra cui una molto comoda (nonché richiesta) per impostare la larghezza della list box, come già visto nell’altro plugin Zelig Dorpdown Links.

I miei plugin per Wordpress

Domenica 13 Agosto 2006 by Zelig

In occasione della pubblicazione del mio quarto plugin per WordPress (vedi articolo precedente), ho pensato di aggiungere una paginetta al sito dedicata soltanto a loro ed accessibile direttamente dai link nella barra laterale. Questa pagina contiene un elenco aggiornato dei plugin di mia creazione, con una breve descrizione e il collegamento ai relativi articoli.

Ah, la pagina è questa!

Wordpress plugin: Zelig Show Plugins

Sabato 12 Agosto 2006 by Zelig

english italian Articolo multilingue / Multilanguage post

This plugin allows to create a Wordpress page where to show a list of all the active plugins of your web site. For every plugin, only the following elements will be shown: name (with a link to the plugin page), version number and author (with a link to his home page). Starting from version 1.2 there’s an option to show plugins descriptions too. You can see an example of the result in this page.

INSTRUCTIONS:

  • Download the zip file (current version is 1.2 of november 28, 2006).
  • Extract the zelig-show-plugins.php file into the plugins directory in your WordPress installation (wp-content/plugins).
  • Log in to WordPress administration. Go to the Plugins page and Activate this plugin.
  • Create a new page template saving with a different name the “page.php” file present in your template, then edit it adding in the right place (usually before the row starting with <?php edit_post_link… ) the following HTML code:
<?php zelig_show_plugins(); ?>

You also have to add at the top of this new template the code that defines it’s name (or change it, if already present):

<?php
/*
Template Name: Plugins
*/
?>
  • Create a new page using this template, adding a title and if necessary some text. Loading this page, the plugins list will be shown automatically.
  • In case, you can also edit the “style.css” of your template to set up the visualization style of the table. The classes used are the following:
    .plugins-list (DIV including the whole table)
    .alternate-plug-row (class assigned to the odd rows of the table)
    .plug-row (class assigned to the even rows of the table)

This plugin can display a text row after the end of the table with the total count of active plugins. You can change the default text of this line or exclude it at all. Another option lets you show plugins descriptions too. You can set all these options using some parameters of the zelig_show_plugins() function:

Parameter Values Description Default
show_count 0
1
If set to 0, the line with the total count of plugins will be excluded 1
before string Text displayed before the figure There are
after string Text displayed after the figure active plugins in this blog!
description 0
1
If set to 1, it will show plugins descriptions too 0

EXAMPLES:

<?php zelig_show_plugins('show_count=0'); ?>

Excludes displaying of the line with the total count of plugins.

<?php zelig_show_plugins('before=That's amazing: &after= active plugins!'); ?>

Displays the line “That’s amazing: XX active plugins!” after the table.

<?php zelig_show_plugins('before=&after= active plugins.'); ?>

Displays the line “XX active plugins.” after the table.

<?php zelig_show_plugins('description=1'); ?>

Displays plugins descriptions too.

NOTES:

The output code is valid XHTML Strict.
Tested with WordPress 2.0.4 and newest only. At present I can’t say if it works with previous versions (but I will apreciate if someone could try it and let me know!).

CHANGE LOG:

  • Version 1.2 (november 28, 2006): added an option to show plugins descriptions too.
  • Version 1.1 (august 30, 2006): added a text line after the table with the total count of all active plugins. It’s possible to exclude it or customize the text using the function’s parameters.

Look here for all the Wordpress plugins from Zelig!

Lemmings (il gioco…)

Mercoledì 9 Agosto 2006 by Zelig

LemmingsLa precisazione nel titolo si riferisce al fatto che avevo già parlato dei lemmings tempo fa, ma riferendomi ai roditori… :roll:

Questa volta invece si parla proprio del mitico videogioco, risalente ai tempi del DOS, che li vedeva protagonisti. Un gioco semplice ma estremamente coinvolgente, che consisteva nel guidare una folla di questi animaletti verso l’uscita di ogni livello, sfruttando alcune delle loro capacità: scavare, costruire ponti, bloccare, esplodere (!), ecc.

Bene, per chi si ricorda del gioco e volesse riprovarci (o per chi comunque fosse curioso di conoscerlo), esiste questa bella versione per Windows, assolutamente gratuita e molto fedele all’originale, che vi farà sicuramente divertire per parecchie ore! :thumbup:

Wordpress plugin: Zelig Dropdown Links

Sabato 5 Agosto 2006 by Zelig

english italian Articolo multilingue / Multilanguage post

This plugin is similar to the Zelig dropdown cats one, and it’s also an answer to some requests of my readers.

It displays the links in the sidebar as a simple dropdown list (select box). If you have more link categories, every one will be shown in it’s own list.
This is supposed to replace the original get_links_list() function and should be useful if you have a lot of links, but you don’t want to clutter up your sidebar with them!

INSTRUCTIONS:

  1. Download the zip file containing the plugin. There are two versions, both with equal functionality, to choose depending on the WordPress version you are using:
    Zelig Dropdown Links 1.2 - For WP 2.1 (and following, I hope…);
    Zelig Dropdown Links 1.1 - For previous WP versions.
  2. Extract the zelig-dropdown-links.php file into the plugins directory in your WordPress installation (wp-content/plugins).
  3. Log in to WordPress administration. Go to the Plugins page and Activate this plugin.
  4. Put this code somewere in your template page, outside the loop (usually in sidebar):
<?php zelig_dropdown_links(); ?>

The zelig_dropdown_links() function has some parameters you can pass (please note that options syntax is changed from version 1.0):

Parameter Values Description Default
boxwidth number width size (in pixel) of the list box. If you don’t use this parameter or if you set it to 0, the list box will assume the width of the longest category name it contains. If you set a width value, longer names may be truncated at that point, depending on browser (IE6…) 0
exclude number or comma separated list of numbers link category or categories (ID numbers) to hide. If not set or set to 0, all link categories will be displayed. 0
include number or comma separated list of numbers link category or categories (ID numbers) to display. If not set or set to 0, all link categories will be displayed. 0
title 0
1
set to 0 if you don’t want the first row of the list as a title with the name of the link category (text appearing in the list box when it’s closed). 1

EXAMPLES:

<?php zelig_dropdown_links('boxwidth=120'); ?>

Set the width of the list to 120 pixels.

<?php zelig_dropdown_links('boxwidth=120&exclude=1'); ?>

Set the width of the list to 120 pixels and hide link category with ID 1.

<?php zelig_dropdown_links('boxwidth=120&exclude=1,2,3'); ?>

Set the width of the list to 120 pixels and hide link categories with ID 1, 2 and 3.

<?php zelig_dropdown_links('include=1&title=0'); ?>

Display only link category with ID 1 and without the category name as a list “title”.

This plugin, due to the peculiarity of the type of visualization, ignores a lot of elements of Wordpress links, like image, description, score, target and rel. Only URI, name, visibility, sorting type and category limit are used.

NOTES:

You can use more than one istance of the function in the same page (provided that not showing the same links).
The output code is valid XHTML Strict.
Tested with WordPress from 2.0.4 to 2.1 only.

CHANGE LOG:

  • Version 1.2 (february 16, 2007): Wordpress 2.1 compatibile.
  • Version 1.1 (january 17, 2007): added “exclude”, “include” and “title” options.

Look here for all the Wordpress plugins from Zelig!


Copyright © 1997-2008 Corrado "Zelig". Tutti i diritti riservati (vedi note legali)

NB: state visualizzando questo sito nella versione ottimizzata per dispositivi portatili (cellulari, palmari, ecc.) oppure con un browser "datato" che non consente di visualizzare correttamente i fogli di stile (CSS). I contenuti del sito sono comunque gli stessi e le differenze riguardano solamente l'aspetto estetico, che sarebbe molto più "piacevole" se visualizzato con un browser più recente!