Viewing 2 replies - 1 through 2 (of 2 total)
  • zinifexer

    (@zinifexer)

    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 ??

    zinifexer

    (@zinifexer)

    I found an error. The album manager doesn’t work, so you have modify /date/admin/manage-album-support.php from NextGen Gallery Date.

    Delete ‘,$_POST’ from ‘function rcwd_ngg_update_album($currentID,$_POST){‘

    So it will work…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update?’ is closed to new replies.