• Resolved zer0890

    (@zer0890)


    Hi,

    I am using your plugin with google drive.
    I classified my pictures in google drive per folder but i didn’t find solution to display them per folder ( it’s only display all the pictures in all the folders and i can’t see to each folder it’s belong).

    Do you have a solution ?
    Thanks

    https://wordpress.org/plugins/external-media/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author minnur

    (@minnur)

    Hi, good question. I will look into this.
    I found this: http://stackoverflow.com/questions/14414593/how-to-show-folders-and-dont-show-private-files-on-the-google-drive-picker Seems like it is possible to do that.

    Thread Starter zer0890

    (@zer0890)

    Hi ,
    Thanks for your answer.
    I tried to add this line in the file GoogleDrive.js like this :
    function createPicker() {
    if ( pickerApiLoaded && oauthToken ) {
    var view = new google.picker.View( google.picker.ViewId.DOCS );
    view.setIncludeFolders(true);
    var $type = _parent_container.data( ‘type’ );
    var $plugin = _parent_container.data( ‘plugin’ );
    var $extensions = _parent_container.data( ‘mime-types’ );
    var $cardinality = _parent_container.data( ‘cardinality’ );

    But it returns me an error. Could you help me where i need to copy this function ? I am not a programmer

    Plugin Author minnur

    (@minnur)

    Hi,
    I have a very limited time this week, but should be able to look into this more next week. If the code works, I will make it easy to use for non-programmers. Will probably add a checkbox to the configuration page. Please stand by, I hope this missing feature is not preventing you from using the plugin.

    Thanks,
    Minnur

    Thread Starter zer0890

    (@zer0890)

    Hi,

    It will be a great thing for us !!
    Thanks.

    Plugin Author minnur

    (@minnur)

    Hi,
    I just implemented this. Please download version 1.0.6.
    Please let me know if that’s what you were looking for!
    Thanks!

    Plugin Author minnur

    (@minnur)

    I am marking this as resolved. Please let me know if you have any issues with this.

    Thread Starter zer0890

    (@zer0890)

    Hi Minnur,

    I still dont see options to quote display by folder.
    I also delete and instal the plgin to be sur that it dosn’t come from my side.
    Are you sure you released the good version ?

    Thanks

    Plugin Author minnur

    (@minnur)

    Yep, I am pretty sure. I see all the folders in my account. The next release will have more options to control Google Drive. I am still testing it.

    Plugin Author minnur

    (@minnur)

    This is the file from 1.0.6 version.
    https://plugins.svn.wordpress.org/external-media/tags/1.0.6/plugins/js/GoogleDrive.js
    As you can see I added the following:
    1. google.picker.ViewId.FOLDERS
    2. view.setIncludeFolders(true);

    Please try clear your browser cache.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Show files by folder’ is closed to new replies.