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.

direct link image

+2
Niko
poesia-verses
6 posters

Page 1 of 2 1, 2  Next

Go down

Solved direct link image

Post by poesia-verses May 24th 2023, 8:13 am

Hello. I would like that when clicking on an image in the topic, this image opens via a direct link, and not the servimg site. that is, a new tab was opened with the image itself stored bwi


Last edited by poesia-verses on June 4th 2023, 2:07 pm; edited 1 time in total
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko May 24th 2023, 10:23 am

Dear @poesia-verses

that depends on what format you use when you insert the image from serving Wink
direct link image Scree131

The best solution if you don't want the servimg page to view the image is to use the first link provided when the image is uploaded (for example
Code:
https://i36.servimg.com/u/f36/18/00/81/97/scree131.png
), and then manually place it with the IMG BBCode:
Code:
[img]https://i36.servimg.com/u/f36/18/00/81/97/scree131.png[/img]

If you use the second or the third option, you will get the image BBcode wrapped in the servimg link:
Code:
[url=https://servimg.com/view/18008197/1651][img]https://i36.servimg.com/u/f36/18/00/81/97/scree131.png[/img][/url]

If you want to open the image, even if you can already see the image in the forum, you may replace it in this way, making the
Code:
URL=
match the image link
Code:
[url=https://i36.servimg.com/u/f36/18/00/81/97/scree131.png][img]https://i36.servimg.com/u/f36/18/00/81/97/scree131.png[/img][/url]

Another solution may be to use javascript resources like the following:
https://help.forumotion.com/t115826-add-a-lightbox-effect-to-the-images-of-the-forum
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

BlackScorpion, TonnyKamper and poesia-verses like this post

Back to top Go down

Solved Re: direct link image

Post by poesia-verses May 24th 2023, 11:07 am

@Niko javascript is not working, nothing has changed. I need images inserted with the INSERT button to open in a new window via a direct link, because they are reduced on servimg, but on the forum they open in a new forum window - there is not enough forum width, I will not increase the width
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko May 24th 2023, 11:32 am

Niko wrote:If you want to open the image, [...] you may replace it in this way, making the
Code:
URL=
match the image link
Code:
[url=https://i36.servimg.com/u/f36/18/00/81/97/scree131.png][img]https://i36.servimg.com/u/f36/18/00/81/97/scree131.png[/img][/url]

@poesia-verses sadly it is not possible to customize the servimg popup of editor, you manually need to do what I quoted above Embarassed Embarassed


Last edited by Niko on May 26th 2023, 12:46 pm; edited 1 time in total
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: direct link image

Post by poesia-verses May 25th 2023, 5:09 pm

@Niko your script is not working, Maybe the admins will increase the view of the image on servimg? so that the full size is
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by BlackScorpion May 26th 2023, 12:25 am

I highly doubt they will, as it might correct your issue ,but would create other issues for other users. You can make a suggestion in the SUGGESTION Section.
BlackScorpion
BlackScorpion
Graphic Designer
Graphic Designer

Male Posts : 7030
Reputation : 920
Language : English
Location : USA

https://help.forumotion.com/f6-graphic-design-section

Back to top Go down

Solved Re: direct link image

Post by skouliki May 26th 2023, 9:12 am

hello

if your request is completed/answered, please mark it as Solved.
skouliki
skouliki
Manager
Manager

Female Posts : 15246
Reputation : 1703
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: direct link image

Post by Niko May 26th 2023, 12:46 pm

poesia-verses wrote: @Niko your script is not working, Maybe the admins will increase the view of the image on servimg? so that the full size is

There is no script, is the formatting with BBCodes:

Niko wrote:If you want to open the image, [...] you may replace it in this way, making the
Code:
URL=
match the image link
Code:
[url=https://i36.servimg.com/u/f36/18/00/81/97/scree131.png][img]https://i36.servimg.com/u/f36/18/00/81/97/scree131.png[/img][/url]
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: direct link image

Post by poesia-verses May 28th 2023, 11:51 am

I would still like to see more. you can add a third link above the image - view in a new window
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko May 28th 2023, 6:24 pm

Can you be more clear? I am afraid I cannot understand your question
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: direct link image

Post by zzlasperpen May 28th 2023, 7:13 pm

You want the image to appear in a new tab when you click on without using bbcode url ?
zzlasperpen
zzlasperpen
Forumember

Male Posts : 55
Reputation : 3
Language : VietNam

https://raovat24.forumvi.com/

Back to top Go down

Solved Re: direct link image

Post by sivastar May 28th 2023, 11:24 pm

Code:
[url=https://i36.servimg.com/u/f36/18/00/81/97/scree131.png]

add a ? mark after the jpg or png or whatever...

[url=https://i.servimg.com/u/f36/18/00/81/97/scree131.png?]
sivastar
sivastar
Forumember

Male Posts : 152
Reputation : 16
Language : Tamil
Location : Malaysia

http://www.eegarai.net

Back to top Go down

Solved Re: direct link image

Post by poesia-verses May 29th 2023, 7:47 am

https://coco.forumsclub.ru/viewtopic.php?id=1
example

+/-

when hovering over, a "plus" appears - clicked and increased, then clicked - returned
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by skouliki May 29th 2023, 7:55 am

for the image to be enlarged it depends on what you set the dimensions for images in the admin panel and if the image uploaded or posted is larger. If an image is smaller, it will not have those links.
skouliki
skouliki
Manager
Manager

Female Posts : 15246
Reputation : 1703
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

TonnyKamper likes this post

Back to top Go down

Solved Re: direct link image

Post by Niko May 31st 2023, 9:55 pm

poesia-verses wrote:https://coco.forumsclub.ru/viewtopic.php?id=1
example

+/-

when hovering over, a "plus" appears - clicked and increased, then clicked - returned

If you go to ACP > General > Messages and emails > Configuration, this is the field that @skouliki was referring to:
direct link image Scree136

This will automatically add a bar on top of images, that will be resized if the dimensions are bigger than the provided ones (see on top "enlarge this image" and "click to see fullsize")
direct link image Scree137
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

TonnyKamper likes this post

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 3rd 2023, 7:12 pm

ok, since you can't do it, do the following: so that when you click on "view in full size" (above the link image), the window with the image that opens then slides down the browser to the red line, as in the screenshot.


so that the view in full size is not from the top of the forum, but moves down to the red line, so that the picture is immediately visible, without scrolling

direct link image Clipbo19
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko June 3rd 2023, 9:34 pm

@poesia-verses Can you provide me the link of the page we see in the picture?
so we can check live on your forum is something can be done about this or not

thanks :rose:
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 4th 2023, 6:31 am

why is this picture necessary? this is for example, any picture in fact and on any forum, is it really not clear?
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 4th 2023, 8:40 am

sorry
direct link image 200.gif?cid=78ff2c8fq5ratfezuhubp0blvcb1qks6v042c180lrb6t9hc&ep=v1_gifs_trending&rid=200
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by skouliki June 4th 2023, 9:38 am

hello

can you please inform us what dimensions have you set for your images here
Administration Panel > General > Messages and Emails > Configuration...Messages Section

Resizing images :
Width :
Height :
skouliki
skouliki
Manager
Manager

Female Posts : 15246
Reputation : 1703
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: direct link image

Post by Niko June 4th 2023, 10:38 am

poesia-verses wrote:why is this picture necessary? this is for example, any picture in fact and on any forum, is it really not clear?

@poesia-verses I need the link of this type of page on your forum, not the link of the specific image

this page here:
direct link image Clipbo19

poesia-verses wrote:this is for example, any picture in fact and on any forum, is it really not clear?
and please, be polite because I am only trying to help you. Thanks for your understanding :rose:
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 4th 2023, 11:03 am

poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko June 4th 2023, 11:37 am

Give a try with this code:

Go to ACP > Modules > HTML & Javascript > Javascript management, create a new code with this content:
Code:
$(function() {
        if(location.pathname == "/viewimage") {
                var aTag = $('a[href="javascript:window.close()"]');
                $('html,body').animate({scrollTop: aTag.offset().top},'slow');
        }
});
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

poesia-verses likes this post

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 4th 2023, 12:09 pm

@Niko thanks.

it works! yes, and one more thing: is it possible to add a "magnifier" symbol to the "view in full size" link?


direct link image Clipbo20
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 4th 2023, 12:18 pm

direct link image Aaaaa10
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko June 4th 2023, 12:25 pm

poesia-verses wrote: @Niko thanks.

it works! yes, and one more thing: is it possible to add a "magnifier" symbol to the "view in full size" link?

Add this other javascript:
To have the icon before:
Code:
$(function() {
$('.resizebox.showfull a.fullsize').prepend('<img src="https://icones.pro/wp-content/uploads/2021/06/icone-loupe-vert.png" style=" vertical-align: middle; margin-right: 4px; height: 11px; ">');
});

To have the icon after:
Code:
$(function() {
$('.resizebox.showfull a.fullsize').append('<img src="https://icones.pro/wp-content/uploads/2021/06/icone-loupe-vert.png" style=" vertical-align: middle; margin-left: 4px; height: 11px; ">');
});

direct link image Scree147

I didn't get your second post - but remember that double posting is not allowed on this forum (if you need to add more info you can edit your previous post)
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

skouliki likes this post

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 4th 2023, 12:52 pm

@Niko does not work
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko June 4th 2023, 1:31 pm

@poesia-verses can you try with this?
Code:
$(function(){$(function(){$('.resizebox.showfull a.fullsize').append('<img src="https://i.servimg.com/u/f10/20/33/56/10/a112.gif" style="vertical-align: middle; margin-left: 4px;">')});});
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: direct link image

Post by poesia-verses June 4th 2023, 1:41 pm

There is not. there I looked twice "after"
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: direct link image

Post by Niko June 4th 2023, 1:51 pm

This (should) work Embarassed

Code:
$(document).ready(function() {
   setTimeout(
      function() {
         $('.resizebox a.fullsize').append('<img src="https://i.servimg.com/u/f10/20/33/56/10/a112.gif" style="vertical-align: middle; margin-left: 4px;">');
      }, 1000);
});
Niko
Niko
Helper
Helper

Male Posts : 3130
Reputation : 246
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

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