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.

Keyword problem not working..

View previous topic View next topic Go down

Keyword problem not working..

Post by jomarcabasag on September 10th 2017, 2:37 pm

Hi I have a problem with keyword not working for me...
How to do dat? Razz
Here is my forum:

Link Ramoved Razz





Last edited by jomarcabasag on September 11th 2017, 1:43 pm; edited 2 times in total
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 10th 2017, 5:19 pm

hello

do you mean this?http://help.forumotion.com/t133869-style-topic-title-keywords\
if yes what is the problem exactly
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 11th 2017, 2:16 am

skouliki wrote:hello

do you mean this?http://help.forumotion.com/t133869-style-topic-title-keywords\
if yes what is the problem exactly

Yes Not working for me. How I can work That?

Sorry for my bad English.
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 11th 2017, 7:15 am

what is your forum version?
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 11th 2017, 7:36 am

Phpbb3
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 11th 2017, 9:47 am

what is the problem ..the code does not work at all? you see anything weird?

did you place it in the topics?
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 11th 2017, 9:59 am

skouliki wrote:what is the problem ..the code does not work at all? you see anything weird?

did you place it in the topics?
Yes my code is in the topic.
How I can use it? Sad
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 11th 2017, 10:02 am

did you follow the instructions below ?

#TEXT: replace this TEXT with the word you want to transform (but do not remove the # before it, or the css code won't style your word)

4. Modifications
In the javascript code you have this line:
.innerHTML.replace(/#TEXT/g,'<span id="TEXT">TEXT</span>');



  • #TEXT: this is the first TEXT you find. You have to replace it with the word you want to change
    Note: It is important that the word you replace here is theSAMEwritten in the title;
    this part is CASE sensitive, so if you haveHelloin the title and you writehellothe code won't work

  • TEXT: the second TEXT you find. It is the ID used to style your keyword, if you have multiple keyword styles change it to the ID you want.
  • TEXT: the third TEXT you find. Replace it with the word you want to change

avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 11th 2017, 10:14 am

skouliki wrote:did you follow the instructions below ?

#TEXT: replace this TEXT with the word you want to transform (but do not remove the # before it, or the css code won't style your word)

4. Modifications
In the javascript code you have this line:
.innerHTML.replace(/#TEXT/g,'<span id="TEXT">TEXT</span>');



  • #TEXT: this is the first TEXT you find. You have to replace it with the word you want to change
    Note: It is important that the word you replace here is theSAMEwritten in the title;
    this part is CASE sensitive, so if you haveHelloin the title and you writehellothe code won't work

  • TEXT: the second TEXT you find. It is the ID used to style your keyword, if you have multiple keyword styles change it to the ID you want.
  • TEXT: the third TEXT you find. Replace it with the word you want to change

Yes I follow it but...Not working. I change the #Text to #EHI . But I don't know how to work it.. what I put in the title to work?
Sorry for my bad English.,
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 11th 2017, 10:17 am

put here using the code tags the code you used
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 11th 2017, 10:25 am

Thanks @skouliki

Here is my java scipt
Code:
$(function() {
var c = document.querySelectorAll('.posthead');
for (i=0; i<c.length; i++) {
c[i].innerHTML = c[i].innerHTML.replace(/#EHI/g,'<span id="TEXT">TEXT</span>');
}
});

And here is my css stylesheet
Code:
#EHI {
background: #FFF;
padding: 0px 5px 1px 4px;
border-radius: 6px !important;
font-size: 11px;
float: left;
margin-right: 4px;
border: 1px solid #CCC;
box-shadow: 0px 1px 1px #FAFAFA;
}
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 11th 2017, 11:33 am

you have to follow the above modifications in order for the code to work ...
It is important that the word you replace #EHI is the SAME written in your title
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by SLGray on September 11th 2017, 11:33 am

Do you have topic titles that have EMI?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40227
Reputation : 2718
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 11th 2017, 12:47 pm

SLGray wrote:Do you have topic titles that have EMI?
Nope .
How to work that?
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 11th 2017, 12:59 pm

jomarcabasag wrote:
SLGray wrote:Do you have topic titles that have EMI?
Nope .
How to work that?

he means EHI

with this tutorial, you are able to highlight specific words in your topic titles
if you dont have topic titles with the word EHI then no keywords will be showed up

the reason you changed the word #Text to #EHI must be cause you have topic titles with this word
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 11th 2017, 1:43 pm

skouliki wrote:
jomarcabasag wrote:
SLGray wrote:Do you have topic titles that have EMI?
Nope .
How to work that?

he means EHI

with this tutorial, you are able to highlight specific words in your topic titles
if you dont have topic titles with the word EHI then no keywords will be showed up

the reason you changed the word #Text to #EHI must be cause you have topic titles with this word
Ok thanks @Skouliki Solved. Sad
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by skouliki on September 11th 2017, 3:20 pm

did the code work?
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2907
Reputation : 442
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: Keyword problem not working..

Post by jomarcabasag on September 12th 2017, 1:26 am

skouliki wrote:did the code work?
Nope. Sad
Can you put in to garbage?
avatar
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Re: Keyword problem not working..

Post by SLGray on September 12th 2017, 1:27 am

Locked as Requested


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40227
Reputation : 2718
Language : English
Location : United States

https://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