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)

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






All times are GMT. The time now is 02:25 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.01135 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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