WordPress plugin: Zelig Show Plugins

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 [removed].

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):

  • 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)
<?php
/*
Template Name: Plugins
*/
?>

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=Ci sono ben &after= plugin attivi in questo blog!'); ?>

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

<?php zelig_show_plugins('before=&after= plugin attivi in totale.'); ?>

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.
Pubblicato in Informatica | Contrassegnato con , | 28 Commenti

Lemmings (il gioco…)

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:

Pubblicato in Informatica | Contrassegnato con , | Lascia un commento

WordPress plugin: Zelig Dropdown Links

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'); ?>

Displays 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.
Pubblicato in Informatica | Contrassegnato con , | 73 Commenti

La nuova casa: inizio lavori

Scavo

Lo so che al momento ci vuole un po’ di immaginazione, ma qui sorgerà la nostra futura casetta! Dopo tutto il tempo che ci hanno fatto aspettare, soltanto a vedere che finalmente i lavori sono cominciati mi son quasi emozionato… :dance:

Pubblicato in La mia vita | 2 Commenti

Trojan

Nell’ambiente degli hacker era indubbiamente uno dei migliori. Tutti lo conoscevano con il nickname “BoBBy”, un soprannome apparentemente buffo e innocente. Ma in realtà quello che faceva – ultimamente sempre più spesso – era tutt’altro che innocente…
Nella società del ventiduesimo secolo non c’era un solo aspetto della vita che non passasse attraverso i computer, e lui riusciva ad inserirsi perfettamente in questo sistema. Era in grado di vedere ogni cosa senza essere visto, poteva a copiare o manipolare dati senza lasciare tracce. Aveva imparato tutto questo con anni di esperienza, passati collegandosi alla rete per ore ed ore ogni notte con la sua interfaccia cerebrale, con il suo computer adeguatamente modificato e con il suo software capace di aggirare i controlli e le protezioni sempre nuove che venivano implementate nel sistema.
Continua a leggere

Pubblicato in Racconti | 3 Commenti

Navigare alternativi e creare PDF online

Il titolo non è un capolavoro di chiarezza, lo devo ammettere…
Comunque volevo solo fare un paio di segnazioni “computeristiche”:

La prima cosa che voglio dire si riallaccia al discorso dei web browser per Windows di qualche giorno fa, per aggiungere che ci sarebbe un altro browserino interessante da includere nella lista: si tratta di K-Meleon, finalmente arrivato alla versione 1.0. E’ gratuito, leggero, addirittura portatile (non necessita di installazione, per cui potete anche parcheggiarlo sul pen-drive USB) e funziona benissimo, in quanto è basato sul motore Geko (quello di Mozilla, per capirci). Fra i suoi punti a favore, la possibilià di personalizzare un trillione di opzioni che farà la felicità dei più smanettoni.

La seconda segnalazione invece potrebbe essere utile a chi avesse la necessità di creare occasionalmente un file PDF e volesse evitare di installare dei software specifici. C’è un sito, ExpressPDF, che vi crea il file che vi serve al volo e gratuitamente, tutto online, partendo da file Word, Excel e anche pagine web!

E per oggi è tutto.

Pubblicato in Informatica | Contrassegnato con , | Lascia un commento