The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Obviously, I'm using vB 3.8
Any ideas? |
#12
|
||||
|
||||
Ok so i checked it and it's because that variable isn't available in showthread, this is what you need:
Replace HTML Code:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td> HTML Code:
<td class="smallfont"><a href="#qrform"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td> |
#13
|
|||
|
|||
It works!
But you're missing one little but very important thing. If you use the regular quick reply button, you're moved down to the quick reply box and the focus is inside that box so you know that you should start typing. After applying your instructions, the reply button indeed sends you to the quick reply box but the focus isn't on the box so newbie members could get confused. Any workaround for this? |
#14
|
||||
|
||||
Not a quick fix without messing around with JS n stuff!, i'll take a look tonight when i get home.
|
#15
|
||||
|
||||
Not tested but try adding this onclick event to the <a href...> tag:
Code:
onclick="document.getElementById('vB_Editor_QR_textarea').focus();" |
#16
|
|||
|
|||
Unfortunately that isn't working, BirdOPrey5
|
#17
|
||||
|
||||
I thought that, but i believe the script is only available in the postbit template.
|
#18
|
|||
|
|||
Thank you, hope to get some help from you if possible :up:
|
#19
|
||||
|
||||
To be honest i think thats as good as you are going to get, i don't think you can set focus outside of the element, i tried numerous ways, so without having seperate JS for those two buttons you'll have to stick with just being sent to the form :|
|
#20
|
||||
|
||||
We were on the right track but the trouble was the code I posted only worked in Chrome... It needed a little editing to work in Firefox and IE-
HTML Code:
<td class="smallfont"><a href="javascript:void(0);" onclick="location.hash = '#qrform'; document.getElementById('vB_Editor_QR_textarea').focus();"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td> Should just have an option for people who are visiting without javascript enabled. |
Благодарность от: | ||
Simon Lloyd |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|