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

    Posting pics without link to servimg

    TagListed
    TagListed
    Forumember


    Male Posts : 81
    Reputation : 1
    Language : Dutch, English
    Location : Amsterdam

    Solved Posting pics without link to servimg

    Post by TagListed Tue 13 Feb - 9:24

    I got a watermark script working for my forum. But you can click on the image that leads you to the Servimg page where it obviously doesnt show the watermark there.
    This means that the image can still be copied without watermark.

    Is there maybe a way to disable the image hyperlinks?
    In both ways you can click on the image.

    Code:
    [img]https://i.servimg.com/u/f64/20/54/52/59/wallpa14.jpg[/img]

    Posting pics without link to servimg Wallpa14

    Code:
    [url=https://servimg.com/view/20545259/12][img]https://i.servimg.com/u/f64/20/54/52/59/wallpa14.jpg[/img][/url]

    Posting pics without link to servimg Wallpa14
    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Posting pics without link to servimg

    Post by Razor12345 Tue 13 Feb - 10:24

    Good afternoon!

    When you write a post and insert an image using BBCode, it automatically transforms into HTML markup and adds a link tag (
    Code:
    <a href='link'><img ... /></a>
    )

    Posting pics without link to servimg Scree722

    We can add code to remove the
    Code:
    href
    tag from the link. In that case, if the user clicks on the image, it will open a new window with the same theme.

    AP - Modules - Javascript codes management - Create a new JavaScript

    Title: any
    Placement: in all the pages
    Javascript Code:

    Code:
    $(function() {

    const message = document.querySelectorAll('.content');
    message.forEach(item => item.querySelectorAll('a[rel="nofollow"]').forEach(itemA => itemA.href = ''))
     
    });



    Posting pics without link to servimg Screen51

    Niko, SarkZKalie and TonnyKamper like this post

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Posting pics without link to servimg

    Post by skouliki Sat 17 Feb - 10:01

    hello

    if your request is complete, please mark it as Solved.

    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Posting pics without link to servimg

    Post by Razor12345 Sun 25 Feb - 13:49

    Good afternoon!

    It's been a week now. We have not heard back from the author.
    I'm closing the topic and moving it to the archive.

    If your problem is not solved - send me a private message and I will open this topic for further help.

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    Posting pics without link to servimg Screen51

      Current date/time is Sun 22 Sep - 18:26