vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Automatic Thread Closing (https://vborg.vbsupport.ru/showthread.php?t=148117)

ralle89 05-24-2007 10:00 PM

Automatic Thread Closing
 
A new version is available from here. It is 3.7 but also works with 3.6 (and probably 3.8).

Hello guys this is my first mod!

Features:
  • Forum immunity
  • 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 thread
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 added the feature to select whether you want the list of forum ids to either be the forums which's threads that should not be closed or the forums which's threads that should be closed

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

Note
Don't forget to click Mark as Installed!

giovannicosta 05-25-2007 04:57 PM

Fantastic need this, first install*

giovannicosta 05-25-2007 04:59 PM

How do I set the mod to close threads after 30 days of inactvity?

EnIgMa1234 05-25-2007 05:35 PM

if you need help making settings for this let me know

ralle89 05-25-2007 05:57 PM

Quote:

Originally Posted by giovannicosta (Post 1254564)
How do I set the mod to close threads after 30 days of inactvity?

Code:

$ral_timedead = time()-(60*60*24*(365/2));
Edit that line (it appears more than once) and set it to
Code:

$ral_timedead = time()-(60*60*24*31);
It's all a matter of seconds

Quote:

Originally Posted by EnIgMa1234 (Post 1254575)
if you need help making settings for this let me know

I would like that!

I updated it now.. It also shows that the thread is locked in forumdisplay now. Just uninstall and install to get the new version

dope15gd 05-25-2007 06:12 PM

I'll probably get in on this when you can adjust the settings in the global settings menu.

I appreciate your efforts :)

thanks

giovannicosta 05-25-2007 07:40 PM

Thankyou, amazing!

projectego 05-26-2007 06:16 PM

Awesome first mod! Nice work. ;)

ralle89 05-26-2007 08:36 PM

Thank you all for your support guys!
I feel like also releasing my [youtube] tag and my [table] tag, they are also awesome :)

Subah 05-26-2007 10:09 PM

Quote:

Originally Posted by dope15gd (Post 1254593)
I'll probably get in on this when you can adjust the settings in the global settings menu.

I appreciate your efforts :)

thanks

Me also, Thanks man :)

ralle89 05-27-2007 12:04 AM

I updated it now. Studied some hacks and I have now made a settings entry. You can edit everything through ACP now.

stwilson 05-27-2007 12:33 AM

Does this mod allow for identification of specific forums to apply the auto close to or is it the whole board?

YabbaDabba 05-27-2007 01:19 AM

Hi,

I'm looking for an auto-close after N posts.

Any plans to support such a feature?

dope15gd 05-27-2007 02:28 AM

Quote:

Originally Posted by ralle89 (Post 1255251)
I updated it now. Studied some hacks and I have now made a settings entry. You can edit everything through ACP now.

very cool. I'm gonna check this out

edit//

The time unit is from when I start the hack or from when the thread was started?

dope15gd 05-27-2007 02:34 AM

Quote:

Originally Posted by stwilson (Post 1255262)
Does this mod allow for identification of specific forums to apply the auto close to or is it the whole board?

It applies to the whole forum, but you can select forums to exclude.

ralle89 05-27-2007 07:34 AM

Quote:

Originally Posted by dope15gd (Post 1255297)
The time unit is from when I start the hack or from when the thread was started?

let's say I select months and 3 = 3 months. The thread will be closed 3 months after the last reply to it.

Quote:

Originally Posted by YabbaDabba (Post 1255277)
Hi,

I'm looking for an auto-close after N posts.

Any plans to support such a feature?

I can easily add it to the mod.

EDIT: I added that now

EdQ 05-28-2007 01:28 AM

Been waiting for this. Does it notify the members the thread was auto-locked?

ralle89 05-28-2007 09:27 AM

you mean PM? No,
And they can't see that it was autolocked or normally locked

giovannicosta 05-28-2007 09:35 AM

This is not nice...I thought it would close thats 1 month after the last post, but it closes threads 1 month after they were created, anyway to get this to work for x time after last post?
Also can you get it to posta message saying this thread was auto-locked and the reason?

EdQ 05-28-2007 12:42 PM

Quote:

Originally Posted by ralle89 (Post 1256065)
you mean PM? No,
And they can't see that it was autolocked or normally locked

Not in a PM. But in the last post.

On another forum I use, the last post says

Quote:

