Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Aaron

Aaron Avatar
WWWWWWWWWWWW

****
Senior Member

434


November 2005


Add this to the bottom of the Edit User Profile template file:

<script type="text/javascript">
$(document).ready(function() {
var max = $('textarea[name="signature"]').attr('maxlength'),
count = max - $('textarea[name="signature"]').val().length;
$('a#signature_preview').after(' - Characters remaining: <span id="counter">' + count + '</span>');
$('textarea[name="signature"]').bind('keyup', function() {
count = $(this).val().length;
var remaining = max - count;
$('span#counter').html(remaining);
});
});
</script>


This is a built in feature in my Signature Manager plugin, so be sure to check that out if you want more control over your forum signatures.


Last Edit: Mar 28, 2013 15:31:08 GMT by Aaron

Stinky666

Stinky666 Avatar

****
Senior Member

422


December 2009
Thanks for this man :D

newBookmarkLockedFalling