inherit
100877
0
Jun 27, 2012 15:07:10 GMT -8
blueme
17
March 2007
blueme
|
Post by blueme on Jul 7, 2007 16:54:33 GMT -8
You know how you can put a restriction on how many words you have to do before itll let you post, well is there a code that lets you do that on the Quick reply box, and has the word count so you know how many words youve done? I looked in the database but couldnt find one, so i wasnt sure if there is one.
|
|
ialex
New Member
Posts: 10
inherit
143112
0
May 29, 2010 13:09:41 GMT -8
ialex
10
July 2009
ialex
|
Post by ialex on Jul 7, 2007 19:05:04 GMT -8
Try this in your Global Footer.
<script type="text/javascript"> <!--
/*Quick Reply Character Count - By iAlex - May be reposted*/
var iMin="100"; //Minimum amount of characters
if(location.href.match(/action=display/)){ iText=document.getElementsByTagName('textarea'); for(i=0;i<iText.length;i++){ if(iText.item(i).name.match(/^message$/) && iText.item(i).cols=="100" && iText.item(i).rows=="5"){ iText.item(i).id='iGotIt'; var iCharHold=document.createElement('input'); iCharHold.size='5'; iCharHold.disabled=true; iCharHold.value='0'; iCharHold.id='iGotIt2'; var iMessage=document.createTextNode('Characters Typed: '); iText.item(i).parentNode.parentNode.parentNode.appendChild(iMessage); iText.item(i).parentNode.parentNode.parentNode.appendChild(iCharHold); function iWordCount(){ document.getElementById('iGotIt2').value=document.getElementById('iGotIt').value.length; document.getElementById('iGotIt').parentNode.childNodes[8].disabled=true; if(document.getElementById('iGotIt').value.length>=iMin){ document.getElementById('iGotIt').parentNode.childNodes[8].disabled=false; } } iWordCount(); iText.item(i).onkeyup=function(){iWordCount();}; } } }
//--> </script>
|
|
inherit
100877
0
Jun 27, 2012 15:07:10 GMT -8
blueme
17
March 2007
blueme
|
Post by blueme on Jul 8, 2007 12:28:46 GMT -8
Thank you so much!!
|
|
inherit
110944
0
Nov 27, 2008 0:09:08 GMT -8
Kimberley™
91
September 2007
kimmier
|
Post by Kimberley™ on Mar 16, 2008 23:41:32 GMT -8
Is there a way to have this code but have it work of the full forum ecept the games area?
|
|