Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Reason for Closing Thread Details »»
Reason for Closing Thread
Mod Version: 1.00, by WhSox21 (Coder) WhSox21 is offline
Developer Last Online: Nov 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (2 votes - 5.00 average) Installs: 40
Released: 19 Sep 2004 Last Update: 19 Sep 2004 Downloads: 73
Not Supported DB Changes  

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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	reasonforclosingthread.gif
Views:	684
Size:	11.5 KB
ID:	20751Click image for larger version

Name:	display.gif
Views:	689
Size:	9.3 KB
ID:	20752

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Automatic Thread Closing ralle89 vBulletin 3.7 Add-ons 52 15 Sep 2010 21:24
Reason for closing thread Xenon vBulletin 2.x Full Releases 176 18 Jun 2003 03:56

Comments
  #2  
Old 19 Sep 2004, 15:55
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Interesting hack. You need to fix the instructions file for the following, though.

FIND:
-------------------
<!-- / toolbar -->
-------------------
BELOW IT ADD:
-------------------
$reaons
-------------------

Shouldn't that be $reason?

* Boofo clicks the install button.
Reply With Quote
  #3  
Old 19 Sep 2004, 16:04
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
Should be fixed now... Let me know if you have any troubles. I'd like to know if everything goes smoothly.
Reply With Quote
  #4  
Old 19 Sep 2004, 16:13
alqafelah alqafelah is offline
 
Join Date: Feb 2002
thanks WhSox21
Great work
i'm clicked install it but i have error whene i save modification of SHOWTHREAD template :


The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ***/***/includes/adminfunctions_template.php(3055) : eval()'d code on line 131

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
__________________
hi every body
Reply With Quote
  #5  
Old 19 Sep 2004, 16:15
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
I forgot the biggest part of the hack. I reuploaded the instructions!

Working on that for you. I have no idea why it gave you that error. It didn't give me that error.

Last edited by WhSox21 : 19 Sep 2004 at 16:17.
Reply With Quote
  #6  
Old 19 Sep 2004, 16:18
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
I see the problem. Where it says:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It has <if condition="$show['closethread']"> at the bottom that should be </if>

I fixed that now. I also updated the install file.
Reply With Quote
  #7  
Old 19 Sep 2004, 16:28
alqafelah alqafelah is offline
 
Join Date: Feb 2002
work fine .. thanks alot
__________________
hi every body
Reply With Quote
  #8  
Old 19 Sep 2004, 17:15
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
does it work for quick reply closin?
__________________
Square Ultima 2.0
The Ultimate Square Resource Center!
Reply With Quote
  #9  
Old 19 Sep 2004, 17:33
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
What do you mean exactly? As of now it only works when you use the thread tools menu.
Reply With Quote
  #10  
Old 19 Sep 2004, 17:38
alqafelah alqafelah is offline
 
Join Date: Feb 2002
back

Whene i not write reason it show :

Reason thread was closed:
null

can you cancel show all table of reason if not reason? OR can i put default reason ?
__________________
hi every body
Reply With Quote
  #11  
Old 19 Sep 2004, 17:41
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
How did you get that error? That should not happen. I made it so that if you did not fill in a reason it would not display. What were the steps you took to do that? Did you click cancel or ok or how did you do it?

EDIT:
Are you sure you did all the steps in the install? Are you sure you edited postings.php file correctly?

Last edited by WhSox21 : 19 Sep 2004 at 17:45.
Reply With Quote
  #12  
Old 19 Sep 2004, 17:48
alqafelah alqafelah is offline
 
Join Date: Feb 2002
oh, yes .. your right .. i'm clicked Cancel ! with click Ok no problem .

thanks for support me
__________________
hi every body
Reply With Quote
  #13  
Old 19 Sep 2004, 17:52
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
If you click cancel you shouldn't recieve that either.
Reply With Quote
  #14  
Old 19 Sep 2004, 17:58
alqafelah alqafelah is offline
 
Join Date: Feb 2002
that is what happened for me !

if i not write reason and click OK it's not display anything .. if CANCEL it's display !
__________________
hi every body
Reply With Quote
  #15  
Old 19 Sep 2004, 18:01
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
What version of vb are you using? Can you post me lines 165-182 of your postings.php file? It's not doing that for me when I click cancel nor should it for you. There is something wrong with your install or something.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 20:49.

Layout Options | Width: Wide Color: