Since I succesfully installed this *must have* hack migrating pics from vB2, I found the way to add a "comment" into the album_image_list:
1) Add this code in profile.php just below:
require_once('./includes/functions_upload.php');
process_image_upload('profilepic', $avatarurl);
PHP Code:
$DB_site->query("UPDATE " . TABLE_PREFIX . "customprofilepic SET comment = '" . addslashes($_POST['commento']) . "' WHERE userid = $bbuserinfo[userid]");
2) Add this code in template modifyprofilepic, just below:
<tr>
<td><phrase 1="$permissions[profilepicmaxwidth]" 2="$permissions[profilepicmaxheight]" 3="$permissions[profilepicmaxsize]">$vbphrase[note_maximum_size_x_y_or_z]</phrase></td>
</tr>
Code:
<tr><td>
Comment: <br />
<input type="text" class="bginput" name="commento" size="50" maxlength="100" /></td></tr>
3) In the same template modifyprofilepic replace
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] </label></div>
with this:
Code:
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] - <i>$profilepic[comment]</i></label></div>
4) In template album_image_list the comment will appear as follows:
Code:
<td valign="top" style="padding-left: 20px"><a style="font-size:11pt" href="member.php?$session[sessionurl]u=$image[userid]"><b>$image[musername]</b></a><br /><span class="smallfont">$image[usertitle]<br /><br /><i>$image[comment]</i></span><br />
</td>
It works fine for me, if you want to check, my beta link to have a screenshot is:
http://www.egcommunity.it/forumbeta/album.php?
(Sorry, need to be registered in order to view the photo gallery!)
;-)