Hi,
I made an update to NextCellent v1.9.30.
Open ‘admin/manage/class-ngg-image.manager.php’ from plugin’s dir and add this code
if ( isset ( $_POST['added_date'] ) && nggGallery::current_user_can( 'NextGEN Edit gallery author' ) ) {
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->nggallery SET added_date= '%s' WHERE gid = %d", esc_attr( $_POST['added_date'] ), $this->id ) );
}
after
if ( isset ( $_POST['author'] ) && nggGallery::current_user_can( 'NextGEN Edit gallery author' ) ) {
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->nggallery SET author= '%d' WHERE gid = %d",
(int) $_POST['author'], $this->id ) );
}
and add this
<tr>
<td align="left"><label for="added_date"><?php _e("Gallery's date", "nggallery") ?>:</label></td>
<td align="left">
<input <?php if ( is_multisite() ) { echo 'readonly = "readonly"'; } ?> type="text" name="added_date" class="regular-text code" id="added_date" value="<?php echo $this->gallery->added_date; ?>"/>
</td>
</tr>
after
<input class="button-secondary action" type="submit" name="addnewpage" value="<?php _e( 'Add page',
'nggallery' ); ?>" id="group"/>
</td>
<?php } ?>
</tr>
That’s all! Have a nice day ??