View Full Version : Mass close threads hack.
Black Tiger
03-04-2009, 02:58 PM
Is this possible to make, maybe by a simple template hack or something?
There is a mass close threads hack for vbulletin 2.0 but we're running 3.8.1.
We would like an option to mass close threads of 1 particular forum.
VB has a mass-move and mass-prune build in, but no mass-close.
How can I do this, or is there anybody who can make a hack/mod for that?
Mr-Moo
03-05-2009, 05:08 PM
There is a built in feature in VB that allows you to tick a small checkbox and scroll to the bottom and select "close selected threads".
Other then that, you would need to edit the PHP file which designates the "move all threads". Once that file is found, you would need to copy that line and duplicate it. Once duplicated you will need to modify it to use the "close" function instead of the "move" function.
Let me know if you need further assistance!
Hope it helps,
Black Tiger
03-05-2009, 05:15 PM
The little checkbox thing I knew, but I needed it for a complete forum with a couple of hundred posts. Selecting them page by page takes too long in that case.:)
But your second tip is a good one.
Is there no way to make something like that by creating a new template in stead of editting files?
Mr-Moo
03-05-2009, 05:24 PM
To my knowledge no, because there is no variable assigned to "close mass threads". Therefor it would require you to intervene and do this manually.
However I could very easily be mistaken as I am far from a VB/programming expert.
Black Tiger
03-05-2009, 06:00 PM
Oke no problem, thank you for your reply's.
I'm a noob in php, but I will try and have a look if I can do such file edit. Thank you!
Marco van Herwaarden
03-09-2009, 11:47 AM
What is your goal with this? Have a forum with only closed threads, no new threads anymore?
Black Tiger
03-09-2009, 02:10 PM
In fact it is for a forum from a friend of mine for which I do the maintenance, updates and stuff.
He has a couple of forums, a for sale forum and a sold (afgehandeld/verkocht) part.
Posts will be moved to the "sold" forum by moderators and by admins. Once a while he would like to mass-close the posts in the "sold" section. I think maybe because it's a subforum too and it is not displayed as subforum on the main forum page and he does not want it to be displayed. And there won't be any new reply's in that "sold" part.
I thought maybe something like that would be rather easy to make.
But maybe I'm mistaken. In that case he has closed most of them now and if he does a weekly job doing the closing with the build-in option, it would be fine to. But I guess he will forget it again and do the closing in half a year.:)
So it's no urgent hack or something.
Marco van Herwaarden
03-09-2009, 03:07 PM
What is the URL to the board of your friend?
Black Tiger
03-09-2009, 03:46 PM
Why does the url matter? He is a licensed user, and I also have the license and password from him.;)
If you need it for licensing reasons, I can give you the url by pm.
Marco van Herwaarden
03-09-2009, 04:32 PM
Then please sent me by PM.
(Sorry but i can't count the times a licensed user was asking for a "friend" who could not ask himself because he didn'thave a license).
Black Tiger
03-09-2009, 04:54 PM
I understand, no problem, you will have pm in a minute.
Marco van Herwaarden
03-10-2009, 09:03 AM
Thx for the URL.
What i still don't understand is why you want to close all threads. Why not just set permissions to disallow posting in this forum as it only contains "closed" threads?
RedeemedWarrior
03-10-2009, 10:31 AM
or can you set the forum to show more threads per page (say 200) then select all and lock, repeat till all done
then set it back to whatever you had before (threads per page)
Black Tiger
03-10-2009, 03:54 PM
Marco, I just explained why my friend want's it closed. The forum part is already closed for posting.
But if users do a search (mostly via google) they get in that forum part, don't pay attention and see later that what is in there, is already sold. If the post is closed, they see faster that post is closed and have a look further.
I wouldn't mind myselve, but my friend just would like it that way.
But he has them closed now, so if he keeps it up a little, he would not need a mass close.
However I could imagine maybe something like this would be nice to have when people are replying to old post, which they get to by googling on something.
You could archive them, but you could also then mass-close if laste reply date is older then xxx, or something like that. This way one does not have to mass-move posts to an archive section.
Lynne
03-10-2009, 04:45 PM
I have a tracker on my forum, and people so often hop onto torrents that they most likely won't complete because there is no seeder, so I have a plugin which adds a line to the first post if there has been no seeder for 2 weeks - a big warning in bold red. Perhaps you can just add a plugin which adds something in the postbit at the top of all first posts in that forum - "THIS ITEM HAS BEEN SOLD".
Black Tiger
03-10-2009, 05:09 PM
That would be a nice idea too Lynne. I will suggest it to him.
Marco van Herwaarden
03-11-2009, 08:15 AM
That could be done just based on the forumid, or hide the reply button in that forum. Sounds to me like a better idea then close all threads.
Black Tiger
03-11-2009, 03:12 PM
I will suggest all options to him. Thank you all for the tips and idea's.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.