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.

Posting pics without link to servimg

3 posters

Go down

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

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

http://www.taglisted.info

Back to top Go down

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
Razor12345
Razor12345
Support Moderator
Support Moderator

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

Niko, SarkZKalie and TonnyKamper like this post

Back to top Go down

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.
skouliki
skouliki
Manager
Manager

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

http://iconskouliki.forumgreek.com

Back to top Go down

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
Razor12345
Razor12345
Support Moderator
Support Moderator

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

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum