WordPress.org

Ready to get started?Download WordPress

Forums

File Gallery
[resolved] WP 3.5 ? (38 posts)

  1. Li-An
    Member
    Posted 1 year ago #

    As WP 3.5 changes a lot of things in galleries management, will File Gallery be compatible ?

    http://wordpress.org/extend/plugins/file-gallery/

  2. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for asking, @Li-An - I hope I'll be able to release a WP3.5-compatible version before 3.5 final comes out.

    A lot of things have been changed in the media management visual interfaces, but the underlying system is still pretty much the same.

    I just have to figure out how to reconnect File Gallery and tinyMCE, everything else looks OK (I've also converted attachment custom fields into a metabox on attachment editing screens). As far as I can tell, a lot of JavaScript stuff in the media management area has been converted to Backbone views and Underscore, and I'm really not familiar with those two. But I'm hoping it won't be too difficult :)

  3. Li-An
    Member
    Posted 1 year ago #

    Thank you for these informations. I hope you will manage it as File Gallery is one of my favorites plugins :-)

  4. Manuel Schmalstieg
    Member
    Posted 1 year ago #

    Hi Aesqe,

    I am testing the current 3.5-RC1-22913 build, and unfortunately some things are broken.

    - When the File Gallery plugin is active, uploads made through the WP uploader fail ("An error occurred in the upload. Please try again later.").

    - In the new uploader interface, the "Media Library" panel shows nothing.

    Those issues don't appear when the File Gallery is disabled, so there has to be some conflict somewhere.

    That's unfortunate, because the File Gallery plugin would be a solution for one feature that has been removed from the WP uploader: being able to change the order of attached files.

  5. pheonixgh
    Member
    Posted 1 year ago #

    I would love to see 3.5 support and have some ideas on this front.
    I am not experiencing the issues described above using RC3.
    the new media modals are great in many ways but i am already missing the features file gallery brought to the table whilst using the current RC.
    the 'attach all checked to post' functionality, duplicate filtering etc.
    have been having a nose at the new Backbone setup, and whilst not familiar with these libraries they look to be fairly extensible.
    would love to help with development if can either with code contribution or just beta-testing. Let me know if i can help support this great plugin.

  6. Manuel Schmalstieg
    Member
    Posted 1 year ago #

    Good news: I just tested File Gallery, with the current 3.5-RC3-23093, and the issues described above disappeared, it's working fine again.

  7. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    just FYI: there's a couple things that don't quite work in 3.5 (attachment custom fields on single media item page, for example), so I'll be releasing an update today.

  8. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    v1.7.6 is out, please test with WordPress 3.5 - thank you! :)

  9. JacobABlack
    Member
    Posted 1 year ago #

    Nope, the issue still appears. :(

  10. Li-An
    Member
    Posted 1 year ago #

    I saw only one problem with 1.7.6 and WP 3.5: I cannot upload files directly in File Gallery zone. It blinks - on a test blog, no other plugin, default theme.

  11. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    @Li-An: yeah, I've noticed :/ will fix it for v1.7.8

  12. jynk
    Member
    Posted 1 year ago #

    Hello - been using FG for years now. How can i attach all checked images to the post without inserting them into the post text? I've always avoided using the short code in the text area.

    best, Dan.

  13. Gary Allman
    Member
    Posted 1 year ago #

    Any news of progress on 1.7.8?

    I love FG, but the latest WordPress update has really screwed with it. I have huge numbers of duplicate images showing on the Insert Media page -most of them seem to be (virtual?)copies made by FG to attach to multiple posts. I can't see any way of identifying which was the original version as they all have the same file name.

    Ever since the latest WP update I've not been able to work out how to get FG to attach an image to a post, apart from as jynk mentioned above, having to actually insert the html into the post first. In many ways, it looks like FG may be redundant :( However, if I disable and remove it I'm concerned about the impact on my existing posts.

    As I said, I love FG andt I do like being able to easily see what images are attached to any given post, so I'm not ready to give up on it yet! Keep up the good work!

  14. Li-An
    Member
    Posted 1 year ago #

    There will be no impact on existing posts if you disable FG - If you are afraid of doing so, just save your database before desactivating it.

  15. Gary Allman
    Member
    Posted 1 year ago #

    Thanks Li-An, I'm hoping Bruno will post an update soon. It looks like a big change, so I understand it'll take a while to sort out.

  16. Gemma Wild
    Member
    Posted 1 year ago #

    Unfortunately it seems that even if you add existing images to a post and save it, this still will not attach those images to that post.

    Since the WordPress update, I have not found any way to attach existing images to a post, which is the main reason why I use this plugin.

    Has anyone else?

    I too hope there is an update being worked on to rectify this as File Gallery was the only plugin available with this extremely handy feature and I miss it already!

  17. pheonixgh
    Member
    Posted 1 year ago #

    i have been working on a solution for the attachment issue and am making progress, in the meantime inserting the following in your themes function file should remove all the FG duplicates from the new insert dialog.

    remove_action( 'wp_ajax_query-attachments', 'wp_ajax_query_attachments', 1 );
    add_action( 'wp_ajax_query-attachments', 'my_ajax_query_attachments', 1 );
    
    $attach_parent = null;
    
    function my_ajax_query_attachments(){
    global $attach_parent;
    	$query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
    	$query = array_intersect_key( $query, array_flip( array(
    		's', 'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type',
    		'post_parent', 'post__in', 'post__not_in',
    	) ) );
    
    	$query['post_type'] = 'attachment';
    	$query['post_status'] = 'inherit';
    	if ( current_user_can( get_post_type_object( 'attachment' )->cap->read_private_posts ) )
    		$query['post_status'] .= ',private';
    	$attach_parent = $_REQUEST['post_id'];
    	add_filter('posts_where', 'filter_duplicate_attachments');
    	$query = new WP_Query( $query );
    	remove_filter('posts_where', 'filter_duplicate_attachments');
    	$attach_parent = null;
    	//error_log(print_r($query,true));
    	$posts = array_map( 'wp_prepare_attachment_for_js', $query->posts );
    	$posts = array_filter( $posts );
    
    	wp_send_json_success( $posts );
    }
    
    function filter_duplicate_attachments($input) {
    global $post, $attach_parent;
    if (!empty($attach_parent)){
    	$input .= " AND ((wp_posts.ID NOT IN ( SELECT ID FROM wp_posts AS ps INNER JOIN wp_postmeta AS pm ON pm.post_id = ps.ID WHERE pm.meta_key = '_is_copy_of' )) OR (wp_posts.post_parent=". $attach_parent ."))";
    }
    	return $input;
    }

    hope this helps some of you.

  18. luismldias
    Member
    Posted 1 year ago #

    Hi,

    Has anyone got a reply on how to inserd images with FG since 3.5?

    Regards,

    Luis

  19. Li-An
    Member
    Posted 1 year ago #

    Well, we are still waiting for the update. Aesqe may have a lot of other things to do I suppose...

  20. Gary Allman
    Member
    Posted 1 year ago #

    I thought I'd bump this. Has anybody any news on File Gallery?

    I love File Gallery, but I have areas in my sites that are reliant on it that could do with updating.

    I don't mind waiting if an updated version is going to be produced, but if one isn't then I need to move on. Not knowing is a nuisance.

  21. Gary Allman
    Member
    Posted 1 year ago #

    @pheonixgh how do you use your code to fix the duplicate images in the insert dialogue? ie where do I place the code?

  22. Gemma Wild
    Member
    Posted 1 year ago #

    @Gary

    You need to add the given code to your themes functions.php file.

  23. serdominik
    Member
    Posted 1 year ago #

    I have the same problem @jynk...

    I need to attach an image to multiple posts

    When released the new version of the plugin?

  24. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    I'll be posting dev updates on GitHub from now on, to speed things up.

    here's the link: https://github.com/aesqe/file-gallery

    current version is 1.7.8-beta1 and it's a first step to better WP 3.5 integration.

    I've managed to add the "Attach checked attachments to current post" button to the new media browser, so please test it out.

    For now, there is no visual clue if everything went fine or not other than the selection being cleared.

    The button disappears when attachment filter is set to files uploaded to current post, of course.

    let me know if it works or not for you.

    thanks! :)

  25. christian70
    Member
    Posted 1 year ago #

    the beta version available on GitHub seems to duplicate the files already uploaded into the media library. so you can select any file from it and attach it to different posts but each time it's been duplicated. or at least this is what happens to me...

  26. mamastudios
    Member
    Posted 1 year ago #

    the beta version available on GitHub seems does not update automatically when when you attach a picture to the Filegallery box from media library.

  27. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    @christian70: I'll add filtering of attachment copies soon, @pheonixgh's solution looks good :)

    @mamastudios: latest beta on github should have that fixed - please test it out!

  28. Josh Eaton
    Member
    Posted 1 year ago #

    @Aesqe Hoping you can update to remove the duplicate media entries soon. Great plugin, and thanks for your work on it.

  29. Josh Eaton
    Member
    Posted 1 year ago #

    @Aesque, I'm using the current beta from github and @mamastudios issue doesn't appear to be fixed. I have to click "Refresh attachments" after closing the media editor. Could be related to the undefined id issue I posted to github?

  30. pheonixgh
    Member
    Posted 1 year ago #

    submitted a pull request for my duplicate filtering with an added visual indicator on attached items.
    pull request
    my fork

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic