vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Lock attachments until date/time has been reached (https://vborg.vbsupport.ru/showthread.php?t=113447)

jj 04-18-2006 10:00 PM

Lock attachments until date/time has been reached
 
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
Code:

{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:
Code:

{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

Quote:

Originally Posted by Kihon Kata
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

Quote:

Originally Posted by jj
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!!


All times are GMT. The time now is 03:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01031 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete