The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
making "Quote message in reply?" checked automatically
So I want my "Quote message in reply?" checkbox in the quick reply box to be checked at all times. Now the most obvious way to do that is to edit the SHOWTHREAD template and turn:
PHP Code:
PHP Code:
How can I ensure that the box will remain checked when a user submits a reply to the thread without quick replying any particular post? |
#2
|
|||
|
|||
I think maybe the problem is that the check box is disabled if you haven't pressed the button for a post, I guess the idea being that you aren't replying to a particular post so there's nothing to quote. Maybe it looks like it clears because it's disabled?
|
#3
|
|||
|
|||
No, it definitely clears. I know this because if I reply using the quick reply box and then try to reply to a specific post in the thread, the post doesn't get quoted in the reply.
|
#4
|
|||
|
|||
Oh, I think I see - you're saying that if you use it once without quoting a post, the next time (after the page reloads) it's unchecked?
|
#5
|
|||
|
|||
Quote:
I think it has something to do with the AJAX code. It must somehow be clearing the box, but I don't know where to look to make sure the box stays checked. I never want it cleared unless the user clears it. |
#6
|
|||
|
|||
Yeah, I think the JavaScript for that is in clientscript/vbulletin_quick_reply.js, and it looks like it clears that checkbox if a post wasn't selected. So I guess one way is to figure out how to change or add JS.
Another idea might be to rename that checkbox so the JS won't mess with it, then use a plugin on newreply_post_start to read the value of the checkbox and fix things up on the server side. |
#7
|
|||
|
|||
Quote:
|
#8
|
||||
|
||||
Quote:
thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|