The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
I was looking to have this show up in the new thread template.
I actually got this to work and am sharing it in case anyone wants to use it: Step 1: Open "editor_toolbar_on" template Step 2: Find Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea> Code:
<script language="JavaScript"> function countit(){ var formcontent=document.vbform.{$editorid}_textarea.value formcontent=formcontent.split(" ") document.vbform.wordcount3.value=formcontent.length } </script> <input type="button" value="Calculate Words" onClick="countit()"> <input type="text" name="wordcount3" size="20"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|