gwegnerde
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to get RSS feed to display images from posts?@belogir and tuviere
have a look at thumbnailforexcerpts
If it doesn’t work for you like expected (I modified the plugin a bit), drop me a comment on my page (i’m not checking back here regulary).
Forum: Fixing WordPress
In reply to: how to get RSS feed to display images from posts?Hello justin, please check out the feed on my site gwegner.de – would this help you?
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] idea: Button to refresh picture folderI currently don’t know why, but unfortunately the hack above is not generating Thumbnails for new images, although the method is being called. Sorry, I’m going to look into it a bit further if time.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] idea: Button to refresh picture folderI think this is a great idea and would serve to streamline everyones workflow who uploads via ftp (for example directly out of lightroom).
Thus I made a little hack to accomplish this. I hope, alex will incorporate it in one of the upcoming versions – surely in a neater way.
So here we go:
In media-upload.php find the function media_upload_nextgen_form
Near line 96 insert the code embraced by the comment-block:
// Get number of images in gallery if ($_REQUEST['select_gal']){ $galleryID = (int) $_REQUEST['select_gal']; // ---Hack by gwegner.de ---------------------- // rescans the selected folder for new Images before showing it include_once (dirname (__FILE__) . '/functions.php'); $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID'"); nggAdmin::import_gallery($gallerypath); // -------------------------------------------- $total = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$galleryID'"); }
This one will rescan and refresh the gallery every time it is chosen in the WordPress mediauploader.
Have Fun!