Step 1Add new field in
4images_images and
4images_images_temp tables (use phpmyadmin if you can). If you don't know how to add new table fields, you'll probably need google around
As an example we'll call your new field as
image_model (you can name it as you wish as long as you use that name in all steps)
Step 2Open
includes/db_field_definition.phpabove closing
?> insert:
$additional_image_fields['image_model'] = array($lang['image_model'], "textarea", 0);
(if you want simple input field not textarea in ACP (Admin Control Panel), replace word
textarea with
text)
Step 3Open
lang/<your language>/main.php and insert at the end, above closing
?>$lang['image_model'] = "Model";Step 4In
details.html template use
{lang_image_model} (this tag will show text you entered in Step 3) and
{image_model} (this tag will show text that was saved in image_model field for the image).
If you don't want to show anything if image_model field is empty (nothing is saved in there), you can use conditional tags:
{if image_model} ... this will be showed if image_model is NOT empty ... {endif image_model}
{ifno image_model} ... this will be showed if image_model IS empty ... {endifno image_model}
Step 5In
member_uploadform.html template add something like:
<tr>
<td class="row2" valign="top"><b>{lang_image_model}</b></td>
<td class="row2">
<textarea cols="30" class="textarea" rows="10" wrap="VIRTUAL" name="image_model">{image_model}</textarea>
</td>
</tr>