The TP default display code for image uploads is fairly basic:
<img alt=”‘Scoop’ Jackson.jpg” src=”http://www.myname.com/jackson.jpg” width=”200″ height=”250″ border=”0″ />
I and many users customize our display codes to add borders, margins, captions, alignments, etc. Personally, I add an average of 1 graphic/photo image to each post. Because I want each of the features listed above, I have to do a tremendous amount of manual coding every single time I upload & display an image. My typical image code looks something like this:
<div><img style=”margin-left: 15px” align=”right” alt=”my image.jpg” src=”http://www.myname.com/myimage.jpg” width=”185″ height=”150″ border=”0″ /><p style=”text-align:right;”><span style=”color: blue;”><em>mycaption</em></span></p></div>
I’d like TP to create an Advanced image template for Pro users, allowing them to create their own customized display code which would format automatically for each image uploaded & displayed. There will still be coding data that will need to be entered manually (“left” or “right” alignments for captions, margins and the images themselves). But with a template, one could enter automated coding for each of these elements, leaving the user to add “left” or “right” manually.
It would be a dream!
I’d like to thank Count Zero and other UserGroup members who suggested in a thread I started that I use the CSS template to automate the image display data. While this was an excellent idea– I found that there would still be so many elements (like caption, margin and image alignments) that could not be accomodated by CSS since they would need to be entered manually for each image displayed– that CSS was not the way for me to go.