Aesqe
Forum Replies Created
-
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Bug overloading the serverI’ve fixed this in v1.7.4.1, should be fine now. Please try it out when you can.
And thanks for the nice comments 🙂 If you have any further suggestions for improvement or patches, etc., please do post them here.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Bug overloading the serveroh god… *facepalm*
I really appreciate these moments when I feel like a complete idiot 😐
@dan-stefan: thank you so much for pointing this out. File Gallery was initially present only on single post editing screens, but then I added a few features here and there which required some javascript, and, without much thinking (obviously), I included the whole File Gallery js file – without checking which page is currently active and what features are actually needed.
I’ll fix it as soon as I get home, thank you once again.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Bug overloading the serverIn case you meant the media listing page, then “file_gallery_media_custom_column” function found in “file-gallery.php” could be causing the problem, because it reads media tags for each attachment on the page. But unless you’re listing all 10k attachments on a single page, I don’t see how that would cause any server overload.
You can turn off displaying of media tags on the media listing page by going to media options and unchecking the “Display media tags for attachments in media library?” checkbox (section “Edit screens options”).
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Bug overloading the server@dan.stefan: “main-form.php” is included only via ajax in the File Gallery metabox, which is displayed only on the post edit page.
How did you determine that this was “main-form.php”‘s fault?
My best guess would be that some other javascript is throwing an error.
Pleas try activating one of the default themes (Twenty Ten, for example), and see if it works then.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] media tag query@nappa5150: try this :
$imagesRand = file_gallery_shortcode('tags=YOUR_MEDIA_TAG&tags_from=all&orderby=rand&limit=3&output_type=object&mimetype=image'); foreach( (array) $imagesRand as $imageRand ) { $imageScrollID = $imageRand->ID; echo '' . wp_get_attachment_image( $imageRand->ID, 'thumbnail' ) . ''; }Note: you can achieve the same thing using the standard WP get_posts() function, or by using WP_Query with same parameters:
get_posts('post_type=attachment&orderby=rand&posts_per_page=3&post_mime_type=image&media_tag=YOUR_MEDIA_TAG');Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Feature request: roles@francesco: do you have any suggestion on how this should be implemented?
Maybe like this:
1. File Gallery creates a new capability, let’s say ‘can_use_file_gallery’
2. this capability is then assigned to administrators, editors and authors by default
3. on the settings screen, there would be another block of options for choosing which roles should have File Gallery metabox enabledHow does that sound? I’ll put it on my todo list 😉
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Better integration with Media-Tagsresolved in other thread
@pinkgarden: have you added “thickbox” to the list of auto-enqueued lightboxes on the Media settings screen?
Any chance you could you post a link to a non-working example on your website?
@li-an: it’ll be included in 1.7.5, I had to release another bugfix version and gave it a version number 1.7.4 without thinking much about it – sorry. I’ll release 1.7.5 this weekend.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] update failed, took site down!@tharpa.osang: sorry for your troubles, but please tell me: did the plugin update fail when updating it as a single plugin, was it a batch update of plugins, or did you update WordPress?
If you could paste here the exact text of the error, that would help me a lot.
If you have access to your FTP, there should be a file named “.maintenance” in your WordPress folder – just delete it and try logging in. See here, last two paragraphs in section, for more info: http://codex.wordpress.org/Updating_WordPress#Automatic_Update
Please let me know if you’ve been able to fix this.
resolved in other thread, latest File Gallery fixes the problem: http://wordpress.org/support/topic/media-uploader-problem-with-custom-post-type?replies=3#post-2563681
Forum: Plugins
In reply to: [Plugin: File Gallery] 2 different pictures for thumbnail and thickbox@gunness: sorry, but File Gallery can’t help you with that…
I wouldn’t be surprised if there was a plugin for that, one that would allow you to choose different source files for thumbnail/fullsize image.
There’s also a CSS3 solution, filters, but it’s not really implemented in any other browser other than Chrome Canary (nightly test versions): http://net.tutsplus.com/tutorials/html-css-techniques/say-hello-to-css3-filters/
Also, take a look at this HTML5/Canvas/JavaScript solution: http://webdesignerwall.com/tutorials/html5-grayscale-image-hover
Good luck 🙂
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] thickbox not working@cramdesign: you’ve got javascript errors on that page, in you theme’s main.js file, you need to correct them for thickbox to work.
Forum: Plugins
In reply to: [File Gallery] Lightbox@gstricklind: the problem is with your theme’s “main.js” file, in which it is hardcoded that all gallery links get a ‘lightbox[group]’ rel value.
I’m afraid there’s nothing File Gallery can do about that.
To fix this, you should change the code in your theme’s “/js/main.js” file from this:
// sets the lightbox $(".gallery a").each(function(){ $(this).attr("rel", "lightbox[group]"); });to this:
// sets the lightbox $(".gallery a").each(function(){ var post_id = $(this).parents(".post").attr("id").replace("post-", ""), gallery_id = $(this).parents(".gallery").attr("id").replace("gallery-", ""); $(this).attr("rel", "lightbox[group-" + post_id + "-" + gallery_id + "]"); });that way, each gallery will have a unique rel value and they will not mix.