Posting pics without link to servimg Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
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 February 13th 2024, 9:24 am

    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 : 1477
    Reputation : 262
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Posting pics without link to servimg

    Post by Razor12345 February 13th 2024, 10:24 am

    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 : 15167
    Reputation : 1696
    Language : English,Greek
    Location : Greece

    Solved Re: Posting pics without link to servimg

    Post by skouliki February 17th 2024, 10:01 am

    hello

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

    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1477
    Reputation : 262
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Posting pics without link to servimg

    Post by Razor12345 February 25th 2024, 1:49 pm

    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