Ok, i try to explain it
First add a cloumn to your database table "4images_images" and "4images_images_temp". In this case i will explain it with the column "image_photographer".
Add this line to "includes/db_field_definitions.php":
$additional_image_fields['image_photographer'] = array($lang['image_photographer'], "text", 1);
The key of the array is the name of the database column.
Then add this line to your language files (main.php):
$lang['image_photographer'] = "Photographer:";
I think the values
"text" and
1 in the array are explained in "includes/db_field_definitions.php".
Now, you can use the following tags in your template (detail.html)
{lang_image_photographer} -> will display
Photographer:{image_photographer} -> will display the entry of the database field
For example add in the template details.html after:
<tr>
<td valign="top" class="row2"><b>{lang_added_by}</b></td>
<td valign="top" class="row2">{user_name_link}</td>
</tr>
this code:
<tr>
<td valign="top" class="row1"><b>{lang_image_photographer}</b></td>
<td valign="top" class="row1">{image_photographer}</td>
</tr>
In addition to this, you can add in the template member_uploadform.html after:
<tr>
<td class="row2" valign="top"><b>{lang_keywords}</b></td>
<td class="row2"><textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords">{image_keywords}</textarea></td>
</tr>
this code:
<tr>
<td class="row2"><b>{lang_image_photographer}</b></td>
<td class="row2"><input type="text" name="image_photographer" size="30" value="{image_photographer}" class="input" /></td>
</tr>
The needed input fields in the Control Panel will appear automatically.
Hope this will help.
Greets Jan