Possible to add url to image attachment ?

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
mrix2000
Registered User
Posts: 1204
Joined: Sun Dec 03, 2006 2:23 pm

Possible to add url to image attachment ?

Post by mrix2000 »

Hello all, as the title suggests is there a way to add a url link to a uploaded image attachment ?
Thanks
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Possible to add url to image attachment ?

Post by Lumpy Burgertushie »

if you mean so you can click on the attached image and go to some url then I don't believe so.
however, you can use the img bbcode to link to an image that is hosted elsewhere or somewhere on your server and do the normal url bbcode/img bbcode thing with it.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26502
Joined: Fri Aug 29, 2008 9:49 am

Re: Possible to add url to image attachment ?

Post by Mick »

I had a thought but can’t try it right now. Can an image attachment be inside a bbcode?

Edit: Forget that.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
mrix2000
Registered User
Posts: 1204
Joined: Sun Dec 03, 2006 2:23 pm

Re: Possible to add url to image attachment ?

Post by mrix2000 »

Lumpy Burgertushie wrote: Mon Jun 11, 2018 6:50 pm if you mean so you can click on the attached image and go to some url then I don't believe so.
however, you can use the img bbcode to link to an image that is hosted elsewhere or somewhere on your server and do the normal url bbcode/img bbcode thing with it.

robert
How does one do the normal image linking code but not through the attachment ?

Thanks for the feedback
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Possible to add url to image attachment ?

Post by canonknipser »

A little tricky:
  1. Upload the attachment
  2. Get the attachments url
  3. Put attachment-URL in IMG-Tag
  4. Put URL-Tag around with the url you want to address
[url=https://www.phpbb.com/community/viewforum.php?f=26][img]https://www.phpbb.com/community/download/file.php?mode=view&id=211396[/img][/url]
Result:
Image


Edit: Changed Image URL
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Possible to add url to image attachment ?

Post by Lumpy Burgertushie »

never thought about doing an attachment that way but it works.

the hard part is getting the attachment url to begin with.
you have to upload it, then attach it to the post, then preview and copy the url and paste it within the img and url bbcode tags.
then, before you submit the post you need to delete the attached file by clicking delete file from the attachment box.
then submit the post and it should work.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Possible to add url to image attachment ?

Post by canonknipser »

Lumpy Burgertushie wrote: Mon Jun 11, 2018 8:26 pm before you submit the post you need to delete the attached file by clicking delete file from the attachment box.
:shock:
No, when you delete the image, it is gone. You can't link it anymore.
The image I linked here is from another topic -> viewtopic.php?t=2475226&p=15031996#p15031996

If you want to link a attachment from the same post, you will have it visible two times: One time with the construction from above, one time as original attachment in the attachment section of the post.

And getting the image url is just a mouseover, right click, copy link ...
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Possible to add url to image attachment ?

Post by Lumpy Burgertushie »

well, I just followed your post on my test board. I had the image two times in the post. once I edited the post and deleted the file from the attachment box the second image went away but the first one stayed put.

I was worried that it might delete the image but it did not.


rob ert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53398
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Possible to add url to image attachment ?

Post by Brf »

You orphaned the attachment by deleting it :?
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Possible to add url to image attachment ?

Post by Lumpy Burgertushie »

ok,


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Macko
Registered User
Posts: 45
Joined: Fri Jun 03, 2016 8:38 pm
Location: Online
Name: Mac Ko

Re: Possible to add url to image attachment ?

Post by Macko »

Yeah, as long as you're using the bb codes to embed the image in your post then you can also use the url bb code to make it so that when you click on the image it takes you to whatever url you want to use.

Works for gifs too, of course. Below is a gif from gify and when you click on it, it takes you straight to Google's homepage.

Hope that helps.


Image
[email protected]
Registered User
Posts: 14
Joined: Sat Dec 05, 2020 9:44 am

Re: Possible to add url to image attachment ?

Post by [email protected] »

Macko wrote: Mon Jun 18, 2018 3:58 pm Yeah, as long as you're using the bb codes to embed the image in your post then you can also use the url bb code to make it so that when you click on the image it takes you to whatever url you want to use.

Works for gifs too, of course. Below is a gif from gify and when you click on it, it takes you straight to Google's homepage.

Hope that helps.


Image
How to insert that media directly from computer (not from the link httP:"") and insert url to that media without using [ull]
Thank you
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Possible to add url to image attachment ?

Post by warmweer »

[email protected] wrote: Wed Dec 16, 2020 2:31 pm How to insert that media directly from computer (not from the link httP:"") and insert url to that media without using [ull]
Thank you
Please pay a bit more attention to what you write : [ull] doesn't mean anything - I suspect you are referring to [url]
Having a url point directly to a file on your PC implies that you're actively granting access to you PC from outside. Since you apparently don't know how to make a link point to the document on your PC, I suspect you have no idea about the security implications of such an action.
Just upload it somewhere on the net and post a link to that location. (or make it available as an attachment in your board).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
[email protected]
Registered User
Posts: 14
Joined: Sat Dec 05, 2020 9:44 am

Re: Possible to add url to image attachment ?

Post by [email protected] »

warmweer wrote: Wed Dec 16, 2020 2:51 pm
[email protected] wrote: Wed Dec 16, 2020 2:31 pm How to insert that media directly from computer (not from the link httP:"") and insert url to that media without using [ull]
Thank you
Please pay a bit more attention to what you write : [ull] doesn't mean anything - I suspect you are referring to [url]
Having a url point directly to a file on your PC implies that you're actively granting access to you PC from outside. Since you apparently don't know how to make a link point to the document on your PC, I suspect you have no idea about the security implications of such an action.
Just upload it somewhere on the net and post a link to that location. (or make it available as an attachment in your board).
Thank you friend
I success upload from computer by the below step
  1. attach picture directly from computer
  2. Incline from the attached file
Howerver, when i insert link as

Code: Select all

[url=http://google.com)][attachment=0]LOGO.GIF[/attachment][/url]
, the link does not working
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Possible to add url to image attachment ?

Post by warmweer »

[email protected] wrote: Wed Dec 16, 2020 3:26 pm Howerver, when i insert link as

Code: Select all

[url=http://google.com)]LOGO.GIF[/url]
, the link does not working
The link can't work because http://google.com) is not a valid site. >>> note the )
If you upload LOGO.gif to your boards somewhere: e.g. ... images/uploaded
then the correct link would be:

[url=http://google.com] [img]....images/uploaded/LOGO.gif[/img][/url]

replace ....images/uploaded/LOGO.gif with the full url to the image
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Post Reply

Return to “[3.2.x] Support Forum”