![]() |
|
Calendar window to search form, calendar view of archive - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Calendar window to search form, calendar view of archive (/thread-7229.html) |
Calendar window to search form, calendar view of archive - Jaanus - 2010-06-20 Hi all, Another little idea - is there some particular cause why we can not give to archive a calendar view? That means the visitor could choose if he/she want to see picture arhive as it is displayed today (list of years, months) or as a calendar view? Also, not most important but still very nice would be an iCal feed for those people who may want to show (links to) pictures in their calendar (Google etc). Calendar window to search form, calendar view of archive - acrylian - 2010-06-20 Ideas are always welcome, but we probably won't do any of these. Some can be done via theming or plugins. Might require some work though. So you are invited to provide third party solutions for what you need and provide it for others. Calendar window to search form, calendar view of archive - sbillard - 2010-06-20 The search engine is quite capable of searching by date. You will just have to provide the user interface to do so. Archive pages are, of course, theme dependent. I am sure that the Zenphoto structure would support doing what you wish. Calendar window to search form, calendar view of archive - Jaanus - 2010-06-20 Thank you for replies. Sorry I have not enough programming skills. I just hope that someone who have skills read this and "take the fire". But can you tell me how to make with today's search form query par exemple "between 2009-07-12 and 2010-01-01" to see pictures taken during this periode? Calendar window to search form, calendar view of archive - sbillard - 2010-06-21 You can look at the archive page of one of the standard themes to see how it does searches on dates. Beyond that you will have to look at the class-search script to see what facilities it provides. Calendar window to search form, calendar view of archive - spmeckar - 2010-07-19 Hi everyone! But I have a problem. I have done the SQL request so that I have one picture per day but then I do not have informations about the picture: album that it belongs to, paht of the picture to display it, ... and I would like that when I click on the picture, I use the "search" page to display the pictures from the selected day. Could you please explain me, how to create the plugin properly so that I use the Image class and use the search engine. Thanks. PS: I hope you understood everything :-) Calendar window to search form, calendar view of archive - acrylian - 2010-07-19 You should look at the object model tutorial. Calendar window to search form, calendar view of archive - spmeckar - 2010-07-19 I went trough this tutorial but it didn't help. It doesn't explain where the SQL request must be given, and what are the information needed to create an object. For example, to create an album object, I need to have a gallery object and the folder name, and to create an image object, I need an album object and the file name of the picture. But I do not have the information at the beginning. I have only the SQL request. --- Edit For example, I have two albums in September 2009. Those two albums are on the 4 and 12. So my SQL request fetches the first picture of both dates. As result, I have an array of two picture with al the information about the picture and the album it belongs too. I'm really sorry for my questions and my ignorance. Calendar window to search form, calendar view of archive - acrylian - 2010-07-19 The gallery object is normally automatically stored in the global If you don't know the album name and/or image name before hand you have to get them. There are methods like If you know the names of the albums, create an object of theme and then use Since you want a calendar it would be better to get images by date or mtime for each date first via SQL and then create an object from that for each. Each image has a albumid so that you then can get its album via SQL as well. Calendar window to search form, calendar view of archive - spmeckar - 2010-07-19 Thank you for the answer! I managed to create my objects and display the thumbnails. Youhouuu!!! :-). Now the second part, is to link those thumbnails with the search page and the right date. So that the search page, displays all the pictures of the selected date. I will take example from the original archive page. When I'm finished with the calendar, I will post the code, so that it can be improved, before publishing it as a plugin. Calendar window to search form, calendar view of archive - spmeckar - 2010-07-20 Hi everyone! So here is the code. `
$plugin_description = gettext("Prints a calendar with a picture in each day where pictures belong to."); class Calendar {
Calendar window to search form, calendar view of archive - acrylian - 2010-07-22 I took just a quick look and will wait for any download to test. Why don't you use a global variable for the calendar object instead of having each function create it's own object? Although it probably works the class object you create with Calendar window to search form, calendar view of archive - theWholeLifeToLearn - 2010-07-22 Hi! I have created a post for this plug-in few seconds ago at this page: |