[ ENGLISH VERSION ] [ VERSION EN CASTELLANO ] [ VERSIÓ EN CATALÀ ]
Com que fa poc que vaig modificar el tema que faig servir al blog per a que soportés els nous widgets de Wordpress, he pensat que seria útil fer un widget del plugin Around this date in the past….
Per a fer-ho més fàcil, el widget és un plugin independent, així que NO és necessari tenir el plugin original funcionant.
Nom del plugin: Around this date in the past… – Widget Edition
URI del plugin:
http://www.junyent.org/blog/arxius/2006/05/20/around-this-date-in-the-past-wordpress-widget/
Descripció: Widget que mostra entrades/posts de les mateixes dates en anys anteriors (si n’hi ha)
Autor: Joan Junyent Tarrida
Versió: 0.7
Més informació: Around this date in the past…
Como hace poco modifiqué el tema que uso en el blog para añadirle soporte para los nuevos Widgets de Wordpress, he pensado que sería útil hacer un widget del plugin Around this date in the past….
Para hacerlo más fácil, el widget es un plugin independiente, así que NO es necesario tener el plugin original funcionando.
Nombre del plugin: Around this date in the past… – Widget Edition
URI del plugin:
http://www.junyent.org/blog/arxius/2006/05/20/around-this-date-in-the-past-wordpress-widget/
Descripción: Widget que muestra entradas/posts de las mismas fechas en el pasado (si las hay)
Autor: Joan Junyent Tarrida
Versión: 0.7
Más información y detalles: Around this date in the past…
As I recently modified the theme I use in my blog to add support for the new Wordpress Widgets, I’ve thought It would be useful making a widget of the Around this date in the past… plugin.
To make it easier, this widget is a standalone plugin so it is NOT necessary to have the original plugin installed.
Plugin Name: Around this date in the past… – Widget Edition
URI del plugin:
http://www.junyent.org/blog/arxius/2006/05/20/around-this-date-in-the-past-wordpress-widget/
Description: Widget that shows entries/posts around this date in the past (if they exist)
Autor: Joan Junyent Tarrida
Version: 0.7
More information and details: Around this date in the past…



