View Full Version : Quick Close/Open Thread (with reason)
This hack will allow you to close/open a thread in 2 ways:
1. By entering a reason, while viewing the thread.
Let's see you view a thread and you find some post that is irrelevant to the content of your board (advertising, spam, etc).
The normal way is to go and reply and right after to close the thread.
Not anymore. Once entered the reason, vBulletin will post that message and close the thread for you automatically.
To re-open it, it goes the same way.
2. By adding an attachment or special note to your new thread or reply.
Let's see you want to open a new thread, make an attachment and close rightaway the thread.
All you have to do is check the box related to Close/Open Thread. vBulletin will post that message and close the thread for you automatically.
For new replies goes the same way. By simply checking the box, vBulletin will post your reply and Close/Open the thread.
ADVANTAGES
- no queries or database modifications are needed
- the hack is template based, so you can customize it in few seconds
- only people who have the right to open/close threads on your board will see this option
ESTIMATED INSTALL TIME: 10 minutes
SUGGESTED BY: Sinecure
TESTED IN VERSION: 2.2.6
RELATED HACKS
Quick Reply Box (with Close/Open thread switch) (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40380)
Quick Delete Post (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40523)
UPDATES
Version 1.1
------------------------------------
Changes:
- added the Close/Open check box in editpost.php
You like this hack? Please click (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=40275) on the Install button.
To download the latest version of this hack, click below:
This screenshot will let you view the Quick Close/Open Thread in showthread.php:
The result, after you quick closed the thread, with the listed reason.
Also, you can re-open the thread in the same location:
(notice the post title)
This screenshot will let you view the Quick Close/Open Thread in newreply.php and newthread.php.
The only difference is in newthread.php.
You will not have an Open option because there are no replies:
The result, after you quick closed the new thread, with an attachment:
bandersen
06-25-2002, 06:21 PM
Very cute... on my install list. Thank you!!
Takara
06-25-2002, 07:44 PM
If I just follow the instructions for newthread.php and newreply.php, can I just make it work with the checkbox? I'm not intrested in having the quick close on the showthread.
Ambex Net
06-25-2002, 07:58 PM
Will this work ok on 2.2.5? Just making sure before I install.
Velocd
06-25-2002, 08:29 PM
I'm already presuming that the thread creator (or admin, depends on your forum options) is the only one who can see the "open/close" thread box, correct?
Anyway, thats probably a given. Great hack Nakkid, defiantly installing!
Velocd
06-25-2002, 09:13 PM
Just installed and it works great ;)
Smoothie
06-25-2002, 11:28 PM
You say find this in newthread.php: if ($bbuserinfo[userid]!=0 and !$previewpost) {
if ($bbuserinfo[signature]!="") {
$signaturechecked="CHECKED";
} else {
$signaturechecked='';
}
if ($bbuserinfo[emailnotification]) {
$emailchecked="checked";
} else {
$emailchecked='';
}
}But I can only find this: if ($bbuserinfo[userid]!=0 and !$previewpost) {
if ($bbuserinfo[signature]!="") {
$signaturechecked="CHECKED";
}
if ($bbuserinfo[emailnotification]) {
$emailchecked="checked";
}
}
Originally posted by Takara
If I just follow the instructions for newthread.php and newreply.php, can I just make it work with the checkbox? I'm not intrested in having the quick close on the showthread. yes.
Originally posted by Smoothie
You say find this in newthread.php:
But I can only find this...go ahead and replace it. it will work. vb226 have this difference between newthread.php and newreply.php. probably you run a different version.
Originally posted by Ambex Net
Will this work ok on 2.2.5? Just making sure before I install. ya, it should work from 222 to 226...
but always check the code before you modify. do not start any hack unless you have all the code identical. that's how is done always with older versions. let me know if you got it working and i will add it in the first post as "tested in version"...
UPDATE
I just looked at the code and realised that I forgot a bracket in newthread.php (step 4).
FIND this code: eval("standardredirect(\"".gettemplate("redirect_openclose")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");");
} else {
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");REPLACE it with: eval("standardredirect(\"".gettemplate("redirect_openclose")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");");
} else {
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");
}Sorry about this. The .txt attachment is updated now.
Smoothie
06-26-2002, 03:53 AM
I have the quick reply box at the bottom of showthreads, with clickable smiley box. When I insert this:<!-- first unread and next/prev -->
$closeopenreason
<!-- /spacer -->It breaks the clickable smilies. If I remove $closeopenreason, the smilies work fine.
Smoothie
06-26-2002, 06:27 AM
Everything works fine, except the smiley problem.
Chris M
06-26-2002, 09:41 AM
V nice...
Installed!
Satan
Chris M
06-26-2002, 09:48 AM
Having a problem...
I use 2.2.6, and I cannot find :
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
Help!
Satan
squawell
06-26-2002, 11:31 AM
seems nice hack....
install later.....:D:D:D
* squawell like this..
Originally posted by hellsatan
Having a problem...
I use 2.2.6, and I cannot find :
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {line 238 of an unhacked showthread.php
download the latest 226 .zip file and look at line 238. :)
i think i know where is the problem. you have quick reply box installed? let me know. i will tell you what to do in this case...
squawell
06-26-2002, 02:16 PM
i have a question.....
how do i make it show reason:OOXXin post!!
replace:<input type="text" class="bginput" name="message" size="50" tabindex="1">with:<input type="text" class="bginput" name="message" value="[ b]Reason:[ /b] " size="50" tabindex="1">remove the space in front of b] to have it bold, or put there what ever BBCode you want.
Smoothie
06-26-2002, 03:59 PM
Nakkid-
Any word on why this hack causes problems with the clickable smilies in the quick reply box?
squawell
06-26-2002, 04:12 PM
Originally posted by Nakkid
replace:<input type="text" class="bginput" name="message" size="50" tabindex="1">with:<input type="text" class="bginput" name="message" value="[ b]Reason:[ /b] " size="50" tabindex="1">remove the space in front of b] to have it bold, or put there what ever BBCode you want.
thankz Nakkid..... :)
Originally posted by Smoothie
Any word on why this hack causes problems with the clickable smilies in the quick reply box? i will release later on today an update how to install this hack with the quick reply box.
Chris M
06-26-2002, 06:47 PM
Great thanks:)
Yeh...I just looked at the code, and I have it installed:)
Satan
Smoothie
06-26-2002, 08:11 PM
Just curious Nakkid,
Will there be a change file (for the quick reply box), since I already have this hack installed and working?
Chris M
06-27-2002, 08:28 PM
Any news on that update Nakkid?
Satan
I released v1.1. I added the editpost.php changes. Just add those steps onto your editpost.php file and change the template also.
Originally posted by hellsatan
Any news on that update Nakkid?
Satan Read more here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40380).
Originally posted by Smoothie
Just curious Nakkid,
Will there be a change file (for the quick reply box), since I already have this hack installed and working? No. I released my own Quick Reply hack. Follow the link above.
Smoothie
07-04-2002, 02:33 AM
I have a problem. I have 3 styles on my board. the first 2 styles, the "Thread Closed" appears in the post. The 3rd style it doesn't. I have double checked and triple checked that all the templates are in the new style. It still closes the thread, but the word "Thead Closed" doesn't appear.
is nothing i can do unfortunatelly. check your code.
matthepepe
07-29-2002, 06:55 PM
aksjfdlkjfasdf
matthepepe
07-29-2002, 06:56 PM
im sorry that last post was not supposed to be there. I did have one problem when i installed this hack. I get a script error when i hit to reply in the quick reply box, and i hit ok on the window that tells me about the error and it goes thru and works fine. any ideas on what needs changed to fix that error.
Troy J.
07-31-2002, 04:27 AM
i have one problem when i put the code in the showthread temp it works and shows up but the thing it makes is totally diff in color then my template how can i change that?
Reflex
07-31-2002, 11:05 AM
Awesome hack, and great instructions, thanks a lot :)
BluSmurf
08-11-2002, 12:50 AM
easy installation :D
TECK: A request! I have your quick reply with close/open checkbox hack installed, I think it's great however sometimes someone might just want to close a thread, without replying, and quickly :D
Is it possible to make a modified version of this hack, so that it's only on showthread, maybe like this:
In Quick Reply Box, [I'm using FireFly's Template], under the open/close switch, have another switch which says "Close Thread Without Replying" and if the thread is already closed, "Open Thread Without Replying"
If this is possible, it would be great :)
Also, please regard this post: https://vborg.vbsupport.ru/showthread.php?postid=310537#post310537
those questions should be in Requests forum. it has nothing to do with my hack.
Karmulian
12-01-2002, 07:28 PM
I am using vbb2.2.9 with this hack
everything works ok on it.. except the quickreply(opening or closing)
says no thread specified
i have taken a look through and i can't see why
any ideas
Dribbles
01-06-2003, 02:34 AM
hi, installed on 2.2.9 but I see nothing new at the bottom of showthread. There was one difference in the installation ... when you said to find:
<!-- first unread and next/prev -->
<!-- /spacer -->
mine was different from a quick reply hack and said:
<!-- first unread and next/prev -->
$replybox
<!-- /spacer -->
So I just added the "$closeopenreason" right above the "$replybox" ... but I see nothing new like in the screenshots.
Pretendo
03-09-2003, 02:12 PM
I'm new to installing hacks, sorry if the problem is an obvious one.
I'm running 2.2.9 and this segment of code isn't found in showthread.php in this form, as listed in quickcloseopenthread_v11.txt:
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
I find them split at different locations. (I have the original quick reply box hack installed.)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.