zinifexer
Forum Replies Created
-
Forum: Plugins
In reply to: [NextGEN Gallery Date] Update?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…
Forum: Plugins
In reply to: [NextGEN Gallery Date] Update?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 ??
Forum: Plugins
In reply to: [NextCellent Gallery - NextGEN Legacy] Thumbnails not generatingI found a solution!
You must hardcode nextcellent-gallery-nextgen-legacy\lib\gd.thumbnail.inc.php file.
In function ‘show’ (@ line 585) insert ‘clearstatcache();’ before ‘@ImageGif…’, ‘@ImageJpeg…’ and ‘@ImagePng…’
It works fine form me ??
Forum: Plugins
In reply to: [NextCellent Gallery - NextGEN Legacy] Thumbnails not generatingForum: Fixing WordPress
In reply to: Adding Taxonomy Name to Custom Post Type and Retain PaginationHi Cortez77,
This was my problem too. I spent lot of days with Google searches and reading- Finally I found the solution:
Use the code from Answer 1 and replace
$newrules[‘our-work/(.+?)/page/?([0-9]{1,})/?$’] = ‘index.php?post_type=work&work_category=$matches[1]&paged=$matches[2]’;
to
$newrules[‘our-work/(.+?)/page/?([0-9]{1,})/?$’] = ‘index.php?work_category=$matches[1]&paged=$matches[2]’;
(delete ‘post_type=work&’)
It works fine for me.