right well the solution I came up with:
Go into showthread_quickreply and find:
directly above add:
Quote:
<script type="text/javascript">
<!--
function charactersleft(source, limit, target)
{
var difference = limit-source.length;
if (difference < 0)
{
document.getElementById(target).innerHTML = "You have no characters left";
} else {
document.getElementById(target).innerHTML = "You have "+difference+" characters left";
}
}
//-->
</script>
|
then find:
Quote:
|
id="{$editorid}_textarea"
|
Note: there should be 2 instances. And replace with:
Quote:
|
onkeyup="charactersleft(this.value, {$vbulletin->options[postmaxchars]}, 'quickreply_charsleft')" id="{$editorid}_textarea"
|
Now you have it working, there is one more thing you must add.
Quote:
<span id="quickreply_charsleft">
</span>
|
You can put that anywhere in the template.
NOTE: there is a little bug in vB which for some reason is adding a space in "this.value" there should be no space.