Wikidays Wordpress Plugin
ENGLISH
Wikipedia Days Wordpress Plugin allows you to easily request a link with Wikipedia information of a given date.
The stable version is 0.2 (April 2006) and right now there are 7 implemented languages (’es’,'en’,'fr’,'de’,'pt’,'pl’,'it’).
It must be compatible with WP 2.0+, if you test it in previous versions and works please contact me at oscardesigns at gmail dot com.
You can download it here (.tar.gz) or here (.zip), feel free to copy and redistribute it, this plugin is under the GNU GPL license.
The readme file contains info to install and use the plugin. You can also read it here if you want:
Sorry, my english is bad.
To install the plugin just follow this steps:
0) Open wikidays.php with a text editor.
1) Look at this line: “$wd_base_url= ‘/yourblogbaseurl/’;”
and replace ‘/yourblogbaseurl/’ with your base url on your server.For example, if my Blog is hosted at “www.freeutopia.net/oscarblog”, my base url is ‘/oscarblog/’. If my blog is hosted at “www.freeutopia.net” my base url is ‘/’.
2) Put “wikidays.php” and “wd” dir in your wordpress “/wp-content/plugins” directory on your server
3) put Image Wikipedia_small.jpg in your wordpress “/wp-content/images” directory on your server.
4) Open your browser and go to your blog’s Administration Panel (wp-admin)
5) Activate Plugin in the Plugins section on your Administration Panel.
It’s all ok!
—To use it you need to call this PHP function:
WikiDays ($day,$month,$language,$outputformat,$linktarget);
Now there are 4 languages implemented: ‘es’ (Spanish), ‘en’ (English), ‘de’ (Deustch), ‘fr’ (French), ‘pt’ (Portugese), ‘pl’ (Polski), ‘it’ (Italian)
Output formats: ‘image’ and ‘date’
Link Target: set the link target.Examples:
//Inside the loop (single.php, index.php ...)
< ?php echo WikiDays(get_the_time('j'),get_the_time('n') ,'es','image','_blank');?>
< ?php echo WikiDays(get_the_time('j'),get_the_time('n') ,'en','image','_parent');?>//From sidebar (Outside the loop)
< ?php echo WikiDays(date('j',time()),date('n',time()),'es','date','_blank');?>;
< ?php echo WikiDays(date('j',time()),date('n',time()),'en','date','_self');?>;
ESPAÑOL
El plugin Wikipedia Days para Wordpress te permite crear un link a Wikipedia para recoger información de una fecha dada.
La versión estable actual es la 0.2 y funciona en 7 distintos lenguajes (’es’,'en’,'de’,'fr’,'pl’,'pt’,'it’)
Debe ser compatible con las versiones de Wordpress 2.0 en adelante, si lo pruebas en una versión anterior y funciona por favor contacta conmigo en oscardesigns at gmail dot com.
Puedes descargarlo aquí (.tar.gz) o aquí (.zip), siéntete libre para copiar, mejorar y redistribuir este software, está bajo la licencia GNU GPL.
El fichero readme contiene información para la instalación (en inglés), de todos modos puedes leer esta información aquí:
Para instalar el plugin sigue estos pasos (una vez descomprimido):
0) Abre el fichero wikidays.php con un editor de texto.
1) Busca la siguiente línea: “$wd_base_url= ‘/yourblogbaseurl/’;”
y reemplaza ‘/yourblogbaseurl/’ por la url base de tu blog.Por ejemplo, si mi blog está alojado en “www.freeutopia.net/oscarblog” mi URL base es ‘/oscarblog’. Si mi blog está alojado en “www.freeutopia.net” mi url base es ‘/’.
2) Sube el fichero “wikidays.php” y el directorio “wd” a tu directorio de wordpress “/wp-content/plugins” (en el servidor)
3) Sube la imagen Wikipedia_small.jpg a la carpeta “/wp-content/images” de tu servidor.
4) Abre el navegador y entra al Panel de Administración de Wordpress
5) Activa el Plugin en la sección de Plugins.
Todo Ok.
—Para usarlo debes llamar a la siguiente función:
WikiDays ($día,$mes,$lenguaje,$formato_salida,$destinodellink);
Lenguaje: ‘es’ (Español), ‘en’ (Inglés), ‘de’ (Alemán), ‘fr’ (Francés), ‘pl’ (Polaco), ‘pt’ (Portugués) e ‘it’ (Italiano)
Formatos de salida: ‘image’ and ‘date’
Destino del link: Indica el target del link.Ejemplos:
//Inside the loop (single.php, index.php ...)
< ?php echo WikiDays(get_the_time('j'),get_the_time('n') ,'es','image','_blank');?>
< ?php echo WikiDays(get_the_time('j'),get_the_time('n') ,'en','image','_parent');?>//From sidebar (Outside the loop)
< ?php echo WikiDays(date('j',time()),date('n',time()),'es','date','_blank');?>;
< ?php echo WikiDays(date('j',time()),date('n',time()),'en','date','_self');?>;



