Tagged: Add-on, mediapress, WP All Import
Hello,
I’m trying to create an add-on for WP All Import (http://www.wpallimport.com/documentation/addon-dev/structure/) that would allow me to import galleries into Mediapress. How would i go about writing the import function so images are placed in the Mediapress directory?
Thanks
Hi Keith,
I am not able to help with the All Import plugin but here is an example of how I had done it for BP Galleryhttps://github.com/mediapress/mpp-bp-gallery-migrator
This should give enough inspiration.
The basic steps are to
1. Create MediaPress Gallery based on your input(mpp_add_gallery())
2. Add media to this gallery(mpp_add_media() )
3. If you are working with existing files, move them to appropriate directory.Please see the plugin for more details.
Regards
BrajeshSo I have a CSV file with my Users IDs, users login, user email, gallery names, a list of images for each gallery that they belong to, and all the images are downloaded to my computer. How would I get the images into their respective directories, especially if I have over 100,000 images that need to be uploaded? It would take forever to create the directory folders and copy and paste them. I’m not a coder, so it’s too hard for me to create a plugin to do such a thing. Your team may want to consider creating an add-on in the future that allows admins to bulk create user galleries via CSV or XML. You make great plugins and I love the support. I think a bulk import feature would increase adoption of Mediapress for many site creators. Keep up good work.
Thank you. Will certainly do. The focus will be on import after 2.0
Hi Keith,
I have some good new on this.In MediaPress 1.3.6, I have added API to allow importing a WordPress Attachment to MediaPress gallery as well as Importing any file from the server’s directory to MediaPress gallery.
They should make the job of migrating/importing very simple. all we need is a long running or process (or ajax based) to use these API functions to import.
Please see
https://buddydev.com/mediapress/topics/api-reference/media/importing-file-mediapress-gallery/
https://buddydev.com/mediapress/topics/api-reference/media/import-wordpress-attachment-mediapress-gallery/Best regards
Brajesh
You must be logged in to reply to this topic.