![]() |
Characters counter
JS textbox counter credits to Zach Evans
Template mods: 4 - editor_clientscript - editor_toolbar_off - editor_toolbar_standard - showthread_quickreply Installation Time: 5-10 mins (just find and replace mostly). :) I have tested this in IE and Mozilla firefox , and use it on mah site too. See it in action here ------------------- requested by Carter876 here |
So, does it also works in wysiwyg?
I guess not, since those templates are not to be edited for this mod :/ |
This hack counts the VB tags and the smile code (for esxample [b*][/b*])?
Regards |
Quote:
|
Uhm I think there is a bug :( , if I write my post and the characters count is under 5k all works fine, but when I paste a text from another post and the characters count is more than 5k the hack delete the characters in excess (and this is good :) ) but when I click on Preview button Vb say me that "The text that you have entered is too long (5030 characters). Please shorten it to 5000 characters long" but the characters counter say me that "Characters remaining are 2" :confused: :confused:
I think that this is a bug of characters counter that counts the characters in excess that the hack have been cancelled, tnguy3n what you think about it? Regards |
Quote:
|
ok tnguy3n, if you need a tester I'm avaible ;)
Tnx for your work :) Regards |
Good work bro :)
|
It's not working for me.... :(
I'm using the wysiwyg editor... :( |
Quote:
HTML Code:
onkeyup="textareaCounter('qr_message','MyCounter', $vboptions[postmaxchars])" onkeydown="textareaCounter('qr_message','MyCounter', $vboptions[postmaxchars])" |
tnguy3n are there some news about this hack?! :rolleyes:
Regards |
Has anyone gotten this to work with the wysiwyg editor? If so, how? It seems to work fine for me in the standard editor, but the directions above to add it to the wysiqyg editor is a bit too vague for me, I am afraid.
I included the code in the <textarea...> part and I can get the box to appear, but the function is not there. I also tried pasting the javascript in to the very top of the wysiwyg editor tempklate, but that didn't work, either. Any ideas? |
i can't add this hack to the wysiwyg editor too :ermm: :tired:
|
mine doesn't work, i have installed it and i do not get that box where it tells you how many characters you have left :(
|
I'm curious if any of you who got this to work, found that it breaks the "undo" function in IE only. I wrote my own one of these and the function works fine in all browsers however in IE you can't use UNDO, it's grayed out in the menu that comes up on R-click in the text editor. Firefox and Opera are both fine. I think it has something to do with the way IE handles the onkeyup event.
|
As to the WYSIWYG editor, it's an entirely different animal. It's not a textarea being used so it requires a completely different function to be written.
|
All times are GMT. The time now is 05:24 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|