Search…

X3 Photo Gallery Support Forums

Search…
 
eissap
Experienced
Topic Author
Posts: 67
Joined: 22 Dec 2006, 09:49

New photo's button

15 Jul 2009, 02:42

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

17 Jul 2009, 07:43

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 ...
 
eissap
Experienced
Topic Author
Posts: 67
Joined: 22 Dec 2006, 09:49

17 Jul 2009, 08:51

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 ?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

18 Jul 2009, 04:35

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 ...
 
eissap
Experienced
Topic Author
Posts: 67
Joined: 22 Dec 2006, 09:49

18 Jul 2009, 05:22

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.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

19 Jul 2009, 15:51

Actually interesting idea, we'll think about it, have to write down to not forget.
firedev.com
 
lowray1975
Experienced
Posts: 137
Joined: 26 Jul 2008, 08:04

06 Aug 2009, 23:55

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!!!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

18 Aug 2009, 12:50

It is a good idea, and we hope to implement it ...