vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Threads Auto Close (by Usergroup) (https://vborg.vbsupport.ru/showthread.php?t=255589)

aileron79 12-19-2010 10:00 PM

Threads Auto Close (by Usergroup)
 
1 Attachment(s)
Hi everybody,

User Vitaly allowed me to modify his Threads Auto Close Add-on. I found it quite useful as new members to our forums quite often dig up very old threads. With Vitaly's add-on, threads appeared as closed to all users after a certain period of time. With this modified version it further is possible to set user groups to which threads appear as closed. Further, it is possible to apply this mod to certain forums (by providing forum IDs).

NEW: Auto close threads when reaching a certain amount of posts
This feature was requested below, so now threads appear as closed either if they are older than X days or if there are more than Y replies.

When installing this mod please consider the following facts:
- Threads are not closed automatically, they appear as if they were closed. Thus, when deactivating or uninstalling this mod, threads are open again.
- This is my first mod. I am just getting familiar with vB4's plugin system. I am a PHP developer but I've never been coding anything for vb. This seemed to be an easy mod to start with, like my personal Hello World vB mod.
- I have tested this mod successfully with vb4.1.0 PL2. I guess it works with v4.0.* as well but I have not verified that.
- I am not (yet) really into this vB4 hacking stuff. I have taken some piece of code from the community, I have modified it according to my needs, now I am giving my modifications back to the community hoping that somebody may find it useful. Therefore, please do not ask me to support this code. If you have any questions, feel free to post them here but please make sure you have checked the original thread as well, you may find an answer there.
- If I did anything wrong, please be assured I did not do it on purpose. As mentioned before, this is my first vb mod ever. However, you are welcome to provide feedback or to suggest how to improve this add-on.

Hope you find this as useful as I do, thanks again to Vitaly for the original code.

Make sure to download the 0.5 version as this is the latest one!

Merjawy 12-20-2010 08:52 PM

Thanks.. I have great use for this

dontpanic 12-21-2010 11:13 AM

Excellent, installed!

dracon00 12-21-2010 02:13 PM

Can you make a option to close thread after a certain amount of post?

FReeSTER 12-21-2010 02:57 PM

Quote:

Originally Posted by dracon00 (Post 2137211)
Can you make a option to close thread after a certain amount of post?

and to make it work per Forum ID?
Good mod thanks
Rated and tagged

aileron79 12-21-2010 04:02 PM

Quote:

Originally Posted by El Intocable (Post 2137233)
and to make it work per Forum ID?

That is already possible, that was also possible in Vitaly's original mod. Added that to the description.

aileron79 12-21-2010 04:05 PM

Quote:

Originally Posted by dracon00 (Post 2137211)
Can you make a option to close thread after a certain amount of post?

Would be a good exercise... I'll try, but no promises :)

aileron79 12-22-2010 09:08 AM

As requested, Threads may now automatically be closed when reaching a certain amount of replies. (Note that it is the replies, this excludes the first post in a thread.) This means that threads now appear as closed if one of the following conditions - or both - occur:

- thread has reached the maximum amount of replies
- thread is older than X days

additionally, this behavior may be restricted to certain user groups and/or particular forums.

(Personally, I have no idea why one would only allow a certain amount of posts but as mentioned before, this was requested and it was quite an easy but good exercise)

Hope you like it though. Be sure do download V 0.5 which is the new one. Feedback is appreciated :)

dracon00 12-22-2010 04:10 PM

Thanks !!!!

installed and nominated

FReeSTER 12-22-2010 07:49 PM

Quote:

Originally Posted by aileron79 (Post 2137250)
That is already possible, that was also possible in Vitaly's original mod. Added that to the description.

Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :):):):):up::up::up:

Janmaat 02-28-2011 12:41 PM

Will it work with 4.1.2?


==> Answer: Yes! :)

DaninMS 03-21-2011 10:02 PM

Thanks!

Sforums 04-14-2011 03:30 PM

There is a conflict with "BBR - Welcome Thread Upon Registration".
I've setup automatic welcoming for new members but also decided to close those threads after 90 days with this hack. Now, welcoming feature no longer works. Had to uninstall this.

Using 4.1.0 PL2

ozzy47 05-28-2011 01:13 PM

I installed this and selected a forum to close the threads, but it still allows posts to be made in the thread.
v4.1.3

talkgraphics 03-09-2012 02:20 PM

Does anyone have this working with newer versions of VB?
We're on 4.1.10 - will this work with that version? Thx.

Alex@bulletin 04-08-2012 03:54 PM

Quote:

Originally Posted by talkgraphics (Post 2307917)
Does anyone have this working with newer versions of VB?
We're on 4.1.10 - will this work with that version? Thx.

Hello there, yes the mod works great on 4.1.10

---------------

But one thing is stupid, if a thread gets closed by this mod, you can't reopen it manually.

mathforum 06-19-2012 07:03 PM

Does this work on 4.2.0?

mynameisdonald 07-18-2012 12:24 PM

Is there a way to lock the original post? currently it seems to lock after 1st reply. Id rather it locked right after the thread was made

warlord0 08-28-2012 08:25 AM

Fits what I've been asked for perfectly. Nice and simple to implement to. Well done.

howardhsu 09-22-2012 05:55 AM

how about closing it with 0 replies (i.e. right after the thread is started)? what needs to be modified to make that function? thanks!

Quote:

Originally Posted by aileron79 (Post 2137561)
As requested, Threads may now automatically be closed when reaching a certain amount of replies. (Note that it is the replies, this excludes the first post in a thread.) This means that threads now appear as closed if one of the following conditions - or both - occur:

- thread has reached the maximum amount of replies
- thread is older than X days

additionally, this behavior may be restricted to certain user groups and/or particular forums.

(Personally, I have no idea why one would only allow a certain amount of posts but as mentioned before, this was requested and it was quite an easy but good exercise)

Hope you like it though. Be sure do download V 0.5 which is the new one. Feedback is appreciated :)


wildheart 11-24-2012 09:47 AM

Thank you works great on 4.2.

Gripi 05-27-2013 04:23 AM

installed and working with 4.2.1

is it possible to make the thread auto close after x day is based on 1st post time or thread start time? not last post time.

thanks

goldoff 07-08-2013 09:34 PM

Installed and seems working well with 4.2.0

Thank you!

cshellworld 12-09-2013 06:01 PM

4.2.1 installed , works great


All times are GMT. The time now is 06:20 PM.

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.01162 seconds
  • Memory Usage 1,764KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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