26 Comments
Tengo un problema, como puedo generar una lista, donde se incuyan las semanas de años pasados, en mi caso particular quiero ingresar 3 años atras, que valores tengo que agregar para que se puedan visualizar posts de esos 3 años.
no se si me explique, disculpa, quiero que se visualizen posts de varios años atras. no solo de “tal año” sino de todos los años que tengo con el blog.
Nakadai,
En principio el plugin no permite eso. Sin embargo hay una facil solución.
1. Instalar el plugin de Around this date in the past i activarlo (Teóricamente también deberia funcionar con la versión widget pero no lo he comprobado)
2. Instalar un widget que permita inserir texto y php (por ejemplo el “King Text (+php) (+html)” http://www.blog.mediaprojekte.de/cms-systeme/wordpress-plugins/wordpress-widget-king-text/)
3. Escribir 3 llamadas al plugin. Un ejemplo de código seria el siguiente:
NOTA: Como me parece interesante esta funcionalidad, tomo nota y cuando tenga un poco de tiempo incorporo esta posibilidad al widget.
Hi. I found a “bug” in the widget that causes an HTML error. If I have a post with quotes in the post title. You Should Read “Book Title”, for example. you href link is fine. The issue is that the title attribute gets generated as title=”You Should Read “Book Title”". What happens is that title ends after the read and then you get an undefined book tile attribute, blah blah blah.
You need to regex the title to substitute ” for /” when creating the link.
Mike, the bug is fixed in version 0.6.1. Thanks for reporting and help provided
Dear,
The link to the download of this widget doesn’t work for me. Is it a dead link or Explorer causing the trouble I don’t know. Can you make a link with a different extension (.zip or .txt or something)? Or just email it to me?
Hope that helps,
Regards.
A really nice little plugin, thanks.
A few comments, if I may:
1) There should be the option to only display on the index page and/or the archive pages and/or single posts.
2) If on a month/week archive, then there should be the option to make the posts relative to that time, e.g. if viewing Jan 2005, then the widget should look at Jan 2004….
3) Ideally, there would be the ability to display some date information, e.g. title (year) or title (year/month). This would be customisable to allow 2007, 2007/05, May May 2007 etc.
4) It’d be nice if the text, or an excerpt, of the post could be displayed as an option.
I hope these help – thanks for a nice plugin.
Oh, as different years already seem to be in different lists, perhaps the neatest solution would be the option of
1) merging the different lists into one, or
2) allowing the user to choose to make the year a list header
e.g.
2006
title1
title2
title3
2005
title1
title2
title3
Joan,
I have fixed another html validation bug with & in post titles. I also added a (none) output if there are no posts. I can email you the changes.
Mike
Thanks Murk, I’ll take your suggestions on account. Stay tuned.
Suggestion 1. Low priority. This should be an option of the widgets feature itself. I this is important to you, you should take a look at Sidebar Modules plugin. My plugin should be compatible with SBM as well.
Suggestion 2. I’ll try to add it for the next-version (expected by mid-july)
Suggestion 3. Could you explain a bit more what you mean:
Suggestion 4. Also added for the next version.
Suggestion 5. I think it’s more correct to have different lists for different years. In addition it means it’s easier to style. Could you give me a reason to put everything in one list?
What I mean by 3) is that there is no visual indication as to which date a post is from, it’d be nice to be able to include that.
e.g.
-2005
–title 1
–title 2
-2006
–title 3
–title 4
I think it’s better to have a list of years with the title as sublists, as this would allow for better css flexibility
Actually the best option would be to be able to choose between the above and a seperate list for each year (with the year visible) and an alphabetical single list of titles with the relevant year on brackets after each one.
Llevo más de un año utilizando el plugin y en la última actualización de mi blog puse la última versión y me da fallo.
Cada vez que incluyo un comentario, una entrada nueva, guardo una entrada, o cambio algo, me da un fallo similar a este:
Warning: Cannot modify header information – headers already sent by (output started at /var/www/ablogios.mundodisco.net/htdocs/wp-content/plugins/around-this-date-in-the-past-widget-edition/aroundthisdate_wdgt.php:1) in /var/www/ablogios.mundodisco.net/htdocs/wp-includes/pluggable.php on line 329
No logro conseguir arreglarlo (en realidad no logro encontrar donde falla). ¿Podrías ayudarme? Si no volveré a una versión anterior… pero esta me gusta más. :)
Karme, la versión 0.7.2 debería solucionar tus problemas.
Si continua dandote problemas necesitaría saber la versión de
Wordpress que utilizas y los otros plugins que tienes activados.
un saludo,
Hey Joan,
I’m using your plugin for a while, until today in WP 2.23 in Version 0.61. Today I tried to upgrade to 0.73 and it showed me following error:
Warning: Cannot modify header information – headers already sent by (output started at /home/www/web61/html/wp-content/plugins/aroundthisdate_wdgt.php:1) in /home/www/web61/html/wp-content/plugins/polls/polls.php on line 1088
Warning: Cannot modify header information – headers already sent by (output started at /home/www/web61/html/wp-content/plugins/aroundthisdate_wdgt.php:1) in /home/www/web61/html/wp-content/plugins/postratings/postratings.php on line 652
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/www/web61/html/wp-content/plugins/aroundthisdate_wdgt.php:1) in /home/www/web61/html/wp-content/plugins/pxsmail.php on line 2
It would be great if you can help me.
Another question. Will it also work in 2.3? I’m going to upgrade pretty soon.
Thanks a lot for your help in advance. I really appreciate that.
Alex
@Alex:
Hey Alex,
I’ll try to replicate your problem and fix it ASAP (most probably by next weekend).
I’ve not tested it with 2.3 yet but it should work (I didn’t receive any complain about that at least).
Joan
@Alex:
Hey Alex,
I’ll try to replicate your problem and fix it ASAP. Most likely is a conflicting function with the other plugins but have you tried deleting it and installing again? just to make sure the plugin file didn’t get corrupted when uploading or something.
Thanks for reporting
Thanks for the plug-in. It is just what I was looking for. I have one suggestion. I use it to display x number of years. I would like an option to only show the “none” text if there are not any post for any of the years. It seems to show it for every year that there is not any text.
@Drake:
Due to the way it is organized the plugin it’s a bit tricky to implement what you want. But I’ll take into consideration.
Thank-you for the suggestion.
Hola Joan,
I checked your code for validation and there are two errors. In line 218 – 220 you have to wrap the “li” with a “ul”
and also it’s not allowed to have “class=” within “a href”
I hope that helps to make your code more valid.
Alex
BTW. there is a plugin “chunk url” which cuts long URLs and will help not to mess up your website, because of long URLs
Hi Alex,
Thanks for the point. It’s fixed now (v.0.7.6)
Hey Joan,
thanks for changing it, but I cannot find the download link for you plugin. The only thing what I found was Version 0.7, that’s it.
Alex
Hey Joan,
sorry i found it, but after I clicked on the link in my WP plugins Admin Panel. All the links on your website don’t work or going to the old 0.7 Version on the WordPress website when I click the link on your Wiki page for example.
Alex
Version 0.7.6 doesn’t seem to properly handle showing of posts that:
a) have quotes in their title (they show up as “"e;”)
b) have captions in the posting (you see [caption])
~Andrew~
Fixed in 0.7.7. Thanks for reporting!
Hello,
Love your widget. Is there a way to filter by category?
We would like to show all post from the last year in a certain category.
Hey Chris,
The widget can’t do that ‘out-of-the box’.
You might get that functionality by pasting the code below after line 191 in the plugin. Replace CATEGORY-ID with the ID of the desired category.
// Start category hack
$categoryfilter = 'CATEGORY-ID';
$q .= $wpdb->prepare(" AND %d = 'category'", $wpdb->term_taxonomy.taxonomy);
$q .= $wpdb->prepare(" AND %d = %d ", $wpdb->term_taxonomy.term_id, $categoryfilter);
// End categoy hack
Plese note that this is an untested solution.
I hope It helps
Joan
22 Trackbacks
[...] ACTUALITZACIÓ: Si el tema que utilitzes al teu blog soporta els nous Widgets de Wordpress, possiblement t’interessa més la versió “Widget Edition” d’aquest mateix plugin. Pots descarregar-la d’aquí: http://www.junyent.org/blog/arxius/2006/05/20/around-this-date-in-the-past-wordpress-widget/ [...]
[...] He corregit un error dels plugins Around this date in the past… i Around this date in the past… Widget Edition. [...]
[...] Joan sent us a link to a widgetized version of Around this date in the past… which will generate a list of posts published on your blog around the same date in previous years. (New bloggers might want to wait a few months before installing this one. ) [...]
[...] He corregit un parell d’errors dels plugins Around this date in the past… i Around this date in the past… Widget Edition. [...]
[...] Gràcies a una aportació de Luís Pérez (aka Cinéfilo) els plugins Around this date in the past… i Around this date in the past… Widget Edition ara generen codi XHTML vàlid. [...]
[...] [ ] Categories – Category Replacement Widget – much better is King Categories, which looks like exactly what I wanted. There is also a plugin-and-widget Folding Categories list, which looks interesting. [ ] Fun – a rotating quotes widget, the Joe’s quotes widget. Also Around this date in the Past, a stand-alone widget that pulls old posts…. [ ] Comments – Fresh Comments looks excellent, exactly what I need. [ ] Tags – Tag cloud – requires Tag Warrior plugin – also – Jerome’s Keywords [ ] Gallery2 integration wpg2imageblock – which depends on WPG2, a plugin that integrates Wordpress with Gallery2. [...]
[...] – Calendar – Incorporado al instalar widgets. – Recents comments – Incorporado al instalar widgets. – Category Cloud – Plugin que se basa en las categorías que se crean en el blog, puedes elegir el tamaño de la fuente, estas “nubes” crecen según sea la cantidad de post en cada una de ellas. – SideBlog wordpress plugin – Esencial si deseas un paralelo al main blog, integrando un pequeño blog lateral (o donde se encuentre la barra widget) dando otras perspectivas o noticias. – Plugins usan plugin – Widget con el único beneficio de mostrar los plugins instalados en tal pagina para su administración. – Around this date – Plugin de utilidad para mostrar otros post de años atrás en esa misma semana, con el widget las opciones son mas fáciles de personalizar gracias a que no se toca el código fuente. – Flickr Widget – Muestra las imagenes de tu álbum en Flickr. [...]
[...] Arran d’un comentari d’en Nakadai vaig decidir millorar el Widget per a WordPress Around this date in the past… [...]
[...] interesting new widget – the ‘one year ago‘. and finally the advantage of dragging and dropping code is seen. since everything else is set up;experimentation might be very interesting, now.. [...]
[...] Message in a bottle…. » Blog Archive » Around this date in the past… Widget Edition (tags: wordpress widget plugin) [...]
[...] corregit un error del plugin Around this date in the past… (i del wigdet derivat d’aquest mateix plugin). El problema passava quan el títol de les entrades contenia “cometes dobles” ja que [...]
[...] un marge de 3 dies més i menys de l’actual). Per fer això he utilitzat el plugin “Around this date in the past… Widget Edition” Espero que us agradi la nova incorporació (No hi ha vots) Loading [...]
[...] Visit [...]
[...] Esto demuestra que los plugins funcionan, así que os recomiendo este. [...]
[...] Visit [...]
[...] actualitzat el plugin Around this date in the past… a la versió [...]
[...] Visit [...]
[...] Around this date in the past… – Widget Edition [...]
[...] Around this date in the past… – Widget Edition [...]
[...] Around this date in the past… – Widget Edition – Dieser Helfer zeigt in der Sidebar unten rechts Beiträge an, die vor drei Jahren hier erschienen sind. Das verschafft also einen schlaglichtartigen Blick zurück ins Archiv. [...]
useful wordpress plugins…
here’s a list of useful wordpress plugins that i use to extend the functionality of this blog:
akismet (plugin homepage) makes comment spam history.
all in one SEO pack (plugin homepage) takes care of search engine optimization.
ar…
[...] unos días, también, puse el widget Around this date in the past… en plan nostálgico; aquí, a la derecha, que recuerda lo que se escribió el año pasado y el [...]