![]() |
Quick Reply Box (with Close/Open thread switch)
This hack will let your users post a Quick Reply, instead of going through the New Reply steps.
If you have permissions, it will show you a Close/Open Thread check box beside the Quick Reply. Also, the check box will show in New Thread, New Reply, New Post and Edit Post. ESTIMATED INSTALL TIME: 10 minutes REQUESTED BY: hellsatan TESTED IN VERSION: 2.2.7 CREDITS: The hack includes one small code segment of FireFly's Quick Reply Box related to user permissions. (9 lines of code) [high]RELATED HACKS[/high] Quick Delete Post Quick Close/Open Thread (with reason) You like this hack? Please click on the [high]Install[/high] button. To download the latest version of this hack, click below: |
A screenshot in Show Thread...
To view the Open/Close check box in New Reply for example, click here. |
Nakkid..is this compatible with the "Reason for Closed Thread" hack?
|
ya.. it is. the steps are identical, except the showthread.php changes. btw, i released v1.1 for 'Quick Close/Open Thread'.
|
Quote:
|
Nakkid,
How about some upgrade instructions for those of us who have already added the quick reply box? :) |
Looks nice, although I sorta like the space of FireFly's quick reply. So I will just extract the quick close option on yours and apply it to his ;)
Once again, good job. |
the idea was to have the close/open switch handy everywhere. i made this template because i like it smaller... :)
just a note for you.. firefly forgot to add his new template into $templatesused so that will add an extra query and also there are some code leftovers from his hacked board. make sure you remove them from the template. ;) |
Quote:
best way is to compare firefly's showthread.php and replybox template with mines. that's the only resemblance to the hack. |
Nice hack
|
let me know if everything was clear in the install steps and if it's working well, so others collegues here, know.
|
FireFly Modification for Quick Reply :
here ^^ - That url downloads the attachment to Nakkid's post which has his Quick Reply Box in the style of FireFly's... Satan |
FireFly's style template for my hack (remove the space inside the bracketed variables):
|
Quote:
|
you rock satan... :)
he helped me fix a little code bug in there, while checking the script.. i corrected the bug and updated the .txt file. :) thank you for helping me help others ;) now the hack is bug free. enjoy. |
No problem:)
BTW : I recommend this hack to people - It rocks!:D Satan |
NOTE: Remove the spaces in front of each bracketed variable.
what is ment by this |
Well...
For example, there are spaces in the template, such as : Code:
{ tablebgcolor} P.S. - Only do it for ones that start with "{ " and end with "}"... Satan |
I installed it just fine, and I like it pretty much, aside from the gobutton replacing the "Submit Reply"...Is there some way to make it so it's perhaps a different graphic button that I make, or just a regular "Submit Reply" button?
I'm not too good with PHP, I just follow instructions, so moddifying isn't such an easy task =P |
This hack was a long one, but if you follow the directions, it installs without a hitch. Excellent work and a VERY nice hack. Thank you! :D
|
Quote:
Code:
<input type="submit" class="bginput" name="submit" value="Submit" tabindex="2"> |
Bah...
I'm getting the following error: Parse error: parse error in /usr/local/psa/home/vhosts/forum.com/httpdocs/newreply.php on line 312 Any tips? Gary |
if you get any parse errors, please read the information placed at the end in the instructions file.
a parse error is due only to code errors, while you modify or write it. |
Nice work Nakkid, thanks for this mod
Drk |
how can i change color of the hack it shows up green someone take a look if i did it correctly www.dssforum.com
|
ok i changed color now when i try to edit a a thread i get : parse error in /var/www/html/forum/editpost.php on line 109
anyone know how to fix this? |
I've installed the Hack.. and it does what it's supposed to..
Except.. that when you either open or close a thread (and post a comment), the thread comes back without my post attached to it. It only shows up after a reload of the thread.. Does anyone else notice this.. or did I screw up somewhere ? PS: And another question.. how do I make this box respond to Alt-S (instead of pressing the button). |
crazza, there are several people who installed this hack without any problem.
check your code segments, there is alot of it. |
thanks 4 your box!
works fine on 227... lg, havefun :rambo: |
I've checked the code and the templates. But the problem still persists.
Can anyone who actually installed this hack confirm that newreply.php does not correctly reload the page immediately when you "reply with open/close" ... and does reload correctly if when you "reply without open/close". You can probably imagine that I want this confirmed before I go digging deep into the code again. |
Code:
You can probably imagine that I want this confirmed before I go digging deep into the code again. |
After checking the code four times, installing the hack on a brand spanking new installation of VBulletin 2.2.6 I discovered that I did nothing wrong in the first place.
Route 1. When entering a thread by clicking the thread's title (e.g. ..../forums/showthread.php?s=&threadid=6055) the thread is only called by threadid. After entering something in the QuickReply box AND clicking either close or open.. the exact same link will be called as stated above, thus showing you an 'old copy' of the page, without your new post. Route 2. When entering a thread by clicking the 'last post' button for this thread (e.g. ..../forums/showthread.php?s=&goto=lastpost&threadid=6055) a 'forced query' is run to determine what the actual lastpost is. After entering something in the QRB and doing an open or close.. the exact same link will be called.. the same query will be run.. and voila.. there's your post. Conclusion Reloading the same page without running the extra query doesn't update correctly when closing or opening the thread. This can be fixed by forcing the reload to run the query (i.e. adding a 'lastpost' statement). Code change Only the php code for newreply.php needs to be altered in two places [around lines 308 and 450] Old code: Quote:
Quote:
|
Any ideas why my avatars arent showing in the thread now..? There still in the PMs though...
|
My bad, was a hack I done before but didnt realise the avatars missing, lmao. Great hack mate, I perfer the QR box without smilies, less load on the server. :D
**EDIT** I mean without not with :D |
crazza, do you have it showing:
Code:
eval("standardredirect(\"".gettemplate("redirect_openclose")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");"); Code:
eval("standardredirect(\"".gettemplate("redirect_openclose")."\",\"showthread.php?s=$session it must be in one line. if separated, that's why is not redirecting you properly. in the hack, it is listed in one line. |
Tech,
Sorry for the inconvenient wrapping in my earlier post.. but yes, the statement was on one line (it wouldn't even end up in the right thread if it wasn't). But the "fix" I put in works a charm.. so I'm a happy camper after all.. |
np, the important thing is that it's working great for you now. congrats. :)
|
And as a bonus I am actually starting to understand all this mumbly jumbly lame excuse for a programming language vbportal vbulletin myseekwall thingamajig :)
It makes me happy I might add.. |
good to hear this.. and welcome to our community.
|
I notice that when you reply using the quick reply box, it does not register that you have posted to subscribe you to the thread if you have that as a default ... is there anything I can add to the code to make it do that? even if I have to add another checkbox below it to do it that would be great!
Any ideas anyone? |
All times are GMT. The time now is 06:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|