Some JavaScript codes are not working Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Some JavaScript codes are not working

    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Some JavaScript codes are not working

    Post by ifelthope1126 5/11/2015, 18:30

    Technical Details


    Forum version : #phpBB2
    Position : Founder
    Concerned browser(s) : Mozilla Firefox, Google Chrome, Safari
    Who the problem concerns : All members
    When the problem appeared : I'm not sure. On my testforum this problem occured long ago, but my original forum was fine all that time so I didn't pay many attention. Today I noticed the same problem on my original forum too, but it may have started earlier, as I said I'm not completely sure.
    Forum link : http://sunset.forumtwilight.com/ and http://testforum.lithuanianforum.net/ those are both my forums where I am having this problem.

    Description of problem

    Hello!

    My problem is that some (two, actually, as I have noticed) of my forums JavaScript codes are not working at all, although some time ago they worked just perfectly.

    Codes I am talking about are select content button for code box (tutorial) and character counter (tutorial). Both codes are installed on both of my forums, but suddenly for some reason they are not appearing any more. I mean, they are in JS codes list, but neither the select content button or character counter simply shows.

    I have also installed word counter on my forums, but I don't think that both counters are conflicting, because they used to work perfectly together. I tried removing JavaScripts and installing again, but no use. I haven't recently changed anything or added some new codes I hadn't before. I'm not very good at coding, so maybe some errors in my forum coding have appeared. I would be very grateful if you could take a look Smile


    Last edited by ifelthope1126 on 6/11/2015, 04:56; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Some JavaScript codes are not working

    Post by Ange Tuteur 5/11/2015, 21:14

    Hi @ifelthope1126,

    One of your scripts appears to have a broken string which is interfering with other scripts set in all the pages. Do you have anything like this in your JavaScripts ?
    Code:
    $(document).ready(function(){$('div.sceditor-container.ltr.wysiwygMode iframe').ready(function(){$('div.sceditor-container.ltr.wysiwygMode iframe').contents().find('p').css('color','#FACBD1)})});

    If so, find the hex color
    Code:
    #FACBD1
    and add a closing apostrophe after it. ( ' )
    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Re: Some JavaScript codes are not working

    Post by ifelthope1126 6/11/2015, 04:55

    Yes, I have. Found it and fixed it, must have been my silly mistake when I changed text color in sceditor. Next time I will try to be more accurate. Thank you, amazing as always! Have a great day! Smile Solved.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Some JavaScript codes are not working

    Post by SLGray 6/11/2015, 05:16

    Topic solved and archived




    Some JavaScript codes are not working Slgray10

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