• Resolved abeishuizen

    (@abeishuizen)


    First of all great plugin with a lot of features.

    I can only find information about a .csv import file in combination with custom data.

    Can you also use a .csv file to set the name and description of already imported photo’s.
    Like:

    filename,name,description
    myphoto.jpg,Photo of me,Description of the photo

    Is there more documentation on the import functionality.
    Like what the it expects in the .zip file, what the format should be.

    Kind regards,

    Andre Beishuizen

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    There is no .csv import for standard fields.

    If the photos have iptc and/or exif data with them, you can use that information in descriptions, and some as default photo names.

    See https://wppa.opajaap.nl/iptc-and-exif-data/ and Table IX-D13 ( Default photo name )

    A .zip file to import contains photofiles only, possibly with embedded iptc and exif data.

    Thread Starter abeishuizen

    (@abeishuizen)

    Import of csv was not working. In the version of:
    /* wppa-upload.php
    * Package: wp-photo-album-plus
    *
    * Contains all the upload/import pages and functions
    * Version 6.3.13
    *
    */

    I changed the function wppa_get_import_files():

    // Dispatch on source type local/remote
    elseif ( $source_type == ‘local’ ) {
    $source = get_option( ‘wppa_import_source_’.$user, WPPA_DEPOT_PATH );
    $source_path = $source; // Filesystem
    $files = glob( $source_path . ‘/*’ );
    }

    Instead of using WPPA_DEPOT I now use WPPA_DEPOT_PATH.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thank you very much!

    It is hard to find this kind of initialisation issues, that is why i appreciate your feedback very much.

    In fact there are two more locations with the same issue.

    Will be fixed in the next version.

    Thread Starter abeishuizen

    (@abeishuizen)

    Hi Jacob,

    Found another one in wppa-upload.php:

    // Open file
    $handle = fopen( $tempfile, “rt” );
    if ( ! $handle ) {
    wppa_error_message( __( ‘Can not open file. Can not continue. (1)’ , ‘wp-photo-album-plus’) );
    return;
    }
    $write_handle = fopen( $file, “wt” );
    if ( ! $handle ) {
    wppa_error_message( __( ‘Can not open file. Can not continue. (2)’ , ‘wp-photo-album-plus’) );
    return;
    }

    The if on the second fopen is checking $handle which should have been $write-handle.

    Regards,

    Andre

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thanx very much again. Same thing, should never happen but…

    Will be fixed in the next version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPPA import csv function’ is closed to new replies.