Hi. There must be a way to associate text with uploaded images but I can’t figure it out.
I'm using the Multifile Upload mod so users can add up to 5 images. I also want them to be able to add pertinent information like title, size, etc.
In html.pl, the html_record_form uses:Code:
<input type=”file” name=”file-to-upload-$u”> #for adding and modifying images.
#This is saved in a new directory.
#Using the following I'm able to get the titles to the correct fields.
<input type=”text” name=”title-$u”>
#These fields are defined in db.cfg. as title_1, title_2, etc. and saved in the db.
When the image is viewed however, I can’t figure out how to get the correct title to appear. The number of images can vary between 0-5.
Any suggestions, please?
BTW: This is my first post but I’ve read and learned a tremendous amount from this forum over the last few years. Its an amazing place.
Nov 19, 2003, 12:33 AM
New User (2 posts)
Nov 19, 2003, 12:33 AM
Post #1 of 3
Views: 2674
Nov 19, 2003, 3:03 PM
Veteran / Moderator (3034 posts)
Nov 19, 2003, 3:03 PM
Post #2 of 3
Views: 2618
Search in the FAQ noted below under the section "Images" for a thread called "Multiple Image Upload (graphic files at different positions)"
There are a few combined threads in the FAQ thread. I believe by looking at how you would display the images in different positions it will also lead you to the code needed to add your specific sizes and titles to each graphic.
For sizes, you may need to define fields for each photo in your .cfg file for height and width.
Hope this helps
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/
There are a few combined threads in the FAQ thread. I believe by looking at how you would display the images in different positions it will also lead you to the code needed to add your specific sizes and titles to each graphic.
For sizes, you may need to define fields for each photo in your .cfg file for height and width.
Hope this helps
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/