The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Word count?

View previous topic View next topic Go down

Solved Word count?

Post by Sir. Mayo on September 5th 2013, 8:07 pm

Hello,


is there any way i can get a word count in my editor?
See pic for better explanation:

Sir. Mayo
Forumember

Male Posts : 961
Reputation : 84
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Word count?

Post by levy on September 5th 2013, 9:44 pm

You can't add there but I had something similary

Code:
<form method="POST" name="wordcount">
  <script language="JavaScript">

function countit(){

/*Word count script
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/

var formcontent=document.wordcount.wordcount2.value
formcontent=formcontent.split(" ")
document.wordcount.wordcount3.value=formcontent.length
}
</script>
<center><table>
    <tbody><tr>
      <td><textarea rows="6" name="wordcount2" wrap="virtual"></textarea></td>
    </tr>
    <tr>
      <td>

<table><tbody><tr><td><input type="button" value="CALCULATE" onclick="countit()"></td><td><input type="text" name="wordcount3" size="5"></td></tr></tbody></table></td>
    </tr>
  </tbody></table></center>
</form>
Add this where you want to count your words , I will try to make similary soon.

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: Word count?

Post by CCDragon on September 10th 2013, 12:45 pm

Where do you add this code? In de CSS, templates, where?

CCDragon
Forumember

Female Posts : 29
Reputation : 4
Language : Dutch, English, little French, little Germain
Location : The Netherlands

http://kanto-experience.actieforum.com/

Back to top Go down

Solved Re: Word count?

Post by Ikerepc on September 10th 2013, 1:41 pm

It is html code, so in template, but I don't know in what template...

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Word count?

Post by Sir. Mayo on September 10th 2013, 4:19 pm

Thanks Solved!

Sir. Mayo
Forumember

Male Posts : 961
Reputation : 84
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Word count?

Post by SLGray on September 10th 2013, 6:52 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum