How do I reuse attachments?

This site may earn a commission from merchant affiliate
links, including eBay, Amazon, Skimlinks, and others.

yooper

SILVER Star
Joined
Sep 17, 2002
Threads
89
Messages
4,070
Location
a valid location
Is there a way for me to add a pic to a post that I've already uploaded in the past and is sitting in my attachments? Using the "manage attachments" button only allows me to upload more. I tried using the URL of the image itself in the attachments folder but it uses a script so it doesn't work with the tag.

I've done a search and I've searched the FAQ.

:confused:
 
Can you use the image tag in your post , and build a url for that image . IOW's look at the properties of that image as used in another post , and use that url ? Or if you can't find the post it's used in , but know the images name ... then find out the image directory here on this server , and again , build the url based on other images , and just use the image tag ..

Tyler
 
I didn't think of the actual image tag in the code. Hmm, let's try. Here's a new attachment. Filename is boobies2.gif:
boobies2.gif
 
Nope, won't work. The image tag uses a PHP script, but the tag in vBulletin won't accept that. The code is below. If I could find the image directory I'd be set, but really it should be built into the software at a higher level. If it's called "Manage Attachments" it must be built for actually managing them I would think. Woody?

[QUOTE]<!-- attachments -->
<div style="padding:3px">




<fieldset class="fieldset">
<legend>Attached Images</legend>
<div style="padding:3px">
<img class="attach" src="attachment.php?attachmentid=1139&stc=1" border="0" alt="" />
</div>
</fieldset>








</div>
<!-- / attachments -->
[/QUOTE]
 
See?:

trying to insert the code:




using the URL of the image gives you a link, because vBulletin is expecting an actual image file (this is using the tag, not the [url] tag):

[IMG]https://forum.ih8mud.com/attachment.php?attachmentid=1139&stc=1
 
Attachments are stored as part of the Database itself, not as actual files in a folder....they are not "linkable" that way...the ID is assigned to the thread/post itself.

yooper, you've got "unlimited" attachment capabilities, and there are no filename duplication issues like the last software....

attachment.php
(testing myself..lol)
 
the link DOES hit the attachment in a new window....'bout the only compromise I know of right now...
 
Seems like a waste of server space for me to upload the same picture over and over every time I want to use it. The workaround for me is to host such pictures elsewhere, which is doable, just not as convenient.

I'm going to try to upload that one again and see if it will let me use the same filename...NOPE, it won't let me:

Upload Errors

boobies2.gif:
You have already attached this file in thread : How do I reuse attachments?
 
nope...tried all options...yer gonna have to live with the link until I come up with more ideas...

there IS an option to store images in a file system and not in the database...need to research that more and learn what effects that has on server and database performance....stay tuned
 
What I was originally thinking, Woody, is that there is probably an admin setting you can change to turn on reusing attachments, so that when a user clicks on "manage attachments", they get a list of those attachments they already have on the server, and can just choose them from the list. Otherwise why would it be called "manage attachments"? :confused:
 
there isn't....

You CAN see your attachment list in your User CP...

wonder if there's something in there...lol....looking there next....
 
<img src="https://forum.ih8mud.com/attachment.php?attachmentid=905">
 
bombed again...question posted at vBulletin.com, we'll see what response I get...
 
OK. Thanks for your efforts and time! At least I know now that I wasn't missing something obvious that everybody else already knew. For now I'll host most of my images on my own server and keep an electronic sticky note of URL's on my desktop for quick pasting.
 
Thanks for bringing this question up. I even tried to rename the file and upload, the SW is too smart for that, It would be nice to actually manage the attachments just like in the cruiser garage :)
 
Is there a way for me to add a pic to a post that I've already uploaded in the past and is sitting in my attachments?
:confused:

TEST:

I've read the FAQ and searched as well. This was the only thread I could find about reusing attachments. Reading through the thread, there didn't seem to be any resolution that I could understand, not really knowing HTML.

I fiddled around with this today. Discovered I could reuse one of my previously uploaded attachments by inserting the attachment ID into the message using the "attach" command which specified uploaded attachment image ID.

View attachment 199513
 
Last edited:
Obviously it did not copy the image of the attachment into the post. Instead, I got it identified as a link. hmmm...

However, this technique DID NOT work in another post elsewhere:

IH8MUD.com Forum - View Single Post - Mr. Beer

IH8MUD.com Forum - View Single Post - Still Sunday Blue Laws - WTF???

Both of the above forum posts use the same uploaded attachment and the image displays within the body of the post.

:doh: I went back and looked. The reused attachment was NOT included in the post, only the link to the attachment. :whoops:

Oh well. It was a nice thought...
 
Last edited:

Users who are viewing this thread

Back
Top Bottom