Aesqe
Forum Replies Created
-
Which leads me to another issue – this means that I’m not checking user capabilities when actually updating attachment data in the database, which should be fixed right away. But that means that this code won’t work in the next version of the plugin. Maybe the solution is to change the attachment owner of the copy to the user who made the copy? It actually makes sense, right?
@jemp: a quick fix would be to hook a function to “file_gallery_edit_attachment_post_form”, which outputs a javascript one-liner to make those fields editable. Try placing this somewhere in your theme’s functions.php file:
function authors_attachment_editable_fields() { global $current_user; foreach( $current_user->roles as $role ) { if( $role === 'author' ) { echo ' <script type="text/javascript"> jQuery("#fgae_post_alt, #fgae_post_title, #fgae_post_excerpt, #fgae_post_content").prop("readonly", false); </script> '; } } } add_action('file_gallery_edit_attachment_post_form', 'authors_attachment_editable_fields');It should work 🙂
@jemp: are you sure you don’t mean ‘authors’ instead of ‘editors’? Because editors by default have the ‘edit_posts’ and ‘edit_others_posts’ capabilities.
If you need to change user type capabilities, I’d rather recommend using another plugin for that (see the list here), instead of modifying plugin code directly.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Pagination problem?@jocchino: ok. you’ll need to tell me which lightbox script you’re using, and how you’re connecting it to photos in your galleries.
@jemp: editors should be able to edit attachment titles by default, both in media library and in File Gallery interface. Could you describe me the problem a bit more?
@deepbevel: I’ll add support for user permissions in one of the future versions of the plugin. Can’t tell you exactly when, but I’ll reply here when the feature is ready 🙂
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] A couples of issues…@dwny: you also need to include ‘limit’ in your shortcode for the pagination to work, something like this:
[gallery paginate="true" limit="10"]Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Gallery of all images attached to posts@david Hunt: try this shortcode:
[gallery id="" mimetype="image"]Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Disable comments on gallery/image pages@kenn: File Gallery has nothing to do with page comments, it only parses the [gallery] shortcode. Have you tried deactivating File Gallery and checking if the problem persists?
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Pagination problem?@jocchino: could you post a link to your site?
the problem is the way you’re binding the lightbox script to the gallery items – you need to configure it so it ignores the pagination links.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Server CPU Usage problem!@dwny: if you are getting this, I hope that you could post a followup comment. Have you managed to resolve the issue? If yes – how?
Thanks! 🙂
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] File Gallery & Custom Post Types@kryvulena: you need to enable File Gallery for your custom post types. Go to the media settings page in admin and scroll down to File Gallery section. Second option is “Display File Gallery on which post types?” – there you can choose for which post types File Gallery is displayed.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] File gallery and lightview issue@kryvulena: you can completely disable File Gallery’s handling of the gallery shortcode, if that’s what you need, and just use it in the admin. The option is on the media settings page under “Disable ‘File Gallery’ handling of [gallery] shortcode?” (first option under File Gallery section)
@yolee: it didn’t sound rude at all, don’t worry 🙂
@yoolee: unfortunately, yes, “get the old theme back” is the only answer I can give you :/
I also don’t have access to PageLines source so I can’t tell you what files need to be modified, and in which way…