Also, I just wanted to share a good trick when using NextGen Gallery and NextGen Custom Fields:
As I have a large amount of pictures (over 3000) to be organized into NextGen galleries and albums, there’re a lot of data inputs to be done, so I found a way to save my time:
Each pic has 4 custom fields: Title, Medium, Size, and Sold/Unsold (drop down). I’ve input data for all the four fields. I then needed to input the Alt & Title Text / Description fields’ data followed the formula: Title (medium, size) Sold/Unsold.
Here’s my trick: I modify the code of manage-images.php (in /nextgen-gallery/admin/),
replace the code: (line 426)
<input name="alttext[<?php echo $pid ?>]" type="text" style="width:95%; margin-bottom: 2px;" value="<?php echo stripslashes($picture->alttext) ?>" />
with the code below:
<input name="alttext[<?php echo $pid ?>]" type="text" style="width:95%; margin-bottom: 2px;" value="<?php echo nggcf_get_field($pid, "title"); ?> (<?php echo nggcf_get_field($pid, "medium"); ?>, <?php echo nggcf_get_field($pid, "size"); ?>) <?php echo nggcf_get_field($pid, "sold"); ?>" />
same thing for the text area: (line 428)
<textarea name="description[<?php echo $pid ?>]" style="width:95%; margin-top: 2px;" rows="2" ><?php echo stripslashes($picture->description) ?></textarea>
replaced by:
<textarea name="description[<?php echo $pid ?>]" style="width:95%; margin-top: 2px;" rows="2" ><?php echo nggcf_get_field($pid, "title"); ?> (<?php echo nggcf_get_field($pid, "medium"); ?>, <?php echo nggcf_get_field($pid, "size"); ?>) <?php echo nggcf_get_field($pid, "sold"); ?></textarea>
The new code helped adding the Alt & Title Text / Description fields’ data automatically after I saved the custom field’s data (and also followed the the formula: Title (medium, size) Sold/Unsold). I need to hit Save twice, in order to save the automatically added data of the the Alt & Title Text / Description.
This trick has saved me a lot of time!
I don’t know if I explained myself well. Just want to share the trick. If anyone has a question about this, please feel free to ask.