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)
-   -   Disable reply on thread if last reply is older than X (https://vborg.vbsupport.ru/showthread.php?t=83276)

Frenck 06-16-2005 10:00 PM

Disable reply on thread if last reply is older than X
 
With this plugin you can disable the ability to reply on a thread that already has some dust on top.

For example, if you set this plugin to 14 days, than 14 days after the last reply it would be impossible to add a new reply to the thread.

There is one exception! You can specify usergroups that aren't restricted by this plugin.


Installation

- Go to the 'Phrase Manager' in your ACP and create a new phrase.

Type: Error Messages
Varname: thread_replytime_expired
Text: Sorry, this thread has expired, you cannot reply to this thread anymore.

- Download the plugin and upload it into your ACP.
- Go to the 'Plugin Manager' in your ACP and edit this plugin
- Directly in top of the code you wil find a couple of settings you can do.



It's a very small and simple plugin, but I found it usefull enough to share it with you :)

Marco van Herwaarden 06-17-2005 12:23 PM

Thank you for sharing this Frenck.

Could you please upload it as a zip-file as requested here: Hacks should be released in ONE ZIP file please

Frenck 06-17-2005 12:26 PM

Ow ok, sorry for that.

Done :)

Marco van Herwaarden 06-17-2005 12:49 PM

Thanks for re-uploading.

mholtum 06-17-2005 01:17 PM

nice work
/me installs

TCattitude 06-17-2005 08:01 PM

What a nice hack :)

ImportPassion 06-17-2005 10:35 PM

man, i want this for 3.07

yinyang 06-18-2005 05:36 AM

so, in effect, it is like closing the thread after 14 days... right?

mholtum 06-18-2005 06:01 AM

That is correct

Freezerator 06-19-2005 07:04 AM

Can this be made that instead of not replying, a user sees a warning, but still can reply?


All times are GMT. The time now is 12:34 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.01032 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete