DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Clickable links in DNN 9 journal

Sort:
You are not authorized to post a reply.
Page 2 of 2 << < 12





Growing Member





    Posted By Reto Cossalter on 17 Jun 2019 05:21 AM
    Hi Jeff
    I just tried on a vanilla install of DNN 9.3.2 and added the link to this forum post without problem.
    The only thing I had to do was:
    - paste the URL
    - wait (and do nothing, just leave the link standing there) for about 5 seconds
    Then the link information popped up beneath the textbox
    Do you have any message in eventlog?

     

    Ok, I tried that, and it did nothing. Just looks like normal text, even though the whole URL is there, not clickable. And also, I'll post the details in another thread, but the Image uploader has apparently quit working. Could there be any connection between the two issues?

     






    New Around Here





      It looks like this is starting to get a addressed if you didn't know. You can check on the status here: 
      https://github.com/dnnsof...n.Platform/pull/4956

       






      New Around Here





        I created this jquery which will make the links clickable. The only time it does not work is if the user was to paste the link and delete the actual link text before posting.

        var targetDiv = document.querySelectorAll("[id^='jid-'] .journalitem p:first-child");
        for(var i=0; i<targetDiv.length;i++){
        var sumbittedUrls = $(targetDiv).text();
        var urls = sumbittedUrls.match(/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/);

        if($(targetDiv).parent().find('.jlink a').length !== 0) {
        $(targetDiv).parent().find('.jlink a').attr('href', urls[0]);
        $('.journalitem p:contains('+(urls[0])+')').each(function(){
        $(this).html($(this).html().split(urls[0]).join(""));
        });
        }

        }

        You are not authorized to post a reply.
        Page 2 of 2 << < 12

        These Forums are dedicated to the discussion of DNN Platform.

        For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

        1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
        2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
        3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
        4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
        5. No Flaming or Trolling.
        6. No Profanity, Racism, or Prejudice.
        7. Site Moderators have the final word on approving / removing a thread or post or comment.
        8. English language posting only, please.

        Would you like to help us?

        Awesome! Simply post in the forums using the link below and we'll get you started.

        Get Involved