• Resolved robertosalemi

    (@robertosalemi)


    Hi!

    Thank you for your fantastic plugin.

    To make easy search on Windows I would customize Proof.txt file and “Copy Filenames” function.

    I would create this list type:
    “017” OR “019” OR “021”

    So in my config file I added:

    function my_custom_filename_separator( $divider ) {
    return ‘ OR ‘;
    }

    add_filter( ‘picu_filename_separator’, ‘my_custom_filename_separator’ );

    function my_picu_approved_filename( $filename, $attachment_id ) {
    $attachment = wp_get_attachment_image_src( $attachment_id, ‘full’ );
    return wp_basename(‘”‘ . $filename . ‘”‘);
    }

    add_filter( ‘picu_approved_filename’, ‘my_picu_approved_filename’, 10, 2 );

    First function to add the separator ” OR “

    The second function to get filenams between doule quotes: “017”.

    The proof.txt file is generated correctly but there is an extra OR at the end of the string.

    The Copy Filenames is no longer working! Why?

    Thank you for the support.

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

    (@pandulu)

    Hi Robert

    I was able to reproduce this and think you found a bug in the function that adds those filename separators.

    We will look into this and I think we should be able to get this fixed with the next version, set to be released until the end of this week.

    Thanks a lot for reporting this!

    Thread Starter robertosalemi

    (@robertosalemi)

    Really?
    Thank you for the excellent work,
    Roberto

    Plugin Author Claudio Rimann

    (@pandulu)

    We could send you a pre-release version to test the fix as soon as we have it, just send us an email to info AT picu.io if you’re interested ??

    Thread Starter robertosalemi

    (@robertosalemi)

    Of course, thank you!

    Plugin Author Claudio Rimann

    (@pandulu)

    Thanks for your email. I sent you the pre-release version (1.11.0-rc.1) for testing, today.

    The final version, including this fix, will be released tomorrow.

    Plugin Author Claudio Rimann

    (@pandulu)

    Will close this issue here, please don’t hesitate to contact us again or re-open, in case it didn’t work out as expected.

    Thread Starter robertosalemi

    (@robertosalemi)

    Hi, I tested the release version, but the bug is still present.

    Plugin Author Florian Ziegler

    (@florianziegler)

    Hi @robertosalemi,

    we found something else. It has to do with the quotes you are using in your custom filenames.

    Version 1.11.0 will be released tomorrow, which will fix the bug.

    Cheers
    Florian

    Thread Starter robertosalemi

    (@robertosalemi)

    HI,
    great, I updated the package, now everything works correctly.
    Great work, thank you very much.

    Roberto

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Proof file and file name list’ is closed to new replies.