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.

Few scripts doesn't working.

View previous topic View next topic Go down

Solved Few scripts doesn't working.

Post by Gazdy on July 8th 2015, 11:12 am

Technical Details

Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome
Screenshot of problem : https://i18.servimg.com/u/f18/18/33/17/00/nyvtel10.jpg
Who the problem concerns : All members
When the problem appeared : I've noticed the problem yesterday.
Forum link : http://domesticavengers.hungarianforum.com

Description of problem

Hello!

My "Select Content Button" and my "Auto Save Posts" scripts doesn't working anymore. Sad I've noticed this problems yesterday afternoon. I previously worked in my "viewtopic_body" template only added a few plus "div class" or just changed the default class names into my new class names, so I've tried to delete my changes but the problem still remains with the default viewtopic_body template too. :/

I searched here similar problems like mine and I found this. So if you need a temporary user account for the check on my forum too, I can give you this one:
USERNAME: Emma Blaze
PASSWORD: fixmeplease

I don't know that this problem is related to this mine or not. But could someone help me with this please?

Thanks,
Gazdy

P.S.: English isn't my native language, so I'm sorry if I made some grammatical mistakes. I hope you can understand what's going on.


Last edited by Gazdy on July 9th 2015, 12:45 am; edited 2 times in total

Gazdy
New Member

Female Posts : 9
Reputation : 0
Language : Hungarian
Location : Pcs, Hungary

http://domesticavengers.hungarianforum.com

Back to top Go down

Solved Re: Few scripts doesn't working.

Post by Ange Tuteur on July 8th 2015, 11:48 am

Hi @Gazdy,

From what I can tell, there's an error in one of your scripts. What was the most recent script you added or modified on your forum ?

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Few scripts doesn't working.

Post by Gazdy on July 8th 2015, 12:02 pm

@Ange Tuteur wrote:Hi @Gazdy,

From what I can tell, there's an error in one of your scripts. What was the most recent script you added or modified on your forum ?

@Ange Tuteur,

this "Chat Title Changer" script was my last added javascript, but it wasn't modified on yesterday. I modified it last time on 24 June at 17:00. :/

Gazdy
New Member

Female Posts : 9
Reputation : 0
Language : Hungarian
Location : Pcs, Hungary

http://domesticavengers.hungarianforum.com

Back to top Go down

Solved Re: Few scripts doesn't working.

Post by Ange Tuteur on July 8th 2015, 12:43 pm

From what I can tell, the error is located near this script :
Code:
jQuery().ready(function(){/ * Vesszük az elemet a főmenüben, hogy ha van egy új üzenete * /var e=$("#i_icon_mini_new_message");/ * Ha van Nem, mi meg itt * /if(!e.length)return;/ * Ha bármelyik, a kép meg fog változni az új üzenet image * /$("#pmO").attr('src','http://www.kephost.com/images/2015/06/18/MenuNEWMESSAGE16.png')});

Which is located under http://domesticavengers.hungarianforum.com/99537.js AKA in all the pages

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Few scripts doesn't working.

Post by Gazdy on July 8th 2015, 6:10 pm

@Ange Tuteur wrote:From what I can tell, the error is located near this script :
Code:
jQuery().ready(function(){/ * Vesszük az elemet a főmenüben, hogy ha van egy új üzenete * /var e=$("#i_icon_mini_new_message");/ * Ha van Nem, mi meg itt * /if(!e.length)return;/ * Ha bármelyik, a kép meg fog változni az új üzenet image * /$("#pmO").attr('src','http://www.kephost.com/images/2015/06/18/MenuNEWMESSAGE16.png')});

Which is located under http://domesticavengers.hungarianforum.com/99537.js AKA in all the pages

Oh, I get it! I get it! bounce

I made a mistake when I changed the original french notes into hungarian between the "/*" and "*/" characters - which is my native language, sadly I think the system doesn't like the hungarian accented letters ... shame on me :"D -; so now I deleted all of them and finally the both script are working again.
The problem solved! ^^

Thank you so much for your help! <3 bye

Gazdy
New Member

Female Posts : 9
Reputation : 0
Language : Hungarian
Location : Pcs, Hungary

http://domesticavengers.hungarianforum.com

Back to top Go down

Solved Re: Few scripts doesn't working.

Post by Ange Tuteur on July 8th 2015, 7:12 pm

No, no, I think the translation was not the problem. Upon further inspection it appears that the comment asterisks are spaced. For example :
Code:
/* Multiline comment */

The above is the correct syntax for a comment, but in the code I highlighted there were spaces where the asterisks should be. This in turn changes the comment into a regular expression literal.
Code:
/ * not a comment * /

I believe the letters in the regular expression caused some problems. If you were to fix the spacing of the asterisks everything would be perfect. Very good

Syntax highlighting better shows what I'm talking about Wink

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Few scripts doesn't working.

Post by Gazdy on July 8th 2015, 10:13 pm

@Ange Tuteur wrote:No, no, I think the translation was not the problem. Upon further inspection it appears that the comment asterisks are spaced. For example :
Code:
/* Multiline comment */

The above is the correct syntax for a comment, but in the code I highlighted there were spaces where the asterisks should be. This in turn changes the comment into a regular expression literal.
Code:
/ * not a comment * /

I believe the letters in the regular expression caused some problems. If you were to fix the spacing of the asterisks everything would be perfect. Very good

Syntax highlighting better shows what I'm talking about Wink

Oh I understand now! Thanks for the last explanation. I love you

Gazdy
New Member

Female Posts : 9
Reputation : 0
Language : Hungarian
Location : Pcs, Hungary

http://domesticavengers.hungarianforum.com

Back to top Go down

Solved Re: Few scripts doesn't working.

Post by APE on July 9th 2015, 6:50 pm

Topic solved and archived





APE
Manager
Manager

Male Posts : 8631
Reputation : 756
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

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