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.

Slashes with text being converted to hyperlinks

View previous topic View next topic Go down

Solved Slashes with text being converted to hyperlinks

Post by Ange Tuteur on October 24th 2013, 2:50 am

I'm not sure when this started, but I noticed it today when a user was having trouble with a script from another forumotion forum. This will affect any javascripts with single line comments.


Apparently some text followed by two slashes with text converts it to a hyperlink.

Ex: 0 + // + Text = 0 http://Text

Code:
1 //HELLO
2 //TEXT


Last edited by SethC1995 on October 29th 2013, 1:43 pm; edited 1 time in total

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Slashes with text being converted to hyperlinks

Post by RadioHead on October 24th 2013, 7:11 am

Hi,

This is a randomly re-occurring issue, could we get a screenshot please, just for verification
Once a member of staff see's this, they'll be able to pass it to the devs and they can apply a fix, hopefully quickly Smile

RadioHead
Forumember

Posts : 337
Reputation : 23
Language : English (der?)

Back to top Go down

Solved Re: Slashes with text being converted to hyperlinks

Post by Ange Tuteur on October 24th 2013, 4:44 pm

The screenshot is in the first post, here's the link.

http://i57.servimg.com/u/f57/18/21/41/30/captur48.png

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Slashes with text being converted to hyperlinks

Post by KevinBlazeCoolerz on October 25th 2013, 8:54 am

I have a same problem

KevinBlazeCoolerz
Forumember

Posts : 36
Reputation : 1
Language : Indonesian

Back to top Go down

Solved Re: Slashes with text being converted to hyperlinks

Post by Ange Tuteur on October 29th 2013, 1:42 pm

Regarding the issues with scripts distributed on FM forums. If you are using single line comments ensure that the editor does not break them when posted.

Simple comments should be written as: // Comment (Slash,Slash,Space Comment) The comment must be separated from the slashes, otherwise you risk distributing a broken script.

technician wrote:"The modication comes from Youtube tags and other contents that use //url instead of http://. There is actually no solution.
Users should not use scripts with simple comments because the use of double slashes makes the following sentence a hyperlink.
Moreover, this use creates bugs. For example a code written on multiple line breaks, will appear on only one line and create a bug.

For example:


$(document).ready(function() {

   var text="Texte du message";

   // We display the message

   alert(text);
);


is going to become:
$(document).ready(function() {var text="Texte du message"; // We display the messagealert(text)Wink;

All that is on the right of // is a comment, the text will never appear. The function is considered as "never closed", so a bug occurs"
This topic can be considered solved as currently there is no solution.

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Slashes with text being converted to hyperlinks

Post by Sir Chivas™ on October 29th 2013, 1:49 pm

Topic Solved & Locked

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

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