This thread has been Auto Locked for exceeding its limit for number of replies. Please start a part 2.

Without some notification, I will get bombarded with "why was the thread locked"

buileminh 05-29-2007 08:21 PM

GREAT! That's what I am looking for! Thank you SO MUCH!

gg_luna128 06-01-2007 02:12 AM

It's not useful to have an "exclude" option. It should be include. Or both... Now I have to add ALL the forums I have opened, except one =\

Edit: And now I have to open all the threads that were closed... *sighs*

ralle89 06-01-2007 03:33 AM

Quote:

Originally Posted by gg_luna128 (Post 1258711)
Edit: And now I have to open all the threads that were closed... *sighs*

No you don't. Cause they are not closed. It's just something people thinks. I edit the data just before it is outputted, and NOT in the database.

cooldude714 06-01-2007 09:17 AM

I get the following error;

Quote:

Fatal error: Call to undefined function: ral_canclose() in /home/forum/public_html/showthread.php(346) : eval()'d code on line 3

ralle89 06-01-2007 09:50 AM

well I updated it but I didn't find any problems,

giovannicosta 06-01-2007 01:45 PM

Hi, thought it would close thats 1 month after the last post, but it closes threads 1 month after they were created, anyway to get this to work for x time after last post?
Also can you get it to posta message saying this thread was auto-locked and the reason?

ralle89 06-01-2007 02:34 PM

that's what I fixed

YabbaDabba 06-01-2007 11:27 PM

Quote:

Originally Posted by ralle89 (Post 1255401)
I can easily add it to the mod.

EDIT: I added that now

Super cool. Let me give it a try.

dpatel304 06-02-2007 02:10 AM

Quote:

Originally Posted by cooldude714 (Post 1258880)
I get the following error;

I am also getting that error:
Quote:

Fatal error: Call to undefined function: ral_canclose() in /home/dpatel/public_html/forums/forumdisplay.php(905) : eval()'d code on line 3
It happens whenever I click on any of my forums.

Dream 06-02-2007 02:13 AM

Great mod. Let me suggest changing the name to "Automatic Old Thread Closing" so people know off the bat what the mod is for.

ralle89 06-02-2007 12:51 PM

well, it's not nescessarily an old thread that's being closed :P

alafoo 06-05-2007 05:25 AM

I have installed the mod, but I get the following error message when I enable it:

Quote:

Fatal error: Call to undefined function: ral_canclose() in /home/*****/public_html/vb/forumdisplay.php(905) : eval()'d code on line 3
***** = my website name!

Please help!

2meplie 06-05-2007 11:14 AM

GREAT mod but I only want to enable it in my for sale and wanted section (about 10 forums) on over 180 forums. Would it be possible to have an include forum section instead of exclude?

Thanks!

Mackenzie s 06-08-2007 03:36 AM

Quote:

Originally Posted by 2meplie (Post 1261684)
GREAT mod but I only want to enable it in my for sale and wanted section (about 10 forums) on over 180 forums. Would it be possible to have an include forum section instead of exclude?

Thanks!

Exactly what I want. Much more effective way. Most people will only use this hack in a few forums rather than using them in most. You could have two settings if you want. Please do this. Thanks :)

ralle89 06-08-2007 04:56 AM

well I guess I can add that feature.
But instead, I think it would be cooler to learn how to add forum settings. Setttings for seperate forums. So you can set the setting for specific forus instead of having both exclude/include forums.

Mackenzie s 06-09-2007 03:09 AM

When do you think you can have this done. I kinda need it ASAP. Thanks man!

buileminh 06-09-2007 04:47 AM

A feature that allows disabling this mod for each thread is highly needed. In the same forum, some discuss thread need so many posts but the others do not.

dpatel304 06-09-2007 09:21 PM

Sorry to post again, but I seem to be getting a common error
Quote:

Fatal error: Call to undefined function: ral_canclose() in /home/dpatel/public_html/forums/forumdisplay.php(905) : eval()'d code on line 3
and don't know how to fix it. Any help would be appreciated.

FRANKTHETANK 2 06-10-2007 05:00 AM

same here. get same error's they are getting

ralle89 06-10-2007 07:26 AM

That sounds so weird. The function "ral_canclose()" is defined in global.php (with hooks) so I can't understand why they cannot find it.
We need support :P


All times are GMT. The time now is 05:28 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.01330 seconds
  • Memory Usage 1,817KB
  • 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
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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