Advanced search  

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]

Pages: [1]   Go Down

Author Topic: time restriction  (Read 3960 times)

0 Members and 1 Guest are viewing this topic.

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
time restriction
« 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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: time restriction
« Reply #1 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.
Logged
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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: time restriction
« Reply #2 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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Nibbler

  • Guest
Re: time restriction
« Reply #3 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.
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: time restriction
« Reply #4 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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: time restriction
« Reply #5 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):
Code: [Select]
if (date('Hi') < $your_allowed_start_time OR date('Hi') > $your_allowed_end_time)
{
cpg_die('Do your homework first');
}

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.076 seconds with 14 queries.