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)
-   -   Moderators Functions - Auto Move Closed Threads (https://vborg.vbsupport.ru/showthread.php?t=132462)

11-24-2006 10:00 PM

Auto Move Closed Threads
 
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 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

Quote:

Originally Posted by Shazz (Post 1125071)
Has to be 3.6.3 or higher?

Quote:

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

Quote:

Originally Posted by Reef (Post 1125134)
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

Quote:

Originally Posted by Invalid ID (Post 1125184)
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

Quote:

Originally Posted by Gray Matter (Post 1125231)
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.

Quote:

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

Quote:

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

Quote:

Originally Posted by michaelsilvia (Post 1125332)
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

Quote:

Originally Posted by rolliet (Post 1125903)
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:

PHP Code:

$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] == -|| 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'truetrue)); 





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?
PHP Code:

build_forum_counters($threadinfo['forumid']);
build_forum_counters($moveforumid); 


Guest190829 11-28-2006 06:07 PM

Quote:

Originally Posted by ragtek (Post 1127391)
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?
PHP Code:

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

Quote:

Originally Posted by ragtek (Post 1127464)
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

Quote:

Originally Posted by ragtek (Post 1127976)
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

Quote:

Originally Posted by Zelos (Post 1129158)
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

Quote:

Originally Posted by Zelos (Post 1131436)
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!


All times are GMT. The time now is 07:52 AM.

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.01628 seconds
  • Memory Usage 1,844KB
  • 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
  • (3)bbcode_php_printable
  • (14)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