Benjamin
Forum Replies Created
-
You are correct and we have checked in an update that fixes this, to be released in our next update. Thanks for reporting!
I’m not certain I understand your question, could you provide some context for what you are doing?
The previewpic is set automatically when images are uploaded or imported from the FS if their gallery does not have a previewpic attribute set already. Users can choose their own setting, the dropdown field does not exclude ‘excluded’ images.
That’s a little outside of the scope of NextGen, but there’s a few ways to do it. Here is a decent introduction to the WordPress cron layer and how to use it; it should get you started.
We don’t currently a method of doing this automatically, but with a little work and the WordPress cron api this could be arranged. The following code will import new images for all of your existing galleries:
$mapper = C_Gallery_Mapper::get_instance(); $storage = C_Gallery_Storage::get_instance(); foreach ($mapper->find_all() as $gallery) { $id = $gallery->{$gallery->id_field}; $path = $storage->get_gallery_abspath($id); nggAdmin::import_gallery($path, $id); }I don’t have an OSX machine I can test this with, but if the PHP source has been modified you may have to replace the entire plugin directory from a ‘clean’ source.
You’ll need to customize your CSS, but this should get you started.
You’ll need to apply
.ngg-gallery-singlepic-image img { padding: 0; }and.entry-content { padding: 0; }and then adjust the padding for the rest of the elements in your content.It appears that with OSX 10.5 when something is downloaded a quarantine attribute is applied. You should be able to remove that attribute by opening it once, or running xattr -d com.apple.quarantine nextgen-gallery-(version).zip before uploading it to your server.
It appears that with OSX 10.5 when something is downloaded a quarantine attribute is applied. You should be able to remove that attribute by opening it once, or running
xattr -d com.apple.quarantine nextgen-gallery-(version).zipbefore uploading it to your server.Our WP-CLI module (/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/module.wpcli.php) has a method import_image() that will read an image from the filesystem and attach it to a gallery; is that what you mean?
I hope it helps!
You can convert a string date to Unix timestamps with strtotime()
I’ve added this to our next release, but I’m uncertain when that will be. You can fix this yourself faster with the following code:
add_filter('run_ngg_resource_manager', 'check_mafs_download'); function check_mafs_download($valid_request = TRUE) { if (function_exists('mv_install') && isset($_GET['upf']) && isset($_GET['id'])) $valid_request = FALSE; return $valid_request; }Thanks for your report! I’ve checked in an update to MediaRSS that fixes this, though I don’t know when our next release will be exactly.
I’ve tried upgrading from .66 to .77 with the none lightbox setting and it transitioned correctly for me, but it’s possible your instance of PHP interpreted none to fallback to the default (fancybox)-but that’s a wild guess.
At least it works now?
Validation is always useful but at the same time there are multiple standards that make this difficult: NextGen users may have themes that are HTML4, XHTML, or HTML5. We’ve done our best to ensure that everything is as close to the W3 standards as possible but we also have to be practical about providing gallery displays that look nice for everybody ‘out of the box’ and that can mean including non-standard browser specific attributes (like those with the -moz and -webkit prefix).
If proper W3 validity is a priority we do offer customization through custom templates and the NGG_SKIP_LOAD_SCRIPTS constant could let you omit our CSS entirely in favor of your own choice.
I don’t have the contributor tag for my account here but I am one of Photocrati’s programmers working on NextGen. We started wrapping our display logic in is_admin() checks for performance around version 2.0.34 (starting with this commit). We unfortunately had a lot of performance issues with NextGen 2.0’s first release, but I think we’ve fixed a lot of it since then.
If you don’t require the action to be authenticated you could register your ajax on wp_ajax_nopriv_(action) which would have the display type controllers available.