The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Keyword problem not working..

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Keyword problem not working..

    Post by jomarcabasag 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



    Keyword problem not working.. Sa10


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


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    hello

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

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    skouliki wrote:hello

    do you mean this? https://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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    what is your forum version?

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    Phpbb3
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by skouliki 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?

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by jomarcabasag 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
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by skouliki 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 the SAME written in the title;
      this part is CASE sensitive, so if you have Hello in the title and you write hello the 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


    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by jomarcabasag 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 the SAME written in the title;
      this part is CASE sensitive, so if you have Hello in the title and you write hello the 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.,
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    put here using the code tags the code you used

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by jomarcabasag 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;
    }
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by skouliki 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

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    Do you have topic titles that have EMI?



    Keyword problem not working.. Slgray10

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


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

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


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by skouliki 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

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

    Post by jomarcabasag 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
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    did the code work?

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    skouliki wrote:did the code work?
    Nope. Sad
    Can you put in to garbage?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Keyword problem not working.. Empty Re: Keyword problem not working..

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

    Locked as Requested



    Keyword problem not working.. Slgray10

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

      Current date/time is November 13th 2024, 6:46 pm