View Full Version : Miscellaneous Hacks - Automatic Thread Closing
ralle89
05-24-2007, 10:00 PM
A new version is available from here (showthread.php?t=196678). 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 threadWhy?
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=148117)!
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
How do I set the mod to close threads after 30 days of inactvity?
$ral_timedead = time()-(60*60*24*(365/2));
Edit that line (it appears more than once) and set it to
$ral_timedead = time()-(60*60*24*31);
It's all a matter of seconds
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
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
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
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
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.
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
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?
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
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
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;
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
I can easily add it to the mod.
EDIT: I added that nowSuper cool. Let me give it a try.
dpatel304
06-02-2007, 02:10 AM
I get the following error;
I am also getting that error:
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:
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
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
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
alafoo
06-10-2007, 05:58 PM
Can it be the way we installed the mod?
Any specific steps required?
bugriders
06-13-2007, 07:22 AM
I installed the mod succesfully but when I activate the mod, then my forums won't open. Just a white blanc page (done).... strange...:erm:
ralle89
06-13-2007, 07:24 AM
The only required step is to import the xml. I don't see why it shouldn't work
bugriders
06-13-2007, 07:34 AM
I installed the mod succesfully but when I activate the mod, then my forums won't open. Just a white blanc page (done).... strange...:erm:
bugriders
06-13-2007, 07:35 AM
The only required step is to import the xml. I don't see why it shouldn't work
I did that succesfully. No errors.
Index of forum is Ok but the forums won't open. It's shows a white empty page (done) in browser...:confused:
madsun
06-14-2007, 07:32 PM
I got the same thing... am using 3.6.4 atm though may having something to do with it idk.
aztecboi2003
06-16-2007, 02:31 AM
I did that succesfully. No errors.
Index of forum is Ok but the forums won't open. It's shows a white empty page (done) in browser...:confused:
If you uninstall, your forums work again though right? I'm wanting to install this product and give it a try but I don't want to mess up my forums.
bugriders
06-17-2007, 02:31 PM
If you uninstall, your forums work again though right? I'm wanting to install this product and give it a try but I don't want to mess up my forums.
Don't worry! You can unistall it. I have it still installed because I'm waiting for support:o
aztecboi2003
07-03-2007, 06:39 PM
Anything new with this mod? Some of us need it. I'm using 3.6.7 PL1 and it didn't work for me.
ralle89
07-03-2007, 06:42 PM
can I get to see your board? I would like to test your board to understand the bug. Cause I have no idea why this is happening.
white_2kgt
07-10-2007, 05:25 PM
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!
Agreed. I want to use it for the same reason but I'm not going to sit there and enter in all but 2 form IDs. Also I'd probably forget about it and create a new forum down the road and bam, all of a sudden threads start getting closed.
I'll 'Install' when exclude is changed to include.
Thanks!
chad
Marco
07-10-2007, 06:21 PM
Working great for me (3.6.7 PL1)! Awesome mod and just what I needed.
patrickstar
07-10-2007, 07:52 PM
any way i could change the code and make it to hard delete the thread. i really could use something like this for my classifieds forum.
thanks for any help. very nice mod also.
Feckie (Roger)
07-16-2007, 08:42 PM
Agreed. I want to use it for the same reason but I'm not going to sit there and enter in all but 2 form IDs. Also I'd probably forget about it and create a new forum down the road and bam, all of a sudden threads start getting closed.
I'll 'Install' when exclude is changed to include.
Thanks!
chad
Samo
Gixxer33
08-10-2007, 08:58 AM
Very Great!!!!
Greets from Germany!
www.gsxr-freaks.de
kyokushin4life
08-25-2007, 08:09 PM
Agreed. I want to use it for the same reason but I'm not going to sit there and enter in all but 2 form IDs. Also I'd probably forget about it and create a new forum down the road and bam, all of a sudden threads start getting closed.
I'll 'Install' when exclude is changed to include.
Thanks!
chad
agreed. include feature will help.
kyokushin4life
08-25-2007, 08:16 PM
my another suggestion would be to add this feature for each forum so that each forum can have different settings.
mgurain
10-02-2007, 07:41 AM
Hi ralle89,,
Could you add in settings: "include forums" field?
Because I would like to apply it only to certain forums, and now I need to exclude all other forums!
Hostboard
10-02-2007, 09:21 AM
This is almost perfect (for me) Would you be able to include a move to forum option? For example auto close thread in 90 days if no posts are made and move to an "Archive" forum?
ralle89
10-03-2007, 11:36 AM
It's an easy thing to implement. I just can't do it right now. I will do it when I get the time!
Marco
10-08-2007, 07:49 AM
There is a slight problem with this mod. When "closing" the thread, it always shows the icon that says you've posted in the thread, regardless if you actually have done that or not...
kennethsia
11-13-2007, 08:28 AM
I cant seem to get well with this at the moment. When i activate it in the acp and test to open an active thread, thread display full blank page..
Any help is greatly appreciated.
ralle89
11-13-2007, 04:56 PM
Are you using the newest version of vBulletin?
kennethsia
11-14-2007, 05:07 AM
v3.6.5 sir, no immediate plans to update...
coffee
11-19-2007, 01:52 PM
Installed and working great!
Thank you.
---------------------------------------------------------------------
Edit:
---------------------------------------------------------------------
when closing a thread that reached the maximum number of replies;
It would be nice to follow the next:
1. Close thread.
2. Create a copy of the first and last posts to be the next part of the thread.
3. Add a last reply with the link of the new part.
Pocket Aces
11-25-2007, 01:58 AM
Great hack, i will definitely mark it installed and nominate to MOTM if only an include list is there as an option. On our case, include forum list is better than exclude forum list.
Is it possible to add an option to include forum list on this mod's next update? We only need this hack for auto-closing threads posted on our introduction and request forums. Including 5 forums is way practical than excluding 100+ forums.
kennethsia
11-27-2007, 10:30 AM
Any answer from the author please?
Hi from Italy!
If I use this plugin for close post, when I unistall or unpublich the plugin, the posts are automatically reopened?
ralle89
01-09-2008, 07:30 AM
The threads are actually only virtually closed. So as soon as you disable or uninstall, all closed posts are open.
ralle89
01-11-2008, 11:33 PM
I have uploaded the new version 1.60!
Kalina
01-17-2008, 04:24 PM
I've upgraded to the latest version, adjusted the settings, tried yes and no under "Exclude?" and neither works... threads are now staying open where they should be closed.
ralle89
01-17-2008, 04:51 PM
Are you sure that you have turned it on at the top?
Kalina
01-20-2008, 09:03 PM
Are you sure that you have turned it on at the top?
Yes, it was on. :)
Desesperao
02-03-2008, 12:32 AM
What a pity!!.
It doesn?t work properly on vBulletin 3.6.8 Patch 2. :(
If I select "NO" in "exclude" option and listed the forums below, the hack doesn?t work. (With comma :) )
If I select "YES" in "exclude" option and listed the forums below, the hack close all the threads.
(Sorry, I speak/write a little English)
Kalina
02-08-2008, 08:38 AM
What a pity!!.
It doesn?t work properly on vBulletin 3.6.8 Patch 2. :(
If I select "NO" in "exclude" option and listed the forums below, the hack doesn?t work. (With comma :) )
If I select "YES" in "exclude" option and listed the forums below, the hack close all the threads.
(Sorry, I speak/write a little English)
Same problem I posted about above, I had to stop using it, I removed it.
Desesperao
02-08-2008, 10:12 PM
Same problem I posted about above, I had to stop using it, I removed it.The worst thing is the coder's indifference. I sent him a private message some days ago and didn?t answer me. :(
I also have removed it. https://vborg.vbsupport.ru/external/2008/02/14.gif
What a pity, it was a nice hack.
mgurain
03-16-2008, 06:14 PM
Hi ralle89,,
very nice job,
can you add an option :
(Include forums) in addition to the existing one (Exclude forums) ?
Because I want to enable the hack only for few forums but not the big list (others),,
Thanks,,
ralle89
03-16-2008, 06:23 PM
Being able to exclude while include does not make sense. Either choose to include OR exclude.
mgurain
03-17-2008, 05:30 AM
I suggest to put two radio buttons (Include OR Exclude forums) so as I sayed it will be easier to list the few forums I want to include (or someone need to exclude) than listing the big list.
I hope it is clear.
Thanks,,
ralle89
03-17-2008, 09:50 AM
I may have to rewrite the menus but this does what you need:
http://img88.imageshack.us/img88/7627/billede1iw5.png
Yes = exclude
No = include
Julie
03-17-2008, 10:23 PM
I'll keep my eye on this as well :) I've been looking for a plugin to automatically close (and move) threads after X posts...
Pocket Aces
03-20-2008, 12:59 AM
*INSTALLED*
Glad to see the updated version but unfortunately the 'include list' (exclude?:NO) doesn't work. So basically, nothing has changed, the hassle is still there. We still have to enter 100+ forum IDs and the forum IDs of newly created forums. And most of the time we miss to add the IDs of our newly created forums so our members complain why their threads are closed. We're using vB3.6.8 PL2 by the way.
The threads are actually only virtually closed. So as soon as you disable or uninstall, all closed posts are open.
I wouldn't mind having my threads actually closed in stead of only virtually. Any hints on how to modify this hack to make this happen?
ePrOmD
03-28-2008, 03:08 PM
hi!, tks a lot for this incredible and usefull hack.
i´ve only one questions. its possible to add an automatic message from the forum staff to the automatic thread closing?
za3bour
04-17-2008, 12:16 PM
i was looking for this one for a loooong time . you are a life saver
EagleNick
04-18-2008, 05:40 PM
I like this MOD, but what I really want is something that will close posts a certain amount of time after the last reply, and add a post to the end. My goal is to be able to set the last, automatic post to be This thread has been closed due to it's inactivity. If you have a similar issue, please start a new thread.
If you feel this thread should be re-opened, please PM an administrator.
baymortgage99
04-20-2008, 05:38 AM
Is there any value to closing threads?
Why not allow a thread to be open perpetually?
What is the benefit of closing a thread?
Jase2
05-01-2008, 05:30 PM
Is this working with 3.7 ?
Ummm, what about an option to create another thread with the same name so that discussion can continue.
vithorius
05-06-2008, 02:39 PM
Hi everybody!
I've been looking for a Mod like this one to automatically close the Classified Ads on my board, and this would be such a GREAT (and important) help!
However, I would like to know if it would be possible to add some text (possibly an automatic reply) right before closing the thread, stating something like "Thread closed due to inactivity" ?
:confused:
Also, I would like to know if there is any kind of mod similar to this one, but instead of closing the thread, it would SOFT DELETE (or MODERATE) the Thread after 'x' given Time? :up:
:up:
Thank you ALL so very much!
:up: :up:
Seiyaboy
05-23-2008, 01:13 PM
Unfortunately the Exclude option set to "No" doesn't work as it should. Otherwise the mod is a wonderful addition. Thank you.
scruff2
05-30-2008, 03:31 PM
Does not appear to work in 3.7.1.
Love this MOD, but have to uninstall if no 3.7.x support.
Jaxel
08-13-2008, 07:00 PM
Does this work in 3.7.2?
Corana
09-17-2008, 11:12 AM
Is it possible to do a user check on this, and allow the author of the first post to post anyway? (This would unlock the thread)
-Corana-
flasher33
09-18-2008, 12:43 AM
any Idea if this will work on 3.7.x??
Desesperao
10-26-2008, 12:06 AM
This hack works on 3.7.x but the "Exclude" option set to "No" doesn't work as it should.
Please, ralle89, could you update this marvellous hack. For me it's completely necessary.
ralle89
10-26-2008, 02:05 AM
This hack works on 3.7.x but the "Exclude" option set to "No" doesn't work as it should.
Please, ralle89, could you update this marvellous hack. For me it's completely necessary.
Currently I cannot really test it.
However it is not harmful at all. The worst that could happen is a syntax error. Will you please test this?
Desesperao
10-26-2008, 10:02 PM
Perfect, Ralle!!
It works fantastically on 3.7.3!!
Many, many thanks.
>PD: Installed and nominated
professional77
10-26-2008, 10:18 PM
thanks
Sweeks
06-08-2009, 12:25 PM
Will Ralles version work on 3.8.2? Cheers
________
TOYOTA JZ ENGINE HISTORY (http://www.toyota-wiki.com/wiki/Toyota_JZ_engine)
ralle89
06-08-2009, 12:31 PM
Sure np!
expeditionman
08-25-2009, 05:31 AM
Awesome mod...I was wondering if there was even for this......Installed, now just need to wait and so how it works...lol.......will this close the already older threads, or just new ones from here on?
cobaku
05-16-2010, 05:20 AM
works with 4.0.3
Arcade Fire
05-27-2010, 02:21 PM
works with 4.0.3
Not for me :(
Please, i need this mod. Thanks.
Dimoks
06-07-2010, 11:10 AM
Not for me :(
Please, i need this mod. Thanks.+1 3.8.5. dont work 1.7 and 1.8 :(
korgkurzweil
09-15-2010, 08:23 PM
thanks :)
working on 3.8.4
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.