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 03-04-2009, 02:58 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Mass close threads hack.

Is this possible to make, maybe by a simple template hack or something?

There is a mass close threads hack for vbulletin 2.0 but we're running 3.8.1.
We would like an option to mass close threads of 1 particular forum.
VB has a mass-move and mass-prune build in, but no mass-close.

How can I do this, or is there anybody who can make a hack/mod for that?
Reply With Quote
  #2  
Old 03-05-2009, 05:08 PM
Mr-Moo Mr-Moo is offline
 
Join Date: Sep 2007
Location: Chicago, IL.
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a built in feature in VB that allows you to tick a small checkbox and scroll to the bottom and select "close selected threads".

Other then that, you would need to edit the PHP file which designates the "move all threads". Once that file is found, you would need to copy that line and duplicate it. Once duplicated you will need to modify it to use the "close" function instead of the "move" function.

Let me know if you need further assistance!
Hope it helps,
Reply With Quote
  #3  
Old 03-05-2009, 05:15 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The little checkbox thing I knew, but I needed it for a complete forum with a couple of hundred posts. Selecting them page by page takes too long in that case.

But your second tip is a good one.
Is there no way to make something like that by creating a new template in stead of editting files?
Reply With Quote
  #4  
Old 03-05-2009, 05:24 PM
Mr-Moo Mr-Moo is offline
 
Join Date: Sep 2007
Location: Chicago, IL.
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To my knowledge no, because there is no variable assigned to "close mass threads". Therefor it would require you to intervene and do this manually.

However I could very easily be mistaken as I am far from a VB/programming expert.
Reply With Quote
  #5  
Old 03-05-2009, 06:00 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oke no problem, thank you for your reply's.
I'm a noob in php, but I will try and have a look if I can do such file edit. Thank you!
Reply With Quote
  #6  
Old 03-09-2009, 11:47 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is your goal with this? Have a forum with only closed threads, no new threads anymore?
Reply With Quote
  #7  
Old 03-09-2009, 02:10 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In fact it is for a forum from a friend of mine for which I do the maintenance, updates and stuff.
He has a couple of forums, a for sale forum and a sold (afgehandeld/verkocht) part.

Posts will be moved to the "sold" forum by moderators and by admins. Once a while he would like to mass-close the posts in the "sold" section. I think maybe because it's a subforum too and it is not displayed as subforum on the main forum page and he does not want it to be displayed. And there won't be any new reply's in that "sold" part.

I thought maybe something like that would be rather easy to make.

But maybe I'm mistaken. In that case he has closed most of them now and if he does a weekly job doing the closing with the build-in option, it would be fine to. But I guess he will forget it again and do the closing in half a year.

So it's no urgent hack or something.
Reply With Quote
  #8  
Old 03-09-2009, 03:07 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the URL to the board of your friend?
Reply With Quote
  #9  
Old 03-09-2009, 03:46 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why does the url matter? He is a licensed user, and I also have the license and password from him.
If you need it for licensing reasons, I can give you the url by pm.
Reply With Quote
  #10  
Old 03-09-2009, 04:32 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then please sent me by PM.

(Sorry but i can't count the times a licensed user was asking for a "friend" who could not ask himself because he didn'thave a license).
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 10:36 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.04200 seconds
  • Memory Usage 2,248KB
  • 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)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete