Forums

EG-Attachments
[resolved] not work (10 posts)

  1. fixed77
    Member
    Posted 10 months ago #

    after update to 1.8 old links not show title, filename and size. bun in settings parameters is checked. show only image as link.

  2. EmmanuelG
    Member
    Posted 10 months ago #

    Hi,

    Could you describe more your issue? is it with automatic shortcode?
    If no, could you give me all shortcode parameters?
    Do you use the custom format?

  3. fixed77
    Member
    Posted 10 months ago #

    no automatic. shortcode inserted by post editor (tinymce button).
    shortcode: [attachments label=doctitle docid=2017 fields=none title="Attached files:" titletag="h3" force_saveas="1" logged_users="0"]
    List format: Large

    ver 1.7.4
    now shows: image as link, description, filename, size

    ver 1.8
    show only image as link

  4. EmmanuelG
    Member
    Posted 10 months ago #

    The issue is coming from fields=none.
    I will publish a bug fix by today

  5. fixed77
    Member
    Posted 10 months ago #

    thanks

  6. fixed77
    Member
    Posted 10 months ago #

    thanks. attachments show normally with little bug. filename show without extension.

  7. fixed77
    Member
    Posted 10 months ago #

    fix it yourself
    eg-attachments-public.inc.php:348
    'filename' => basename(get_attached_file($attachment->ID)),

  8. EmmanuelG
    Member
    Posted 10 months ago #

    Version 1.8.2 published. Problem solved.

  9. fixed77
    Member
    Posted 10 months ago #

    also another question:
    split() function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
    may change split() to explode() or preg_split().
    thanks

  10. EmmanuelG
    Member
    Posted 9 months ago #

    You are right. Thanks for the information.
    Coming version will run without split function.

Reply

You must log in to post.

About this Plugin

About this Topic