Calendar: search for images per date of addition through a calendar Calendar: search for images per date of addition through a calendar
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Calendar: search for images per date of addition through a calendar

Started by François Keller, June 10, 2007, 09:04:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

François Keller

Calendar plugin

This plugin allow you, from a new menu button, to make a search on a precise date:
Choose the month in which you wish to carry out research from the displayed list.
A calendar show you the days where files were added. While clicking on the link of the day display the thumbs from these files.

This plugin use the phpclalendar class (http://www.cascade.org.uk/software/php/calendar/index.php)

INSTALL:
- unzip package to plugins folder and use plugin manager to install it


CONFIG:
- Modify the clalendar.inc.css to catch your theme

demo

LANGUAGE:
english.php and french.php are avaible in the package. Feel free translate in your language  ;)
Italian.php added (Thank's Lontano)
Dutch.php added (Thank's Hein)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Davide Renda

QuoteFeel free translate in your language
I do feel absolutely free today ;-) herewith attached italian translation.
Great work Frantz (as usual) :-))

François Keller

Thank's Lontano for your translation (will add it in the pack asp...)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

Frantz, keep on going  :D Another great plugin.

Dutch language added and i have a minor typo in the english.php

line 33
  'in_gallery'  => ' in he gallery', Missing a t there.

Hein

p.s. Slightly updated dutch.php

François Keller

Thank's Hein for yout contribution and for the typo report. Will be corrected asp.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

Frantz,

A small suggestion for this plugin. Would it be possible to add two arrows on the screen where the plugin displays the days in a month. One arrow for going one month back and one for going a month forward.

I updated dutch.php slightly again (again).. it reads better now in my language  ;)

Hein

François Keller

QuoteA small suggestion for this plugin. Would it be possible to add two arrows on the screen where the plugin displays the days in a month. One arrow for going one month back and one for going a month forward.
certainly possible but i must see how  ;)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

I was toying with EXIF data on some pictures and then it came to me. Would it be possible to let the calendar sort the pictures on the date that they were actually taken. That date can be retrieved from the EXIF data. Not sure if this is possible, it just sounded cool ;)

MarkP

Quote from: Hein on June 12, 2007, 10:20:53 AM
I was toying with EXIF data on some pictures and then it came to me. Would it be possible to let the calendar sort the pictures on the date that they were actually taken. That date can be retrieved from the EXIF data. Not sure if this is possible, it just sounded cool ;)

Excellent plugin....the idea above would be truly awesome!

François Keller

I'll see if it's possible to make this for the next version (possibility to choose between the two ways)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

AlexL

German lang-file added

and a question - how to arrange the button ? As not to be the first ? If you use the userdefined Menue-Button from DesignSettings-CoppermineSettings the Calender-button and the userdefinedButton was both shown in the LeftButtonDesign - see my screenshot

The second screenshot maybe a misconfig in my css - the "Used" Dates from your Calender are shown in a nearly not visible yellow - its from css or from PlugIn? I Use Igames theme.

And the last question for now - The used day shown in the 2nd pict is 2.8.2007 - after klick on this you come to 1.8.2007 and this was the rrealy day from upload - I'm sure! Have a look to next post

AlexL


François Keller

QuoteGerman lang-file added
Thank's AlexL for your contribution, will ad the lang file asp
QuoteThe second screenshot maybe a misconfig in my css - the "Used" Dates from your Calender are shown in a nearly not visible yellow - its from css or from PlugIn? I Use Igames theme.
It's probably in the plugin CSS, you must change this according your design
QuoteAnd the last question for now - The used day shown in the 2nd pict is 2.8.2007 - after klick on this you come to 1.8.2007 and this was the rrealy day from upload - I'm sure! Have a look to next post
I must have a look at this problem, thank's for reporting
Quoteand a question - how to arrange the button ? As not to be the first ? If you use the userdefined Menue-Button from DesignSettings-CoppermineSettings the Calender-button and the userdefinedButton was both shown in the LeftButtonDesign - see my screenshot
problem depending from the theme. I will see if it's possible to find a solution.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

tycho

Hi, I might have discovered a bug.... I'm a real CPG newbee so fogive if I'm wrong.  ???

I only want registered user to see my pics. So the logon is prompted when they visit the site.
But when when they do not logon but click on the Calendar button on the menu instead... the calendar is displayed  :o even when they are not logged on...
I really don't want this so I had to remove the plugin  :(
Then again I might did something really stupid. I'm not really sure.

Grtz, Tycho

François Keller

it's not a bug.
did you see this lines in the codebase.php ?
function calendar_page_start()
{
 
  global $template_sub_menu, $template_sub_menu_spacer, $template_sub_menu_button, $sub_menu_buttons;
    global $CONFIG, $lang_plugin_calendar;

    require ('plugins/calendar/include/init.inc.php');
    //if(USER_ID){//uncomment this line if you will only registred users to see the link
  calendar_add_admin_button('index.php?file=calendar/calendar',$lang_plugin_calendar['menu_link'],$lang_plugin_calendar['menu_link'],$lang_plugin_calendar['menu_link']);
//}//uncomment this line if you will only registred users to see the link

also just uncomment the two lines... ;)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

tycho

Oopss... no i didn't.  ::)
As i said i'm a real noob. I learn everyday!

I was afraid i could not use your contribution but now i can!  ;D
Thanks!

François Keller

QuoteOopss... no i didn't.  Roulement des yeux
As i said i'm a real noob. I learn everyday!
It's not a problem but use the word 'bug' carrefully  ;)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Farnsi

nice work, thanks!  :)

two little problems seem to appear:
the thumbnails of the videofiles are not displayed (no custom thumbs, just the ones which are shown on every videofile)
not all pcturethumbs are displayed, some are missing or the whole page shows no thumbs. on other dates it works perfedtly!

using a stramms modded 1.4.12.
Regards,
Farnsi

François Keller

Quotethe thumbnails of the videofiles are not displayed (no custom thumbs, just the ones which are shown on every videofile)
i doesn't use videofiles so i can't replicate the problem.
Quotenot all pcturethumbs are displayed, some are missing or the whole page shows no thumbs. on other dates it works perfedtly!
not sure to understant what you mean. Can you post a link to your gallery ?
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Farnsi

sorry, i was a bit in a hurry when i wrote that post and sure, here is my gallery
what i tried to tell you was, that on some dates all thumbs are displayed as they should be, on other dates they are only displayed partially and on others none are shown. a IE user would get a red cross. but see for yourself.  :)
Regards,
Farnsi