BuddyDev

Search

Help with creating an import add-on for WP All Import and Mediapress

  • Participant
    Level: Enlightened
    Posts: 38
    Keith on #14113

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #14123

    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 Gallery

    https://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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Keith on #14504

    So 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.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #14541

    Thank you. Will certainly do. The focus will be on import after 2.0

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #14734

    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

  • Participant
    Level: Enlightened
    Posts: 38
    Keith on #14749

    Cool, I’ll check it out. Thanks

You must be logged in to reply to this topic.

This topic is: not resolved