![]() |
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_". |
Ok... so i installed this thing yesterday, when it only had template edits... now do i have to install the product as well?
|
How about the ability to stick and unstick in Quick Reply as well?
|
How about a text file with the instructions in case it ever needs to be re-installed?
|
Quote:
Quote:
Quote:
I'll make one anyway though. :) |
Unfortunately, it looks that your product is not letting me completely use the quick reply.
Instead of showing my message after i post something... it doesn't show. |
Quote:
|
Yes, i'm positive... however, i've got the older version installed on another board and it works perfect.
Could i get the instructions to the older installation? :D |
Quote:
Although if you're talking about the VERY original code from months ago, that can be found here: https://vborg.vbsupport.ru/showthread.php?t=142968 |
Fantastic! THANKS!
|
this is a bit difficult for me, need help
|
i need help installing this
|
Installed and working great on 3.7.3
The only thing I want to comment on is the install instructions tell you to modify the button for the top and bottom, but the code is slightly different. When searching the text, one button is labeled $FIRSTPOSTID and the other $LASTPOSTID So when doing the second reply button, look for: Code:
<if condition="$show['largereplybutton']"> |
Nice addon, thank you. :) Only a cosmetic bug I've found.
If I open or close the thread via quick reply, hover your mouse over the largereplybutton please (without a refresh). If the thread is closed, you did not see the text 'Closed Thread'. You'll see 'Reply'. The alt="$vphrase['reply']" tag is used instead alt="$vbphrase['closed_thread']. Any idea how can we fix this? Regards, Stoebi |
All times are GMT. The time now is 06:16 PM. |
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:
|