Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Auto Move Closed Threads Details »»
Auto Move Closed Threads
Version: 1.1.1, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.3 Rating:
Released: 11-24-2006 Last Update: 11-26-2006 Installs: 93
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-26-2006, 03:28 AM
Guest190829
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Gray Matter View Post
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?
Reply With Quote
  #13  
Old 11-26-2006, 04:59 AM
michaelsilvia michaelsilvia is offline
 
Join Date: Jul 2005
Location: South Korea
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 11-26-2006, 06:05 AM
Arda MENDES Arda MENDES is offline
 
Join Date: Aug 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank u very much.It is a gr8 add on.

Edit:It doesnt move old closed threads.
Reply With Quote
  #15  
Old 11-26-2006, 06:42 AM
michaelsilvia michaelsilvia is offline
 
Join Date: Jul 2005
Location: South Korea
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 11-26-2006, 07:49 AM
Arda MENDES Arda MENDES is offline
 
Join Date: Aug 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by michaelsilvia View Post
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.
Reply With Quote
  #17  
Old 11-26-2006, 02:39 PM
paldo paldo is offline
 
Join Date: Aug 2005
Location: southwest missouri
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet thank you
Reply With Quote
  #18  
Old 11-26-2006, 08:01 PM
Guest190829
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #19  
Old 11-26-2006, 09:35 PM
rolliet rolliet is offline
 
Join Date: Jan 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 11-26-2006, 11:43 PM
Guest190829
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by rolliet View Post
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.
Reply With Quote
  #21  
Old 11-27-2006, 12:22 AM
Guest190829
Guest
 
Posts: n/a
Default

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)); 



Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05572 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete