time restriction time restriction
 

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

time restriction

Started by hama, November 27, 2004, 03:10:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hama


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
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

hama


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
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Nibbler

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.

hama


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
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Joachim Müller

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