PDA

View Full Version : New Addon: Text Archive


kevincrafts
01-11-2008, 01:42 PM
The Text Archive addon will display the archive of your photoblog in a text list sorted by month. There is also another tag that will allow you to show your categories in the same type of view but sorted by category name.

Instructions:

1. Put text_archive.php in your addons folder.
2. Put <TEXTARCHIVE> on a template. Although you can use the browse template, I would suggest making another html template so you can still use the browse page for thumbnails. For the category archive, use <CATEGORYTEXTARCHIVE>

See a Demo (http://blog.kevincrafts.com/index.php?x=list)

Download (http://www.pixelpost.org/extend/addons/text-archive-addon/download/)

fredxeric
01-11-2008, 03:13 PM
Oups remove my post because I didnt test it before posting my comment

two40
01-12-2008, 06:38 AM
Looks really handy for large databases. Good job.

rk.balla
01-12-2008, 05:16 PM
Neat and informative addon.. installs in a breeze.
Thanks.

posefius
01-15-2008, 12:21 PM
Hello Kevin,

This is a very handy addon. But I have a very large database with a lot of future posts in the archive. The list contains also the headers of the future months. Is it possible to modify the addon so that it doesn't list the months of future posts.

Thanks

kevincrafts
01-15-2008, 01:30 PM
Ahh I hadn't thought about that - I only looked for that when I did the queries for the posts - let me work on it. Thanks for pointing this out.

kevincrafts
01-15-2008, 02:24 PM
Done.

Download (http://www.pixelpost.org/extend/addons/text-archive-addon/download/)

Dkozikowski
01-15-2008, 02:27 PM
Kevin, you're going to want to put WHERE datetime<='$cdate' in your SQL query. You might also need to make $cdate a global variable.

EDIT: You beat me too it. Good job :)

posefius
01-15-2008, 02:34 PM
Kevin,

You are very quick, it works fine now!

Thanks

Dr.Ozdi
01-20-2008, 06:46 AM
I need change date format to the similar as show "image_template" (yyyy/mm/dd, 2008/01/20), can you help me?

Very usefull addon, thanks for it!

kevincrafts
01-20-2008, 10:02 AM
I've updated the addon to use the date format from the Options menu.

Download (http://www.pixelpost.org/extend/addons/text-archive-addon/download/)

Dr.Ozdi
01-20-2008, 03:05 PM
I tried it, but date format in Text Archive is independent to date format in Options. I use 1.5ver, may be itīs reason.

Finner
02-04-2008, 01:31 AM
Thankd for this great addon, I just installed this and like what it offers, however I am also finding that it's not using the date format set in my options menu.. would like dd/mm/yyyy.. am using PP 1.7.1.

kevincrafts
02-04-2008, 04:58 AM
I could swear I put up the latest version but I must have lost track where I was keeping things. Anyways, I just put up a new version that uses the date format option.

Finner
02-04-2008, 05:59 AM
Not to worry - just downloaded the latest version (1.2) from its page and all works well now. Thanks for fixing that, and so quickly! :D

Finner
04-12-2008, 11:30 AM
Got a couple of quick questions/requests...

Is it possible to have the list sort by image date, not id..? I have some images with an EXIF date before the date of other images added before it (..does that make sense?), thus getting the list for that month out of order.

Also, i'd also like to sort the list within the month in ascending order, just to keep the more recent images always to the top of the list...

kevincrafts
04-12-2008, 06:38 PM
It's sorting by the date added - if you want that to be the EXIF date then you should add your photos by EXIF date.

As for your other question, the images sort within the month in descending order, showing the newest images first/at the top of the list.

Got a couple of quick questions/requests...

Is it possible to have the list sort by image date, not id..? I have some images with an EXIF date before the date of other images added before it (..does that make sense?), thus getting the list for that month out of order.

Also, i'd also like to sort the list within the month in ascending order, just to keep the more recent images always to the top of the list...

Finner
04-13-2008, 12:04 AM
It's sorting by the date added - if you want that to be the EXIF date then you should add your photos by EXIF date.

But that's why I'm asking if this can be changed... adding by EXIF date isn't always so easy when you go back through your photos and find an oldie you'd like to add, or even in the case that I find a photo from yesterday to add after I've added one from today.


As for your other question, the images sort within the month in descending order, showing the newest images first/at the top of the list.

Hrm.. mine seems to show the most recent for the month at the bottom of the list, but this could be a result relating to my first question anyway..

kevincrafts
04-13-2008, 12:48 AM
It makes sense for it to sort by the datetime field, since that is what pixelpost sorts by. I am unaware of a good way to sort by the exif data since it is a serialized array. I would find it confusing if your photos were ordered in two different ways (date published vs date taken).

Have you hacked the addon at all? For instance, I noticed the date doesn't show for each post.

But that's why I'm asking if this can be changed... adding by EXIF date isn't always so easy when you go back through your photos and find an oldie you'd like to add, or even in the case that I find a photo from yesterday to add after I've added one from today.




Hrm.. mine seems to show the most recent for the month at the bottom of the list, but this could be a result relating to my first question anyway..

Nugenca
05-10-2008, 09:44 AM
I need help too..

When I entered the code textarchieve it comes like this
2008-02-23 17:25:08 -Picture Name-

How will I delete the time info from this ?

Can you help me?

thanks

Nugenca
05-10-2008, 09:53 AM
Ok... I find It.. :)))))))))))

I need help too..

When I entered the code textarchieve it comes like this
2008-02-23 17:25:08 -Picture Name-

How will I delete the time info from this ?

Can you help me?

thanks