Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Reason for Closing Thread Details »»
Reason for Closing Thread
Version: 1.00, by WhSox21 WhSox21 is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-18-2004 Last Update: 09-18-2004 Installs: 40
DB Changes
 
No support by the author.

This hack is my first released free hack.

It runs no extra queries so it should not make any load times longer.

How it works:
Once you click on Close thread in the Thread Tools menu, it will pop up with a javascript alert asking for the reason you are closing. You may click cancel or ok. If you inputted something into the box it will save it and appear at the top right above the first post.

Modifications:
1 Table Modification
3 File Modifications
5 Template Modifications
1 Template Addition

Please click install if you install this hack.

www.hackvb.com - For your custom hacks!

*Note: This was only tested on vb 3.0.3. I have not tested it on any other versions and theoretically it should work, but I'm not sure.

Show Your Support

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

Comments
  #52  
Old 12-14-2005, 05:30 PM
dmark101's Avatar
dmark101 dmark101 is offline
 
Join Date: Oct 2002
Location: SoCal
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Justice
thanks to the author, and skydancer... does that 3.5.0 mod work with 3.5.2?
yes, it does.
Reply With Quote
  #53  
Old 12-15-2005, 08:07 AM
Justice's Avatar
Justice Justice is offline
 
Join Date: Oct 2001
Location: New Orleans
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #54  
Old 12-17-2007, 08:40 AM
serhat_kk serhat_kk is offline
 
Join Date: Jun 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i need this for 3.6.x please
Reply With Quote
  #55  
Old 12-17-2007, 11:16 PM
Pirat3 Pirat3 is offline
 
Join Date: Dec 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by serhat_kk View Post
i need this for 3.6.x please
same
Reply With Quote
  #56  
Old 12-25-2007, 03:13 PM
MediaHound MediaHound is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same here, I need this for 3.6.x - have you guys attempted it?
Reply With Quote
  #57  
Old 02-24-2008, 10:28 PM
dmark101's Avatar
dmark101 dmark101 is offline
 
Join Date: Oct 2002
Location: SoCal
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MediaHound View Post
Same here, I need this for 3.6.x - have you guys attempted it?
i just updated my 3.5.x software to 3.6.8 and it works PERFECTLY.

just remember to follow skydancer's advice toward the end of the text file.
Reply With Quote
  #58  
Old 03-25-2008, 09:39 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One question, does this mod take into consideration the permissions? In other words, I would like only the mods, supermods and admins to be able to see the reason for which a thread is closed. I can do it myself, but before installing everything, I would like to know if this is taken care of.

Many thanks.
Reply With Quote
  #59  
Old 05-30-2008, 06:53 PM
MediaHound MediaHound is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dmark101 View Post
i just updated my 3.5.x software to 3.6.8 and it works PERFECTLY.

just remember to follow skydancer's advice toward the end of the text file.
Thank you! May I ask what version you are up to now with it working?
Reply With Quote
  #60  
Old 05-30-2008, 07:25 PM
MediaHound MediaHound is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I have it working on 3.7, thanks skydancer, dmark101, and WhSox21.
For the record, regarding skydancers fix -
This line appeared often:
PHP Code:
$vbulletin->url 'showthread.php?' $vbulletin->session->vars['sessionurl'] . "t=$threadid"
So I had to determine where to place:
PHP Code:
$db->query("UPDATE " TABLE_PREFIX "thread SET reason='".addslashes($_POST[reason])."' WHERE threadid = $threadid"); 
Mine appears on about line 263... but I use some extra lines of comments in places. ymmv.
Here's to fixing it with each update!
I wish it used hooks and I wish it was a built in feature of vb! I hate editing core files, but we really need this modification on a board of mine.
Reply With Quote
  #61  
Old 06-09-2008, 07:18 PM
MediaHound MediaHound is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK we're onto something here.
The big problem with this hack is that it does not use hooks.
Well, I added one of the file edits to a hook. So, if you do this as well, its one less manual edit each time you upgrade.
Visit your admin panel and under Plugins & Products, click add new plugin.
Product is vbulletin
Hook location is showthread_complete
For title you can use "Reason Post Closed - showthread_complete hook"
Execution order you can leave at 5 or whatever your default is
Code is:
PHP Code:
if (!empty($thread['reason']))
{
    eval(
'$reason = "' .fetch_template('showthread_reason') . '";');

Plugin is active - yes
then hit save.
Don't forget to remove the same code from the bottom of your showthread.php file.
Thats one less file edit each time you upgrade.
Now if we could figure out somehow to get the other file edits in postings.php to use hooks, we will be all set....
Its not fun that this breaks with each upgrade, I hate editing core files...
Whats the process to suggest new hook locations, anyway?
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 03:44 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.09929 seconds
  • Memory Usage 2,304KB
  • 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
  • (3)bbcode_php
  • (4)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
  • (11)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
  • 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