PDA

View Full Version : Moderators Functions - Auto Move Closed Threads


11-24-2006, 10:00 PM
Modification Title: Auto Move Closed Threads
Compatibility: 3.6.x
Tested On: 3.6.3

What does the modification do?

This allows the Administrators to select a single forum for all closed threads to be moved too after a moderator decides to close the thread. The AdminCP options allows this modification to be enabled/disabled on individual forums.

This is useful if you always want closed threads to be moved to a trash forum.

Coded by request:

https://vborg.vbsupport.ru/showthread.php?t=65905


Install Process:

Products (1)

Just import the product xml file via the AdminCP.


Install Time: Quick, < 1 minute

Notes:

*The moderator will be given an error if you select the destination forum as a forum that can not contain threads (IE: Categories)*

Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=132462) if you use this modification. :)

Modification History:


Version 1.1.1 - Added Enable All Forums option
Version 1.1 - Integrated option to exclude Sticky Threads

Shazz
11-25-2006, 08:43 PM
Has to be 3.6.3 or higher?

Guest190829
11-25-2006, 08:44 PM
Has to be 3.6.3 or higher?


Compatibility: 3.6.x


As stated, it should work with the entire 3.6.x branch. That will be changed if people note otherwise. :)

Reef
11-25-2006, 10:34 PM
Thanks Danny

This will be a nice addon for my forum as soon as I can find where to configure it :p

I don't see it listed anywhere within AdminCP

Guest190829
11-25-2006, 10:51 PM
Thanks Danny

This will be a nice addon for my forum as soon as I can find where to configure it :p

I don't see it listed anywhere within AdminCP

Oops, should be fixed now. :)

Reef
11-25-2006, 11:33 PM
The fix works fine Danny, thanks again

Invalid ID
11-25-2006, 11:57 PM
Exactly what I came to look for :D

Thanks a lot

Invalid ID
11-26-2006, 12:39 AM
Well, after installing, I can't see the option in the CP

Guest190829
11-26-2006, 12:45 AM
Well, after installing, I can't see the option in the CP

The setting group is titled Auto Move Closed Threads. It should be there, I just tested again with the current upload.

Gray Matter
11-26-2006, 02:14 AM
Will there be an added feature sometime in the near future to exclude sticky threads (this way if an Admin or Mod wants to stick an important thread in a forum but doesn't want responses to the thread, it won't be moved to the recycle bin).

ETA: Also, it would be nice to be able to set an amount of time before waiting to close the thread. :)

Guest190829
11-26-2006, 03:28 AM
Will there be an added feature sometime in the near future to exclude sticky threads (this way if an Admin or Mod wants to stick an important thread in a forum but doesn't want responses to the thread, it won't be moved to the recycle bin).


Yes, this is possible. I will add it in the next release.

ETA: Also, it would be nice to be able to set an amount of time before waiting to close the thread. :)

Can you clarify a bit further?

michaelsilvia
11-26-2006, 04:59 AM
Nice job! Just installed and will provide feedback after I use it for a few days.

Here is a suggested add on that would help my forum. I would even pay for this!

When a thread is closed, all members that have posted in that thread get an auto PM telling them a moderator defined message. In my case I run a sports card trading site and I use this for open trades and move to closed trades. I would love it if my members could get a PM telling that their trade/sale is complete and the threads was moved. It would be important to let admins write up the PM message in the ACP as other sites may have a different use.

Overall, nice job!

Mike

Arda MENDES
11-26-2006, 06:05 AM
Thank u very much.It is a gr8 add on.

Edit:It doesnt move old closed threads.

michaelsilvia
11-26-2006, 06:42 AM
Edit:It doesnt move old closed threads.


This won't happen! It will only go in effect when you actualy close a thread. This is actually a GOOD thing if you have sticky, closed threads already.

Mike

Arda MENDES
11-26-2006, 07:49 AM
This won't happen! It will only go in effect when you actualy close a thread. This is actually a GOOD thing if you have sticky, closed threads already.

Mike
Hmm.I couldnt think that. Thx.

paldo
11-26-2006, 02:39 PM
sweet thank you

Guest190829
11-26-2006, 08:01 PM
Version 1.1 has been uploaded with the option to exclude sticky threads. :)

Just re-import the product xml file and set Overwrite to yes.

rolliet
11-26-2006, 09:35 PM
installed but it would not work when I set it to "enable all forums" I had to select the forums one by one then it worked.

Guest190829
11-26-2006, 11:43 PM
installed but it would not work when I set it to "enable all forums" I had to select the forums one by one then it worked.

I completely forgot to code to that bit, I will add it right now. My apologies, and thank you for reminding me. :)

Guest190829
11-27-2006, 12:22 AM
Okay version 1.1.1 has been uploaded.

For the quick patch just do the following:

AdminCP -> Plugins & Products System -> Plugin Manager ->

1.) Find Auto Move Closed Threads plugins
2.) Click edit on Move Thread with close
3.) Replace entire Plugin PHP Code textarea with the following:


$sticky = ((!$vbulletin->options['amct_excludesticky']) OR ($threadinfo['sticky'] == 0)) ? true : false;

$vbulletin->options['amct_forumids'] = @unserialize($vbulletin->options['amct_forumids']);

if ($vbulletin->options['amct_enabled'] && ($vbulletin->options['amct_forumids'][0] == -1 || in_array($threadinfo['forumid'], $vbulletin->options['amct_forumids'])) && $threadinfo['open'] && $sticky)
{

// Don't allow the thread to be moved if move forum doesn't accept threads
$moveforumid = verify_id('forum', $vbulletin->options['amct_moveforum']);
$moveforuminfo = fetch_foruminfo($moveforumid );

if (!$moveforuminfo['cancontainthreads'] OR $moveforuminfo['link'])
{
eval(standard_error(fetch_error('moveillegalforum' )));
}


$threadman->set('forumid', $vbulletin->options['amct_moveforum']);
$threadman->save();
$action = $vbphrase['closed'];

if (empty($threadman->errors))
{
build_forum_counters($threadinfo['forumid']);
build_forum_counters($moveforumid);
}


$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";
eval(print_standard_redirect('redirect_openclose', true, true));


}

Caiman
11-27-2006, 12:45 AM
Ah this is just great, thanks very much

*Installed

Zelos
11-27-2006, 04:16 AM
Cool idea, but there needs to be a feature that allows a delay before the closed thread is moved. I'd like to be able to set closed threads to move themselves after one or two weeks, rather than instantly.

If you were to add this, I'd install this mod in a heartbeat :D

Gray Matter
11-28-2006, 04:08 PM
It's awesome that you already uploaded the new release with my suggestion in it. ;)

What I meant was that there would be an option to delay the time the threads were moved.

For instance, if you have a help forum on your board and someone posts a thread to ask for help with something, and then their problem is solved so you want to close the thread, but you want to make sure that they see the response first, you could delay the time period before it would be sent to the recycle bin (i.e. three days). It would be nice to have this as a global option for the whole hack. :)

ragtek
11-28-2006, 05:11 PM
one question

why arent the old and the new forum counter been counted?
and why you count the threadinfo?
the complete thread is beening moved, so there are no changes or?
build_forum_counters($threadinfo['forumid']);
build_forum_counters($moveforumid);

Guest190829
11-28-2006, 06:07 PM
one question

why arent the old and the new forum counter been counted?
and why you count the threadinfo?
the complete thread is beening moved, so there are no changes or?
build_forum_counters($threadinfo['forumid']);
build_forum_counters($moveforumid);


I don't exactly follow your question - can you clarify a bit further?

ragtek
11-28-2006, 06:44 PM
i have the base forum (forumid 1)
and the new target forum for the thread (forumid 2)

now i move thread 10 from forumid 1 to forumid 2

now, don't i have to renew the count for forumid 1 as well as for forumid 2

Guest190829
11-28-2006, 08:28 PM
i have the base forum (forumid 1)
and the new target forum for the thread (forumid 2)

now i move thread 10 from forumid 1 to forumid 2

now, don't i have to renew the count for forumid 1 as well as for forumid 2

Yes - it should be doing that. Are you experiencing otherwise?

ragtek
11-29-2006, 10:09 AM
no

i'm just "learning" and trying to understand
i have a event board and want to move the thread in a other forum when the event is past.
the threads are linked with the calendar so it isn a problem to have a date when it has do been moved
so i just have to
build_forum_counters($threadinfo['forumid']);
build_forum_counters($moveforumid);
do this 2 things and it will be ok?*g*

BBProductions
11-29-2006, 12:41 PM
i would install if it copied the entire thread to the 'closed forum' left the other thread there for a whiile then deleted it.

not every clossed forum do youw want instantly gone or gone at all...

can you do this hack for maybe just deleted threads? instead of closed ones?

Guest190829
11-29-2006, 08:10 PM
no

i'm just "learning" and trying to understand
i have a event board and want to move the thread in a other forum when the event is past.
the threads are linked with the calendar so it isn a problem to have a date when it has do been moved
so i just have to
build_forum_counters($threadinfo['forumid']);
build_forum_counters($moveforumid);
do this 2 things and it will be ok?*g*

build_forum_counters does is the function to rebuild functions. $threadinfo['forumid'], should work. $moveforumid will need to be set to the forum id you wish to move the thread too.

Zelos
12-01-2006, 02:40 AM
How do I set closed threads to move themselves after one or two weeks (rather than instantly).

Guest190829
12-01-2006, 02:51 AM
How do I set closed threads to move themselves after one or two weeks (rather than instantly).

That would be a whole new modification - I don't have the time to add that functionality at the moment, sorry. :(

Enigm@tic
12-01-2006, 11:01 AM
Well, nice hack but i want leave a moved message this hack, 1 hour , 1 week 1 mounth ... Can we do :P

DarkDreamer
12-02-2006, 09:23 PM
my closed threads don't move to the destinated forum when I select them in bundle format like selecting the boxes on the right and then closing them but it does when I go into the thread and select it from the dropdown menu how can I get it so I can select it in bundle?

Zelos
12-04-2006, 05:59 AM
Two questions:

1. does this mod leave redirects?

2. Can I configure when they expire?

Arda MENDES
12-04-2006, 04:22 PM
Two questions:

1. does this mod leave redirects?


No, closed threads movin' without redirects.


@DarkDreamer;
It will only go in effect when you actualy close a thread.

Zelos
12-04-2006, 09:18 PM
That's too bad. there should be an option for them...

Guest190829
12-04-2006, 09:20 PM
I will look at all feature requests during my holiday break which is a in a few weeks. Until then, I really don't have time to implement any new features, as I am flooded with work and school.

blind-eddie
12-08-2006, 03:16 PM
Very nice mod....blind-eddie hits installed

Eagle Creek
12-20-2006, 12:08 PM
WOOOOOOOT!
I LOVE this hack!

Ziki
12-22-2006, 11:15 PM
Has to be 3.6.3 or higher?

Shazz your board focuses on vbulletin and you ask such a question :D

blind-eddie
01-07-2007, 11:11 PM
Some of your request are in your vb allready.....

Enigm@tic
01-09-2007, 07:34 PM
Some of your request are in your vb allready.....

Are u stranger ?

ferreo
04-17-2007, 11:19 AM
Fantastic hack, installed!!

thejdm
04-21-2007, 10:27 PM
u know of a way if you were to lock a thread it would just move it to the last page at the bottom of the forum instead of moving it to a seperate forum?

i want to keep all my for sale threads in the for sale forum but when some1 sells the part i just want the thread to move to the very last page at the bottom behind all the other posts.

daloosaa
05-12-2007, 03:21 PM
Nice work. Works great with vB 3.6.6

Audentio
05-20-2007, 05:23 PM
Is there an automove soft deleted threads?

Merriweather
07-22-2007, 08:28 PM
my closed threads don't move to the destinated forum when I select them in bundle format like selecting the boxes on the right and then closing them but it does when I go into the thread and select it from the dropdown menu how can I get it so I can select it in bundle?Same problem here. Can't close a bunch of threads at once (well, you can, but they don't go anywhere).

u know of a way if you were to lock a thread it would just move it to the last page at the bottom of the forum instead of moving it to a seperate forum?

i want to keep all my for sale threads in the for sale forum but when some1 sells the part i just want the thread to move to the very last page at the bottom behind all the other posts.I am actually looking for this, too -- any luck finding it?

AzzidReign
07-22-2007, 09:34 PM
Why not just get a support system...I think I've seen one on here. You can show all the threads that have not been solved so that's pretty much what you are looking for I would think. Instead of closing the thread, you just label it as "solved".

BBF
08-12-2007, 09:08 PM
There is any way to move threads After X Days ?

:confused:

lonki007
11-10-2007, 02:11 PM
u know of a way if you were to lock a thread it would just move it to the last page at the bottom of the forum instead of moving it to a seperate forum?

i want to keep all my for sale threads in the for sale forum but when some1 sells the part i just want the thread to move to the very last page at the bottom behind all the other posts.

Anyone has the sollution to make this work?

Grtz

Jimandbob
11-10-2007, 03:19 PM
u know of a way if you were to lock a thread it would just move it to the last page at the bottom of the forum instead of moving it to a seperate forum?

i want to keep all my for sale threads in the for sale forum but when some1 sells the part i just want the thread to move to the very last page at the bottom behind all the other posts.


This would be useful

Jim

lonki007
11-11-2007, 09:19 AM
In forumdisplay.php find around line 637:

PHP Code:
ORDER BY sticky DESC, $sqlsortfield $sqlsortorder

Replace With:

PHP Code:
ORDER BY sticky DESC, thread.open = 1 DESC, $sqlsortfield $sqlsortorder

This has one small side effect that all normal open threads are listed first, then you get the closed threads and redirects together at the end.

tanujdude91
11-12-2007, 05:46 AM
Awesome Mod .thx

M-Tuning
02-17-2008, 04:43 PM
Is it possible to upgrade this hack for 3.7.0?

i would be really grathefull

Guest190829
02-17-2008, 04:49 PM
Is it possible to upgrade this hack for 3.7.0?

i would be really grathefull

Does it not work for 3.7? I haven't tested it.

M-Tuning
02-17-2008, 05:47 PM
No it doesn't.

When I import it, and I close a thread it gives a error message (php error message)

An the thread is closed in the forum where it was and isn't moved to the appropiate forum.

Guest190829
02-17-2008, 05:56 PM
Okay, I will try and take a look at it this week then.

M-Tuning
02-17-2008, 07:41 PM
Ok, thank you :D

vithorius
05-21-2008, 03:59 PM
Okay, I will try and take a look at it this week then.

Hi!!! This is just a GREAT MOD!!! I need it!!! :up:

Do you have any news on the compatibility to vB 3.7.0? :confused:


Thank YOU! :up:

Guest190829
05-22-2008, 12:41 AM
There's a 3.7 version released, check my profile for the link. :)

Divvy
03-07-2013, 10:09 AM
Great MOD, I have installed in my vbulletin 4.1.5 version and works fine!

But I would like to ask Danny.VBT, If is possible to work with inline moderation, for example:
http://i.imgur.com/omq4MDC.png

Just need that to be PERFECT! :)

vithorius
06-27-2013, 11:12 PM
For this to be really perfect, the hack should work on a per forum basis, I mean:

You go to AdmiCP -> Forums -> and on each forum you select if you want to enable the hack and to WHICH forum would you like to move the closed threads.

In my case, we have three 'thrash' forums (we call it 'archives') where we want the closed threads to be moved to. So that would be perfect if we could just assign a 'archive' forum where closed threads are automatically moved to just by clicking the close option.

So it would be PERFECT to set this feature like as I said above.

Would it be easy to code?