The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Real-Time counter in textboxes
Want your users to see how many characters they have left in a big textbox? Just add this two step hack and voila!....
Here's a screenshot: |
#2
|
||||
|
||||
Any way to do this for the message box like newreply, newthread and editpost?
|
#3
|
||||
|
||||
Yes, just add the script code to the header of the page that will be served, and add the code appropriately for any textarea or textbox.
|
#4
|
||||
|
||||
would it still work if we disabled the textbox?
|
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
nice one, thanks
|
#7
|
||||
|
||||
Great one!
|
#8
|
||||
|
||||
Good job.
|
#9
|
||||
|
||||
I do not know if it will work with WYSIWYG, in fact, i doubt it if it's not a standard textarea, and i don't know much about WYSIWYG so it may add the text formatting tags as well. That's a whole new agenda lol
Ok, quick tutorial. I'm assuming you all know how to add the header code in each page served that this functionality will appear on, so we'll move on: The first thing you need to know is that EACH counter/textarea relationship MUST have it's own unique identifier. This means that each textarea should have a unique "name". Real forms do this anyway so you shouldn't have to worry. So, to add this functionality to any textarea, you will need to modify the "textarea" tag according to the following example configured to allow 125 characters maximum PHP Code:
PHP Code:
|
#10
|
||||
|
||||
Sorry but I haven't understand, if I would to count the number of characters in Newthread and in newpost what I can do?
What code I must to insert and where? Tnx in advance Regards |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|