Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-26-2015, 04:57 PM
baderandsonsco baderandsonsco is offline
 
Join Date: Feb 2008
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Schedule move closed threads

Hello! I am looking for a way to schedule a task to move all closed threads from a particular forum into another. We use this forum as a "todo" list. Weekly it would be nice to schedule a task to move the closed threads to another archive forum that could still be searched if needed, leaving just the threads that will need to be done. I know how to do it manually through the admincp, is there a way to accomplish the same thing via a schedule task? I have lost my php programmer, so at this time I have no one that could write it for me. Thanks in advance for any solutions! We are running VB 4.2.2
Reply With Quote
  #2  
Old 06-26-2015, 06:52 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't used it, but there's this: https://vborg.vbsupport.ru/showthread.php?t=178050 (which I only noticed by seeing it in the "SImilar Threads" below). The posts near the end of the thread say that it works with vb4, but if you decide to try it read the last post because apparently there is a minor problem with a phrase.
Reply With Quote
  #3  
Old 06-27-2015, 01:40 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have written a simple add-on that will allow you to set the source and destination forums, and then once a week (on Sundays) all closed threads in the source forum will be moved to the destination forum.

Download the attached .XML file and then follow:

AdminCP ► Plugins & Products ► Manage Products ► Add/Import Product.

Click on "Choose File" and browse to the product .XML file that you downloaded.

Click "Import"

Next, set the options for the product and let me know if this does everything you need.

edit: I have uploaded an update which rebuilds the forum counters...which I initially failed to take into account
Attached Files
File Type: xml product-markflweeklyarchiveclosed.xml (3.1 KB, 13 views)
Reply With Quote
  #4  
Old 06-29-2015, 12:04 PM
baderandsonsco baderandsonsco is offline
 
Join Date: Feb 2008
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are my hero. The only thing that would be nice is a way to manually test it. I installed it this morning, but I need to wait until Sunday to see if it works. Thank you very much though...much appreciated!!!

--------------- Added [DATE]1435587274[/DATE] at [TIME]1435587274[/TIME] ---------------

One more quick question...if I wanted to move the closed threads from multiple forums can I put the ID's in separated by commas or am I limited to 1 forum?
Reply With Quote
  #5  
Old 06-29-2015, 12:23 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by baderandsonsco View Post
You are my hero. The only thing that would be nice is a way to manually test it. I installed it this morning, but I need to wait until Sunday to see if it works. Thank you very much though...much appreciated!!!

--------------- Added [DATE]1435587274[/DATE] at [TIME]1435587274[/TIME] ---------------

One more quick question...if I wanted to move the closed threads from multiple forums can I put the ID's in separated by commas or am I limited to 1 forum?
To test it, you could edit the first line of the plugin, which is:

PHP Code:
if ($vbulletin->options['markfl_weekly_archive_enabled'] AND date("N") == '7'
to read:

PHP Code:
if ($vbulletin->options['markfl_weekly_archive_enabled']) 
and then manually run the daily cleanup from the "Scheduled Task Manager." When finished, then restore the first line of the plugin to the original.

As it is now, you can only enter one id for the source and one for the destination, however I can update the product to allow multiple source forums...do you want all closed threads to go to the same destination?
Reply With Quote
  #6  
Old 06-29-2015, 03:37 PM
baderandsonsco baderandsonsco is offline
 
Join Date: Feb 2008
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already cleaned them up manually this morning so they started fresh this week, so I can wait...no problem...but thanks for the solution.

Yes, it would be multiple source into one destination. Once again...you are my hero.
Reply With Quote
  #7  
Old 06-29-2015, 03:55 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I have updated the product to allow multiple source forums and one destination. Enter the source forums as a comma-delimited list.
Attached Files
File Type: xml product-markflweeklyarchiveclosed.xml (3.3 KB, 11 views)
Reply With Quote
Благодарность от:
TheLastSuperman
  #8  
Old 06-29-2015, 05:45 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Okay, I have updated the product to allow multiple source forums and one destination. Enter the source forums as a comma-delimited list.
I want say something
Example:
i have a 200 reported threads and these threads no longer working its mean i have 200 reports so my question is your this mod can these 200 dead thread move in auto dead section like: 1 section is working and 1 is dead when thread going dear i move dead thread in Dead section can your mod work like this ?
because i have 200 reports and 1 by 1 thread moving is so hard like a headache
How my these dead threads in 1 click going in Dead section ?
Reply With Quote
  #9  
Old 06-29-2015, 05:49 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If those 200 report threads are all closed, then you can use the add-on I attached in post #7 to move them, otherwise it would be better to run a manual query to move those threads. Also, you could probably move them with the inline moderation tools a page at a time, and you could temporarily set the number of threads per page to a sufficiently large number that you could grab all of them in one pass.
Reply With Quote
  #10  
Old 06-29-2015, 06:44 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ooho you dont understand
example when some one make a report when you open the report you see blah blah and Thread link then you open the link and move your thread in dead section after you need to move the report in completed reports section.
its not a problem moving report problem in 200 dead threads link move
any other suggestion how to automatically dead threads going in dead section ?
Reply With Quote
Reply

Thread Tools
Display Modes

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:05 PM.


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.05560 seconds
  • Memory Usage 2,278KB
  • Queries Executed 12 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete