vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - Automatic Thread Closing (https://vborg.vbsupport.ru/showthread.php?t=196678)

ralle89 11-18-2008 10:00 PM

Automatic Thread Closing
 
Hello guys this is my first mod ported for 3.7, it still works on 3.6 though!

Features:
  • Make a list of forums to either restrict the add-on to or exclude the addon from the list
  • Option to close sticky threads or not
  • Enable/disable hack
  • Set timelimit
  • All settings can be set in ACP
  • Option to close thread after X amount of posts
  • Allow certain usergroups to bypass the hack
Why?
I was getting tired of all those people necro-posting, posting in threads that are up to three years old. This is my solution

Time to install:
Less than one minute

History:
1.00 release
1.10 threadbit display closed
1.20 all settings through ACP
1.30 close thread after reply-count
1.40 bugfix
1.50 dunno what I did
1.60 option to exclude or restrict to the list of forum ids


After billions of requests, I have finally done what you did!

Note
Don't forget to click Mark as Installed!
Also, my testing system is down but the worst this hack can cause is a syntax error.

killerkraft 11-19-2008 05:18 PM

Great job.

I like your version 1.50, eheheheh ( sorry )

Installed....

Desesperao 11-19-2008 07:19 PM

Installed and nominated.

You are GREAT!!!!!!

mysql101 11-19-2008 09:14 PM

What I'd love to see is after the specified time, it automatically moves a thread into a different forum. I have archived areas and this would be perfect if it could do that.

momo2 11-19-2008 09:17 PM

can this work as move to reported or expired posts sections ?

gwerzal 11-20-2008 12:16 AM

Exactly what i needed, cheers

marrr 11-20-2008 04:02 AM

Has anyone gotten this to work on 3.7.4?

Hornstar 11-20-2008 05:29 AM

Thanks, just what I was looking for my trash section.

Mike-D 11-20-2008 07:59 AM

Quote:

Originally Posted by marrr (Post 1669126)
Has anyone gotten this to work on 3.7.4?

Yep, works like a nice virgin :D

Andrew johnson 11-20-2008 09:07 AM

it very good and useful for me - "installed"

btw - i am not sure how i install this file - because it had no Instructions

marrr 11-20-2008 02:09 PM

Quote:

Originally Posted by Mike-D (Post 1669221)
Yep, works like a nice virgin :D

Yup it works good. Thanks alot of moving this plugin to 3.7.4 Ive been looking for this for a long time.

Merriweather 11-22-2008 04:37 AM

If this mod could somehow be combined with the mod here -- https://vborg.vbsupport.ru/showthread.php?t=178050 -- it might just be perfect!!! I need the automatic part of this mod, but the move thread to another forum part of the other mod...

marrr 11-22-2008 05:14 AM

I like the way the mod merriweather posted lets you select what forums to enabled much easier way.

any idea if that something you would add??

murekhalir 11-22-2008 05:50 PM

installed and nominated.

you have no idea how long i've been looking for a mod like this!

ePrOmD 11-30-2008 10:34 AM

updated!

I have it installed since the previous version. is an excellent aid for moderation. just as with the earlier version, would be important and necessary, an automatic message, under any user administrator of the reasons why the issue is closed!

now, once again, thank you very much, for all the work!

Infnty 12-07-2008 09:59 AM

Time, is this hours, days or whats the go?

Infnty 12-07-2008 10:00 AM

My bad just noticed the field under it

space? 12-24-2008 10:47 AM

Great, thank you!
The feature to set a timelimit was exactly what I searched for...

Jalo 04-29-2009 10:58 AM

Does anyone know if this works on 3.8.2 ?

Thanks!

Jan

djbaxter 05-09-2009 04:29 AM

I'm about to find out... :)

I would assume this runs via a cron job but I don't see anything listed under Scheduled Tasks...


Added:

1. yes, it works like a charm for vBulletinversion 3.82

2. I don't know how it works but I just enabled a few minutes ago and it's already locked the appropriate threads. I'm still curious as to how it's triggered, though.

ralle89 05-09-2009 12:19 PM

It simply checks the date and if it's too old and fits the right forum, it will appear locked. That's all. No database changes at all.

djbaxter 05-09-2009 12:26 PM

Quote:

Originally Posted by djbaxter (Post 1807315)
I would assume this runs via a cron job but I don't see anything listed under Scheduled Tasks...

I'm still curious as to how it's triggered...

Quote:

Originally Posted by ralle89 (Post 1807444)
It simply checks the date and if it's too old and fits the right forum, it will appear locked. That's all. No database changes at all.

My question was: How is it triggered? It can't be running continuously, I assume. How often does it check for age of threads? And using what mechanism?

ralle89 05-09-2009 12:44 PM

Can't you just view the code?
Well it runs when needed, it's not a cronjob. It just runs with showthread and modifies the output.

djbaxter 05-09-2009 12:59 PM

Quote:

Originally Posted by ralle89 (Post 1807454)
Can't you just view the code?
Well it runs when needed, it's not a cronjob. It just runs with showthread and modifies the output.

Thank you. There... was that so difficult? :rolleyes:

ralle89 05-09-2009 05:50 PM

Lol. No not really.

merkaz 05-10-2009 11:18 AM

So Nice

thanks

masterme 05-27-2009 05:15 PM

Can this also be used to close a thread automaticly after x posts have been made?

Jalo 05-28-2009 11:39 AM

Installed but for some reason the icons do not indicate that the thread is closed. Any suggestions?

Manually closing a thread does show the right icon.

Jan

ralle89 05-29-2009 03:47 PM

Quote:

Originally Posted by Jalo (Post 1818687)
Installed but for some reason the icons do not indicate that the thread is closed. Any suggestions?

Manually closing a thread does show the right icon.

Jan

Can you send a screenshot? Are you sure the thread lives up to the conditions of when it should be closed?

Quote:

Originally Posted by masterme (Post 1818243)
Can this also be used to close a thread automaticly after x posts have been made?

yeah "Option to close thread after X amount of thread" is supposed to mean that :P

my_aly 05-29-2009 08:37 PM

Thank you

4nawadir.com 05-30-2009 02:13 PM

Great Work,
Installed & Notaminated

Wolfegar 05-30-2009 08:44 PM

Quote:

Originally Posted by ralle89 (Post 1807444)
It simply checks the date and if it's too old and fits the right forum, it will appear locked. That's all. No database changes at all.

The red highlighted bit suggests this question. Does it appear locked but isn't really, or is it actually locked?

BBF 07-02-2009 10:06 AM

any changelog?
1.60 -> 1.80?

kamaldarwish 07-04-2009 05:08 PM

Thanks for the script.

kamaldarwish 07-04-2009 05:09 PM

Thanks for the script.

Can you add a feature to this script like a condition for the threads
if the thread is open and there was'n any post for the last x days it should be closed.

Best Regards,
Kamal

pigpog 07-04-2009 07:07 PM

Brilliant, brilliant, brilliant.

Oh, did I mention it's brilliant? :D

Kintaro81 07-12-2009 07:58 AM

Quote:

Originally Posted by kamaldarwish (Post 1842781)
Can you add a feature to this script like a condition for the threads if the thread is open and there was'n any post for the last x days it should be closed.

I need it too!

icarusforde 07-16-2009 01:10 AM

Works in 3.8.3 fine for me. :)

navjotjsingh 07-17-2009 11:12 AM

Somehow I cannot see the timeunits mentioned. I can select by dropdown its just that its blank. I am just counting by guess to select the option. How to fix it?

SEW810 08-21-2009 04:44 AM

:(, didn't work for me :(
vb 3.8.2

How come this hack closes threads without any cron task?


All times are GMT. The time now is 06:16 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.01285 seconds
  • Memory Usage 1,791KB
  • 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
  • (9)bbcode_quote_printable
  • (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
  • (40)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