Around this date in the past… Widget Edition


[ 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…

23 Comments

  1. Posted 25/6/2006 at 12:53 pm | Permalink

    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.

  2. Posted 25/6/2006 at 1:25 pm | Permalink

    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.

  3. Posted 30/6/2006 at 6:32 pm | Permalink

    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:

    < ?php around_this_date ($before = 'Hace un año... ', $after = '‘, $daysbefore=’3′, $daysafter=’3′, $yearsago = ‘1′, $limit = ‘5′); ?>
    
    < ?php around_this_date ($before = 'Hace dos años... ', $after = '‘, $daysbefore=’3′, $daysafter=’3′, $yearsago = ‘2′, $limit = ‘5′); ?>
    
    < ?php around_this_date ($before = 'Hace tres años... ', $after = '‘, $daysbefore=’3′, $daysafter=’3′, $yearsago = ‘3′, $limit = ‘5′); ?>
    

    NOTA: Como me parece interesante esta funcionalidad, tomo nota y cuando tenga un poco de tiempo incorporo esta posibilidad al widget.

  4. Mike
    Posted 9/2/2007 at 5:57 pm | Permalink

    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.

  5. Posted 13/2/2007 at 5:49 pm | Permalink

    Mike, the bug is fixed in version 0.6.1. Thanks for reporting and help provided

  6. Bibianne
    Posted 21/2/2007 at 10:27 pm | Permalink

    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.

  7. Posted 12/6/2007 at 10:37 pm | Permalink

    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.

  8. Posted 12/6/2007 at 10:42 pm | Permalink

    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

  9. Posted 14/6/2007 at 3:53 pm | Permalink

    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

  10. Posted 14/6/2007 at 6:42 pm | Permalink

    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:

    Ideally, there would be the ability to display some date information, e.g. title (year) or title (year/month). This would be customizable to allow 2007, 2007/05, May May 2007 etc.

    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?

  11. Posted 14/6/2007 at 7:46 pm | Permalink

    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.

  12. Posted 8/8/2007 at 11:29 am | Permalink

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

  13. Posted 8/8/2007 at 1:07 pm | Permalink

    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,

  14. Posted 18/10/2007 at 10:34 pm | Permalink

    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

  15. Posted 23/10/2007 at 1:07 am | Permalink

    @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

  16. Posted 23/10/2007 at 1:11 am | Permalink

    @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

  17. Posted 27/10/2007 at 5:15 pm | Permalink

    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.

  18. Posted 27/10/2007 at 6:07 pm | Permalink

    @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.

  19. Posted 5/11/2007 at 12:02 am | Permalink

    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

  20. Posted 9/11/2007 at 3:19 pm | Permalink

    Hi Alex,

    Thanks for the point. It’s fixed now (v.0.7.6)

  21. Posted 10/11/2007 at 12:57 am | Permalink

    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

  22. Posted 10/11/2007 at 1:13 am | Permalink

    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

  23. Posted 6/10/2008 at 12:33 pm | Permalink

    Всё о ремонте: ремонт квартир отделка евроремонт офисов капитальный ремонт москва ремонт квартир коттеджей ремонт 2108 ремонт сцепления ремонт москва ремонт отделочные материалы ремонт акпп ремонт пластик samsung ремонт
    http:\\rssv.ru

17 Trackbacks

  1. [...] 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/ [...]

  2. [...] He corregit un error dels plugins Around this date in the past… i Around this date in the past… Widget Edition. [...]

  3. [...] 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. ) [...]

  4. [...] He corregit un parell d’errors dels plugins Around this date in the past… i Around this date in the past… Widget Edition. [...]

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

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

  7. By PLÁSTICO. · Lista de Widgets. on 25/6/2006 at 10:44 am

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

  8. [...] Arran d’un comentari d’en Nakadai vaig decidir millorar el Widget per a WordPress Around this date in the past… [...]

  9. By staying.cool | add-on on 11/7/2006 at 1:33 am

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

  10. [...] Message in a bottle…. » Blog Archive » Around this date in the past… Widget Edition (tags: wordpress widget plugin) [...]

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

  12. By Ara fa un any… » ウリオル on 29/3/2007 at 2:10 pm

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

  13. [...] Visit [...]

  14. [...] Esto demuestra que los plugins funcionan, así que os recomiendo este. [...]

  15. [...] Visit [...]

  16. [...] actualitzat el plugin Around this date in the past… a la versió [...]

  17. [...] Visit [...]

Post a Comment

Your email is never published nor shared.