quirkymissy
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Photo Album Plus] Import from NextGen (maybe?)I would be interested to know if WPPA+ is able to convert the nextgen galleries. I have many posts that use nextgen, a conversion tool will be so cool. Nextgen is giving lots of problem recently, many fixes have been made, but not fixing most problems.
Same here, updated to 2.0.17, no improvement, already submitted the bug report after changing the permalink (it was never default, to begin with) setting to other than default, no difference too.
The grey overlay on clicking of image or missing caption, and unable to insert the nextgen gallery in new post.
Screenshots submitted too, so that the team knows what I mean by unable to insert the gallery in new post.
It’s been many revisions since it’s ‘broken’, will this very get fixed? If we were to remove the plugin – it’s really looking very unprofessional to have a broken plugin on business blog – what happens to the existing posts that are using nextgen gallery?
Do anyone have a solution to prevent image loss after removing the nextgen plugin?
yeah, I have to use shortcode, the ‘insert’ gallery icon opens up weird, there is not actual insert button. The grey overcast on posted images is also not fixed in 2.0.14
Tried rolling back, doesn’t help. Waiting for a permanent fix.
Forum: Plugins
In reply to: [Slimbox] Overlay greyed out with NextGen 2.0 and 2.02 and WP3.5 and 3.6I have the same problem; for chrome, it appears without the grey cast but there is nothing showing in the text.
Ok, my bad. I completely missed the ‘page’ in this thread. I was looking for automatically using the first image of nextgen gallery as featured image of a ‘post’, and I actually want it to work retrospectively (because many old posts do not have featured image now).
I am so sorry to have wasted your time, and thank you so much for taking the time.
I think I placed the code wrongly earlier. But it still doesn’t work.
do_action('ngg_gallery_addnewpage', $this->gid); } //Start Set Featured Image //Determine filepath of selected NextGEN preview image $gallery_id = $this->gid; // Use the PODS column, custom post field or however you would get this ID $results = $wpdb->get_results("SELECT ng.path, np.filename FROM wp_ngg_pictures np, wp_ngg_gallery ng WHERE np.galleryid=ng.gid AND np.galleryid=".$gallery_id." AND np.pid=ng.previewpic",ARRAY_A); if(!empty($results[0]['path']) && !empty($results[0]['filename'])) : $imgpath = ABSPATH.$results[0]['path'].'/'.$results[0]['filename']; endif; //Set filepath and filename variables $image_url = $imgpath; //Copy the file from the NextGen Gallery to the Media Library (uploads folder) $upload_dir = wp_upload_dir(); $filename = basename($image_url); if(wp_mkdir_p($upload_dir['path'])) $file = $upload_dir['path'] . '/' . $filename; else $file = $upload_dir['basedir'] . '/' . $filename; //Perform copy function if (!copy($imgpath, $file)) { echo "failed to copy $file...\n"; } //Create entry in media library $wp_filetype = wp_check_filetype($filename, null ); $attachment = array( 'post_mime_type' => $wp_filetype['type'], 'post_title' => sanitize_file_name($filename), 'post_content' => '', 'post_status' => 'inherit' ); $attach_id = wp_insert_attachment( $attachment, $file, $post_id ); //Set featured image for newly created page set_post_thumbnail($gallery_pageid, $attach_id); //End Set Featured Image } /** * Publish a new post with the shortcode from the selected image *
Sorry, let me try again.
I confirm that nothing is going on. My gallery has a different gallery directory, does that affect the outcome?
I created a test post using an existing gallery, no featured image was grabbed, no new image was copied to media library. I placed the code right after `do_action(‘ngg_gallery_addnewpage’, $this->gid);
}`do_action('ngg_gallery_addnewpage', $this->gid); } $results = $wpdb->get_results("SELECT ng.path, np.filename FROM wp_ngg_pictures np, wp_ngg_gallery ng WHERE np.galleryid=ng.gid AND np.galleryid=".$gallery_id." AND np.pid=ng.previewpic",ARRAY_A); if(!empty($results[0]['path']) && !empty($results[0]['filename'])) : $imgpath = ABSPATH.$results[0]['path'].'/'.$results[0]['filename']; endif; //Set filepath and filename variables $image_url = $imgpath; //Copy the file from the NextGen Gallery to the Media Library (uploads folder) $upload_dir = wp_upload_dir(); $filename = basename($image_url); if(wp_mkdir_p($upload_dir['path'])) $file = $upload_dir['path'] . '/' . $filename; else $file = $upload_dir['basedir'] . '/' . $filename; //Perform copy function if (!copy($imgpath, $file)) { echo "failed to copy $file...\n"; } //Create entry in media library $wp_filetype = wp_check_filetype($filename, null ); $attachment = array( 'post_mime_type' => $wp_filetype['type'], 'post_title' => sanitize_file_name($filename), 'post_content' => '', 'post_status' => 'inherit' ); $attach_id = wp_insert_attachment( $attachment, $file, $post_id ); //Set featured image for newly created page set_post_thumbnail($gallery_pageid, $attach_id); //End Set Featured Image } /** * Publish a new post with the shortcode from the selected image
Thanks for the quick response.
Unfortunately, it still doesn’t work for me. I am using WP3.5 and nextgen V1.9.10; but there is something I should mention. My theme didn’t support Feature Image before. I added the code to the function.php, index.php and single.php to support featured image.
Thanks Kevin,
I tried to insert the codes but it didn’t work.
To clarify, where exactly do we add the first strip of code? And exactly which “}” that we add the 2nd blocks of code?
It would be so helpful if you provide an example of the ‘modified’ file of manage.php
I need this too.
Forum: Plugins
In reply to: [Cloudflare] "The plugin does not have a valid header" upon activationIt’s inaccurate, as communicated in the email with cloudflare support, Damon (whom I believe responded to this thread), I am using the latest version of WordPress 3.5, at this point, there is no newer than that.
It a little disappointing to have a respond from the support team with a less than responsible dismissal reply.
Worpress 3.5 is released on 11 Dec 2012; cloudflare plugin has not been updated since “Last Updated: 2012-11-2”. Go figure.
Forum: Plugins
In reply to: [Cloudflare] "The plugin does not have a valid header" upon activationOk, to get around that message, simply click ‘back’ in your browser.
Go to the ‘Installed Plugins’ page, and look for the cloudflare plugin, click the activate link there instead.
It works for me. I have written to Cloudflare to urge them to update the plugin to be compatible to WP3.5 anyway.
Forum: Plugins
In reply to: [Cloudflare] "The plugin does not have a valid header" upon activationsame here, hopefully there is an update soon, or anyone with a workaround.