We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Text Counter
Topic Started: Sep 18 2017, 08:35 PM (244 Views)
TheViper4Life
Member
[ * ]
Board Address: http://s3.zetaboards.com/Snake_Bite/index/
Board Software: ZetaBoards
Description: Looking for something that shows the exact number of characters typed in the reply box. Preferably in real time.

I believe Zetaboards have a limit of 50,000 characters per post (correct me if I'm wrong)? I'd just like to be able to see the exact number of characters as I type. Sometimes I go over this limit, and it'll help me manage posts better if I can see the exact count.

I know there's a WORD counter button, but I'm looking for something that counts each individual character and can show the number in real time without a button.

Thanks.
Offline Profile Goto Top
 
TheViper4Life
Member
[ * ]
Soooo, I'm guess that's a "not possible"? I know I've seen some VB boards using it before, was just hoping it was possible on ZB as well.
Offline Profile Goto Top
 
ghoshriju33
Member Avatar
I ❤ jQuery
[ *  *  * ]
That's a pretty easy thing to do.
Where do you want the counter to appear?
Fast reply box or reply box or both?
Offline Profile Goto Top
 
TheViper4Life
Member
[ * ]
Both would be great. Like show the text counter below both post boxes.

Thanks.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Admin CP > Board Template > Below the Board
Code:
 
<script type="text/javascript">
$('#fast-reply textarea, #c_post-wrap textarea').after('<div id="character_counter" style="text-align:left;">Characters typed: <span id="character_num"></span></div>').keyup(function() {
$(this).next().find('#character_num').text($(this).val().length);
}).trigger('keyup');
</script>
Offline Profile Goto Top
 
TheViper4Life
Member
[ * ]
Works perfectly, thank you!
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic