Hi,
I made a primitive character count for Short Summary.
1. Create a file: sign_limit.js
HTML Code:
function SignLimit(tab,max)
{
var oSpan = document.getElementById( 'counter' );
oSpan.innerHTML = ( ( tab.value.length ) ) +'/' + max;
if ( tab.value.length = max )
{
input = tab.value.substring(0,max - 1);
tab.value = input;
}
}
2. Upload file to your server sign_limit.js (eg. a folder vbrides)
3. Template: 'vbrides_addedit_ride'
find:
HTML Code:
<textarea name="smalldesc" style="width:100%;height:100px;">{vb:raw smalldesc}</textarea>
replace with:
HTML Code:
<textarea name="smalldesc" style="width:100%;height:100px;" id="smalldesc" onkeyup="SignLimit(this,255);" cols="\"25"">{vb:raw smalldesc}</textarea>
<small>...<strong><span style="color:red;font-weight:bold;" id="counter">0/255</span></strong> ...</small>
4. In the first line of the template, insert:
HTML Code:
<script src="http://yourdomain/vbrides/sign_limit.js" type="text/javascript"></script>
The limit must be set in the code.
This is very primitive but for me it works.