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
4 posters

    Slashes with text being converted to hyperlinks

    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Slashes with text being converted to hyperlinks

    Post by Ange Tuteur 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.

    Slashes with text being converted to hyperlinks Captur48

    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
    RadioHead
    RadioHead
    Forumember


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

    Solved Re: Slashes with text being converted to hyperlinks

    Post by RadioHead 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
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Slashes with text being converted to hyperlinks

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

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

    https://i.servimg.com/u/f57/18/21/41/30/captur48.png
    avatar
    KevinBlazeCoolerz
    Forumember


    Posts : 36
    Reputation : 1
    Language : Indonesian

    Solved Re: Slashes with text being converted to hyperlinks

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

    I have a same problem
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Slashes with text being converted to hyperlinks

    Post by Ange Tuteur 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.
    Sir Chivasâ„¢
    Sir Chivasâ„¢
    Helper
    Helper


    Male Posts : 6980
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Solved Re: Slashes with text being converted to hyperlinks

    Post by Sir Chivasâ„¢ October 29th 2013, 1:49 pm

    Topic Solved & Locked

      Current date/time is November 13th 2024, 7:27 pm