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.

Some JavaScript codes are not working

View previous topic View next topic Go down

Solved Some JavaScript codes are not working

Post by ifelthope1126 on November 5th 2015, 6:30 pm

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 November 6th 2015, 4:56 am; edited 1 time in total

ifelthope1126
Forumember

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

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Some JavaScript codes are not working

Post by Ange Tuteur on November 5th 2015, 9:14 pm

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. ( ' )

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Some JavaScript codes are not working

Post by ifelthope1126 on November 6th 2015, 4:55 am

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.

ifelthope1126
Forumember

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

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Some JavaScript codes are not working

Post by SLGray on November 6th 2015, 5:16 am

Topic solved and archived



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


SLGray
Administrator
Administrator

Male Posts : 35657
Reputation : 2375
Language : English
Location : United States

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