Post image from URL

Go down

In progress Post image from URL

Post by System32 Wed 24 Mar 2021, 17:23

Is there a way for me to change the script how images are generated from "insert image" ? I developed a script to enter 9Gag url of post and it will extract only image out of it.
System32
System32
Forumember

Male Posts : 118
Reputation : 13
Language : Serbian,English

View user profile http://paganism.forumotion.com/

Back to top Go down

In progress Re: Post image from URL

Post by skouliki Wed 24 Mar 2021, 19:05

hello

as far as i know we can not modify or change that button function

maybe this is an alternative https://help.forumotion.com/t157663-i-search-the-code-of-dowload-button?highlight=button+image
skouliki
skouliki
Manager
Manager

Female Posts : 10883
Reputation : 1370
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

In progress Re: Post image from URL

Post by System32 Wed 24 Mar 2021, 20:00

Ok, let me try to explain by saying this. I developed JS script that will take 9gag post link, and grab only photo from it.

JS fiddle: https://jsfiddle.net/CodeIllusionist/swqhcy5j/1/
Enter this URL for example: https://9gag.com/gag/aZ0yn20

You will see what I am talking about. Because by default that is not supported here, but I found a way to achieve it with my script. But as you said, I can't change the system itself.
System32
System32
Forumember

Male Posts : 118
Reputation : 13
Language : Serbian,English

View user profile http://paganism.forumotion.com/

Back to top Go down

In progress Re: Post image from URL

Post by SLGray Wed 24 Mar 2021, 21:14

The reason why it doesnot work is that the link is to the page, not image.

This is the image link:
Code:
https://img-9gag-fun.9cache.com/photo/aZ0yn20_700bwp.webp

Post image from URL AZ0yn20_700bwp
But the link is not a normal image's URL.


Post image from URL Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 49068
Reputation : 3418
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Post image from URL

Post by System32 Wed 24 Mar 2021, 22:41

I am aware of it. Problem is that people will not click on page, and then right click on image. Boring process. I can solve that with this script.

Edit: That's not the photo link that you show it to me. When you download that, you will see it's not jpg or png , clearly.
System32
System32
Forumember

Male Posts : 118
Reputation : 13
Language : Serbian,English

View user profile http://paganism.forumotion.com/

Back to top Go down

In progress Re: Post image from URL

Post by Ape Wed 24 Mar 2021, 23:18

Sadly there is no way to change the way it works Sad


Post image from URL Left1212Post image from URL Center11Post image from URL Right112
Post image from URL Ape_b110
Post image from URL Keep_s10
Post image from URL Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 16529
Reputation : 1774
Language : fluent in dork / mumbojumbo & English haha

View user profile http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: Post image from URL

Post by brandon_g Wed 24 Mar 2021, 23:33

It may be possible however, to add another icon/button to the post editor do what you want to do, it is only the host an image and insert an image buttons and all the Forumotion provided ones that can not be edited.

-Brandon


Post image from URL Brando10
Remember to mark your topic Post image from URL Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Post image from URL Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 9660
Reputation : 888
Language : English
Location : USA

View user profile https://www.broadcastingduo.com

Back to top Go down

In progress Re: Post image from URL

Post by System32 Thu 25 Mar 2021, 22:40

Yeah, I understand you guys. Thanks anyway.
System32
System32
Forumember

Male Posts : 118
Reputation : 13
Language : Serbian,English

View user profile http://paganism.forumotion.com/

Back to top Go down

In progress Re: Post image from URL

Post by skouliki Fri 26 Mar 2021, 08:22

is this solved?
skouliki
skouliki
Manager
Manager

Female Posts : 10883
Reputation : 1370
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Back to top


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