View Full Version : Referencing existing attachments?
vifferman
4th November 2008, 08:39
This is summat that's been bugging me for some time (like years!)
How do you re-use (or reference) an attachment to a previous post?
Many times, something's come up - a question, or a post on a topic - and I know I've posted a pic before as an attachment. If I just attach the pic from my computer, it is recognised as having been posted before, and it gives me the ID. Yet, there seems to be no easy way to just look in my attachments under the UserCP tab, find the attachment's ID and attach it in some way to a post. If you do, it says it's an illegal address.
Sometimes (if the "Insert Image" button is present), you can use that, or just reference the attachment url as a hyperlink. (BTW - what governs the "Insert Image" button - why is it not always available?)
James Deuce
4th November 2008, 08:45
See that post you made?
It has your avatar and username above it. Click once on your bold, underlined username, and at the bottom of the list is: "view vifferman's attachments".
Send beer.
vifferman
4th November 2008, 09:08
I have no problem finding an attachment - how do I re-use one?
http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82574&d=1200261478
I did it this time by using the "Image" button, but that's not always available. Sometimes it sees me coming and hides....
By the way - we didn't see Evil Pope Palpatine when we were in Rome. Apparently, he heard we were coming and hid somewhere (prolly in a cupboard. Full of choir boys and Nazi memorabilia...)
Hitcher
4th November 2008, 09:35
By the way - we didn't see Evil Pope Palpatine when we were in Rome. Apparently, he heard we were coming and hid somewhere (prolly in a cupboard. Full of choir boys and Nazi memorabilia...)
I thought that was Helen Clark in a Santa suit...
vifferman
4th November 2008, 09:36
I thought that was Helen Clark in a Santa suit...
She doesn't want this widely publicised, but she's actually Palpatine's twin sister.
Or was that 'twin brother'...? :confused:
James Deuce
4th November 2008, 09:50
I have no problem finding an attachment - how do I re-use one?
I did it this time by using the "Image" button, but that's not always available. Sometimes it sees me coming and hides....
By the way - we didn't see Evil Pope Palpatine when we were in Rome. Apparently, he heard we were coming and hid somewhere (prolly in a cupboard. Full of choir boys and Nazi memorabilia...)
Navigate to the image you want to include. If it is 640x480 you can drop it straight into the post.
Right click on the image and if you are using Firefox select "Copy Image Location", and for IE click properties and then copy the URL out of the box the pops up. The URL for your picture of Pope Palpatine is: http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82574&d=1200261478
To insert it as a picture directly in the thread place the following string between a less than sign and a greater than sign: img src=http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82574&d=1200261478
Like this
<img src=http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82574&d=1200261478>
If the picture is bigger than 640x480, you can reference the attachment thumbnail in the img src string, then wrap a URL link around the thumbnail image to the fullsize version of the picture. I'll use one of mine to demonstrate.
One of my favourite bikes of recent history.
The attachment URL is: http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&stc=1&thumb=1&d=1200736337
So to make it an embedded image I'll put a less than sign on the left, type img src=, paste the URL, http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&stc=1&thumb=1&d=1200736337 and finish it off with a greater than sign.
Like this
<img src=http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&stc=1&thumb=1&d=1200736337>
To make it a link, I'll go back to the attachments page, click on the thumbnail and it will open the big version. Then repeat the URL harvesting process you did for the thumbnail. This URL will be different.
http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&d=1200736337
Note how there's some similar numbers and things in the link.
Now go back and edit your post. Use the mouse to highlight the img src string, click on the little chain link image in the formatting section at the top of the post, and past the second URL into the dialogue box that comes up
<img src=http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&stc=1&thumb=1&d=1200736337> (http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&d=1200736337)
Notice how it now has a little blue border around it and the cursor turns into a hand
I've left the left and right square brackets off the start and end respectively so you can see how the code looks, as well as removing the less than and greater signs from the thumbnail location string:
URL="http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&d=1200736337"]img src=http://www.kiwibiker.co.nz/forums/attachment.php?attachmentid=82925&stc=1&thumb=1&d=1200736337[/URL
It's harder to describe than do.
I've attached a text file with the code bits filled in proper like.
Hitcher
4th November 2008, 09:52
Only some forums allow embedded images.
James Deuce
4th November 2008, 09:53
Oi Hitcher, I haven't finished yet mate!! I'll let you know when I've finished that post.
James Deuce
4th November 2008, 10:33
OK, I'm done :)
Hitcher
4th November 2008, 10:36
Nice explanation. I shall reference it. URL pate is a particularly favorite!
James Deuce
4th November 2008, 10:46
Yes that's fixed too. ;)
vifferman
4th November 2008, 10:54
URL pate is a particularly favorite!
It's made of snails, y'know.
Thanks Mr James #2 "The Deuce", Sir!
You are a scholar and a gentlewhatnot.:niceone:
I prolly coulda/shoulda worked it all out myself, seeing this is the kinda shit I'm sposte to do for a living, but it's prolly The Mechanic's Car Syndrome By Poxy Proxy or summat...
Can I post summat here about the trouble I'm having with my css and html templates too?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.