The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quick Reply Box (with Close/Open thread switch) Details »» | |||||||||||||||||||||||||||
Quick Reply Box (with Close/Open thread switch)
Developer Last Online: Nov 2023
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: Show Your Support
|
Comments |
#32
|
||||
|
||||
Code:
You can probably imagine that I want this confirmed before I go digging deep into the code again. |
#33
|
||||
|
||||
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:
|
#34
|
|||
|
|||
Any ideas why my avatars arent showing in the thread now..? There still in the PMs though...
|
#35
|
|||
|
|||
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.
**EDIT** I mean without not with |
#36
|
||||
|
||||
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 [sessionhash]&threadid=$threadid\");"); 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. |
#37
|
||||
|
||||
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.. |
#38
|
||||
|
||||
np, the important thing is that it's working great for you now. congrats.
|
#39
|
||||
|
||||
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.. |
#40
|
||||
|
||||
good to hear this.. and welcome to our community.
|
#41
|
||||
|
||||
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? |
#42
|
||||
|
||||
ya, you are right... i added this to the file.
in showthread.php, find: Code:
$textareacols=gettextareawidth(); Code:
if ($bbuserinfo['emailnotification']) { $emailchecked = 'yes'; } else { $emailchecked = ''; } $textareacols=gettextareawidth(); Code:
<input type="hidden" name="email" value=""> Code:
<input type="hidden" name="email" value="$emailchecked"> for those who installed the hack already, just change the code listed above. |
#43
|
||||
|
||||
OMG! You are a god! Thank you, thank you, thank you!!!
*runs to edit* EDITED: just made the changes. Works like a charm! Thanks a million! |
#44
|
|||
|
|||
I am getting reports of a JS error in IE5
PHP Code:
PHP Code:
Dave |
#45
|
||||
|
||||
hello dave. try this:
onSubmit="return validate(this);" notice the ; an the end. let me know if it fix it. it could also be because you have some javascript that you added in the header, that is not part of vBulletin. in this case i cannot help you. cheers. |
#46
|
|||
|
|||
Ill give it a shot
thanks Dave |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|