Hello OBK,
I placed the anchor instructions at the top of my postbit template : this was the anchor instruction :
Quote:
<script language="JavaScript">
<!--
function insertAtCaret (textEl, text) {
if (textEl.createTextRange && textEl.caretPos) {
var caretPos = textEl.caretPos;
caretPos.text =
caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
text + ' ' : text;
} else {
textEl.value = textEl.value + text; // for non MSIE browsers just append it
}
return true;
}// fn
//-->
</script>
|
And then, I replaced the entire contents of quick quote template with this code :
Quote:
<FORM name="p$post[postid]" style="display:inline;">
<div style="position:absolute; z-index:1; visibility: hidden">
<textarea name="message" rows="7" cols="1" wrap="virtual" tabindex="1">
Quote:
Originally posted by $post[username]
$quotetext
|
</textarea>
</div>
<a href="#vbform" onclick="document.vbform.message.value = document.vbform.message.value + document.p$post[postid].elements[0].value"><img src="{imagesfolder}/quick_quote.gif" border="0"></a>
</FORM>
|
However, in your anchor instructions file, you had made a mention of this :
Quote:
Find:
code:
onclick="document.vbform.message.value = document.vbform.message.value + document.p$post[postid].elements[0].value"
Replace with:
code:
onclick="insertAtCaret(document.vbform.message, document.p$post[postid].elements[0].value); document.vbform.message.focus();"
|
which template do i find and replace this last step. I checked it the postbit and quickquote template, but i don't have any such code to replace.
Also, previously, i didn't have any conflict between quick quote and quick edit hacks. they are qorking individually very fine. One more to mention is that, I have installed quote selected also for my boards, does that affect anyway ??
Thanks for all the help and sorry to trouble you soo much.
Cheers