Page 1 of 1

New photo's button

Posted: 15 Jul 2009, 02:42
by eissap
I was wondering if i would be possible to add an new photo button on to the menu. This way when new photo's are published there will be a button "word" "badge" which says that that gallery menu item has some new photo's to share. After "example" 7 days the button will disappear from the menu item.

I hope you like the idea and interested if this would be possible.

greetings,

Eissap

Posted: 17 Jul 2009, 07:43
by mjau-mjau
You mean that a new folder would exist which accesses the latest images?

Yes, this would be cool, although it is more complciated for a gallery like Imagevue because we rely on real-time physically reading folders and folder-structure, instead of some other galleries using database.

We were thinking of creating some "smartfolder" method, that could be used to create a virtual folder based on some conditions(for example only new images). Perhaps something for the future ...

Posted: 17 Jul 2009, 08:51
by eissap
I my opinion this should not be hard to make.
The big advantage you have is like you said is doing it real time.
As of i understand it, the folderdata.xml is used to make up the gallery.
With in the folderdata.xml another element could be added with a created date.

Combined with a setting within the backend "+7 days" a button could be created on that menu quite easily.
You could also make an extra function in the backend like "mark as new for 7 days" but this would be a dirty work arround which is working ;)

i fact as I'm thinking of it right now, you could ad an extra word in the current folderdata.xml under <folder> like "updated=$date" and reflect that against the current date. so you'll get $date minus currectdate = -3 eq $button_new

But correct me if i'm wrong.
If i have some spare time I'll set it up on my own site as a test.
i'll let you know the outcome.

can you tell me which page is making the menu ? it looks like it's not flash ?

Posted: 18 Jul 2009, 04:35
by mjau-mjau
eissap wrote:can you tell me which page is making the menu ? it looks like it's not flash ?
Flash renders the menu, but it gets the menu structure from PHP - Something like this:
www.photo.gallery/mygallery/?a=folders

Pain knows more about this stuff ...

Posted: 18 Jul 2009, 05:22
by eissap
I see that the date is already in there. Maybe by adding another date like UpdatedDate="06.01.2009"
Then you could do something like:
Code
if UpdatedDate = $date - 7{
 menu.item.class=updated
}else{
 menu.item.class=normal
}
Just my quick 2 cents.
Maybe Pain has something to add as well.

Posted: 19 Jul 2009, 15:51
by Nick
Actually interesting idea, we'll think about it, have to write down to not forget.

Posted: 06 Aug 2009, 23:55
by lowray1975
I was wondering if the "smart folder" mentioned below - that would show images uploaded in the last X days - is going to make it into a future release.

Just curious - it's a great idea!

Thanks!!!

Posted: 18 Aug 2009, 12:50
by mjau-mjau
It is a good idea, and we hope to implement it ...