Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2002, 01:08 AM
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default mass move closed threads

In my help forum, we close threads as soon as their question is answered to cut down on spamming. I wonder if there is a way to mass move these threads to another forum based on their closed status because when you use the built in mass move feature of CB you can't tell which threads it pulls up are closed or openned or stuck any of that.

So is there a hack, or could someone be so kind as to write one, that lets you specify additional fields to base your mass move on and displays the threads accordingly when viewing the results?

So for example, when entering the parameters for the mass move search, I would like to be able to specify:
- number of days since last post
- include stuck threads toggle
- include closed threads toggle
- include openned threads toggle

Then when it displays the results for you to confirm what you want to move, it would be nice if it displayed the following info somehow about each thread:
- is it closed or open
- is it stuck
- date started
- date of last post

Thanks to anyone who can assist me or point me in the right direction
Reply With Quote
  #2  
Old 09-05-2002, 09:05 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

an SQL command can help:
[sql]
UPDATE thread SET forumid=X WHERE forumid!=X AND open=0
[/sql]
(Replace X with your forumid where your threads will be moved.)

Please Notice:
1- I havent test it out and considering the powerful effects of such a query, please apply it to your test board first or backup your board before using it! I dont accept responsibility although I believe it will work without any problems.
2- This will move ALL your closed threads into that forum, if you want to exlude some in a forum Y add " forumid!=Y AND " after "forumid!=X AND".

Considering the fact that it works, you can trigger it inside your vb files like:
PHP Code:
$DB_site->query("UPDATE thread SET forumid=X WHERE forumid!=X AND open=0
"
); 
If you add this line to your vbulletin files, it will automatically run when that file is run. For example you might consider putting it in register.php and whenever a new user registers, your threads will be moved too..
Reply With Quote
  #3  
Old 09-06-2002, 01:47 AM
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your reply ...

However I am looking for something that can run on demand when I invoke it not automatically upon loading a page. Basically what I am looking for is a customized version of the mass move feature so I could specify which forum to move threads from or do all, etc.
Reply With Quote
  #4  
Old 04-19-2003, 07:48 PM
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone at all? I could swear I had found a similar hack on here at one point but now i cannot seem to find it. Anyone know were it went or did I dream it?
Reply With Quote
Reply


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 04:23 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.03971 seconds
  • Memory Usage 2,187KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete