PDA

View Full Version : Lock attachments until date/time has been reached


jj
04-18-2006, 10:00 PM
Just created this small plugin, which will lock the display of attachments in posts until a defined date/time has been reached. There's nothin special about it, but I wanted to share it, maybe someone looked for something like this.

Usage: Just enter the string {lockattachment:19042006:2000} in the post with the attachment and the attachment of that post will not be viewable/downloadable before April, 19th 2006 at 8 o'clock pm.

One more example:
{lockattachment:20052007:1330}
will be May, 20th 2007, 13:30


German and English version attached.

Kihon Kata
04-19-2006, 03:14 PM
Thanks for making this. I could use this, if it could be set per usergroup OR...even better, PER USER ;)

Urban Forums
04-19-2006, 03:16 PM
nice little mod, i may install it later...

jj
04-19-2006, 03:24 PM
Thanks for making this. I could use this, if it could be set per usergroup OR...even better, PER USER ;)

I'm thinking of enhancing the plugin with other options like locking attachments for usergroups/users, too :) If you've got more suggestions, feel free to post them.

Barakat
04-20-2006, 12:36 AM
what a great hack and a very nice idea was released . thanks a lot >

criscokid
04-20-2006, 02:43 PM
Just created this small plugin, which will lock the display of attachments in posts until a defined date/time has been reached. There's nothin special about it, but I wanted to share it, maybe someone looked for something like this.
How easy would it be for you to implimenet this idea in a new mod to automatically close a forum thread on a particular date and time?

Nachtfalke
04-22-2006, 08:21 PM
Nice one. Installed it and worked like a charm ...

NR Fatal
04-23-2006, 04:00 AM
Nice hack, it would be cool to have what Kihon kata said, it would also be cool if you could keep a certain thread closed(not veiwable except the TITLE of the post ya know?) until "X" date and "X" time, I could use somethin with all those features a lot!

webgroup
05-26-2006, 06:10 AM
this works by specific attachment in an speficic post?
or affects all the attachments in the forum?

EDIT: Got it!! Great plugin!!