inherit
219680
0
May 23, 2018 19:01:55 GMT -8
elliehaney
8
March 2015
elliehaney
|
Post by elliehaney on Jul 2, 2015 9:54:49 GMT -8
Hello, I have been looking for a code that puts a word count on the posts of my forum. I finally found one, however I cannot seem to make it work, can anyone help?
I would like to make to word count, 150 words minimum. Here is the code:
insert cod<script type="text/javascript"><!--
if(document.postForm && document.postForm.message) {
var i = document.createElement("input"), x = document.postForm.message;
i.value = "Word Count";
i.disabled = true;
i.type = "text";
i.id = "lg";
x.parentNode.appendChild(i);
document.onkeyup = function() {
document.getElementById("lg").value = (x.value ? x.value.match(/\b/g).length / 2 : 0);
}
}
//--></script>
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jul 2, 2015 11:29:23 GMT -8
|
|
inherit
219680
0
May 23, 2018 19:01:55 GMT -8
elliehaney
8
March 2015
elliehaney
|
Post by elliehaney on Jul 2, 2015 13:00:39 GMT -8
That's the thing though, I heard that plugins do not work on mobile.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jul 3, 2015 12:05:25 GMT -8
That's the thing though, I heard that plugins do not work on mobile. I believe they will if they switch to desk top view. The whole idea behind the mobile version is to strip all the unnecessary stuff to streamline it. I don't have a mobile phone to check but I believe there is that option at the bottom of every site to switch to desk top view.
|
|