coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: hama on November 27, 2004, 03:10:05 PM

Title: time restriction
Post by: hama on November 27, 2004, 03:10:05 PM

Is it possible to have a time restriction for a specific category or a specific album (for example album=108)?

I inserted some games in my gallery and now it could be good to set a time restriction so that the kids first do their homework  ;) and only can play for example between 1 and 2 pm and between 20 and 22 pm swiss time.

--> http://www.dorfschule.ch/copper/thumbnails.php?album=108

Thanks for any ideas or codes and thanks to "omniscientdeveloper" for the idea inserting flash games in a gallery (it works without any problems).

hama
Title: Re: time restriction
Post by: kegobeer on November 27, 2004, 04:08:24 PM
It may be possible, but it won't be something the dev team will develop.  Sorry, but this isn't a feature that the majority of Coppermine users will need.
Title: Re: time restriction
Post by: hama on November 27, 2004, 04:40:50 PM

I totaly understand that the dev team won't develop something like that (I'm happy that they work on version 4.0 of cpg).  :)

My question is just an idea and maybe someone has already a solution.

It's really not a job of the dev team ... there are about 10661 members in this forum (it's big).

hama
Title: Re: time restriction
Post by: Nibbler on November 27, 2004, 04:45:26 PM
Feature requests are requests for features to be in the next version of coppermine. If you are simply asking for a mod, you should ask in the general support area.
Title: Re: time restriction
Post by: hama on November 27, 2004, 04:53:06 PM

Ok, I understand.

Can you move it to the general support area or is it better when I start a new topic in the right area?

Thanks

hama
Title: Re: time restriction
Post by: Joachim Müller on December 02, 2004, 09:21:29 AM
the place to insert such a function would be in include/init.inc.php, something like this (no working code, just a rough sketch):if (date('Hi') < $your_allowed_start_time OR date('Hi') > $your_allowed_end_time)
{
cpg_die('Do your homework first');
}


Joachim