![]() |
Close / Open Thread Via Quick Reply
I wanted to be able to close and open threads as I left my reply via the quick reply box, so I wrote this little template mod.
https://vborg.vbsupport.ru/attachmen...4&d=1211542516 Features
Installation It's a fairly easy install and only requires editing one template (SHOWTHREAD), and importing a product (for the language phrases). The following instructions are for the default theme, but custom themes will probably be really similiar. Download and install the product. This will create the new language phrases so you can translate this hack to your liking. Then open up "SHOWTHREAD" and find this code. It's for the top reply button. HTML Code:
<if condition="$show['largereplybutton']"> You will need to give both the open (reply.gif) and the closed (threadclosed.gif) <img> tags a new CSS class called "replybutton" so that the Javascript can update them. So for the default theme, that would result in this: HTML Code:
<if condition="$show['largereplybutton']"> Now do the same thing for the bottom reply button (same HTML). Now we need to add the new code to the bottom of the quick reply box (same template). Find this code which is the HTML for the "quote message in post" checkbox: HTML Code:
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label> After that (and before what is probably a </div>), add all of this: HTML Code:
<if condition="$show['openclose']"> Save and you're all done! Oh, and don't forget to mark this as installed! :) |
I'm assuming only usergroups capable of closing and opening threads can see this option? :unsure:
|
Quote:
|
Thanks, I remember this being available in the 3.0.x days and it is good to see it back.
|
Quote:
|
very practical I find, installed ;)
|
Thanks, it does what it says :)
Installed. |
Thank you for this!
|
Don't work for me ...
EDIT: Work ^^ |
I've minorly updated the hack. If your forum is in English, no need to update as all this update adds is easier translating of it. There are no other changes.
For those not using English, here's the changed lines:
Then just import the product now attached to the original post and the the new phrases will be created. They can be found under "Show Thread" and are prefixed with "viper_opencloseqr_". |
All times are GMT. The time now is 11:49 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:
|