Word Counter Issue
3 posters
Page 1 of 1
Word Counter Issue
This is a relatively simple problem with a simple answer and yet my javascript is wayy to bad.
So I used forumotions word counter for my forum but I wanted it to only apply to a few forums, so I implemented:
At the top of the code.
And it works, but I want to know how to apply it to several forums.
Like only category 1, 4 and 5.
It should just be a simple or operator but it's not working.
So I used forumotions word counter for my forum but I wanted it to only apply to a few forums, so I implemented:
- Code:
if ($('a.nav[href^="/c1-"]').length == 0)
At the top of the code.
And it works, but I want to know how to apply it to several forums.
Like only category 1, 4 and 5.
It should just be a simple or operator but it's not working.
Last edited by PA on 03.07.14 15:53; edited 2 times in total
PA- Forumember
- Posts : 219
Reputation : 2
Language : english
Re: Word Counter Issue
Hi,
From my basic Js knowledges, you can create how much if statment you want, and you don't need something else than this:
I'm not very sure if it will work, you can try it or you can wait for Ange Tuteur.
From my basic Js knowledges, you can create how much if statment you want, and you don't need something else than this:
- Code:
if ($('a.nav[href^="/c1-"]').length == 0)
if ($('a.nav[href^="/c4-"]').length == 0)
if ($('a.nav[href^="/c5-"]').length == 0)
I'm not very sure if it will work, you can try it or you can wait for Ange Tuteur.
Re: Word Counter Issue
I tried it like this:
Didnt work
- Code:
if ($('a.nav[href^="/c1-"]').length == 0);
if ($('a.nav[href^="/c3-"]').length == 0) return;
Didnt work
PA- Forumember
- Posts : 219
Reputation : 2
Language : english
Re: Word Counter Issue
Nevermind, it worked! Hah..
WOW
WOW
PA- Forumember
- Posts : 219
Reputation : 2
Language : english
Re: Word Counter Issue
Problem solved & topic archived.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Help with word counter?
» something not right i just noticed about word counter
» just one last change at the word counter
» Word Counter in another language
» Word Counter in Certain Areas of Site
» something not right i just noticed about word counter
» just one last change at the word counter
» Word Counter in another language
» Word Counter in Certain Areas of Site
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum