Support » Plugin: Eazyest Gallery » Captions and name in subfolders table shows extra characters (in admin)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author klihelp

    (@klihelp)

    This is how I fixed in the plugin:

    Display Caption without the extra – characters:

    in admin/class-eazyest-folder-list-table.php#Line521
    
    // $pad = str_repeat( '— ', $level );
    $pad = '';

    Display Name without the extra – characters:

    # in admin/class-eazyest-folder-editor.php
    # Line926
    // $edit_name  = str_repeat( '— ', substr_count( $gallery_path, '/' ) ) . $edit_name;
    $edit_name  = substr_count( $gallery_path, '/' ) . $edit_name;
    
    # in admin/class-eazyest-folder-editor.php
    # Line891 - add line before the foreach()
    $current_directory = ezg_get_gallery_path( $post_id ); 
    
    # Line894
    // $edit_name  = str_repeat( '— ', substr_count( $gallery_path, '/' ) ) . $edit_name;
    	$edit_name  = str_repeat( '— ', substr_count( $directory, '/' ) - substr_count( $current_directory, '/' ) ) . $edit_name;

    Plugin Author Marcel Brinkkemper

    (@macbrink)

    The extra characters show the depth of your folder in hierarchy, just like sub-pages. So two dashes has a parent and granparent folder.

    Plugin Author klihelp

    (@klihelp)

    Check the above code and you will see.

    In any level of subfolder page, much nicer to
    – shows no dash for it’s immediate children
    – 1 dash for sub-subfolder, …

    Otherwise if you are in the eg.5th level subfolder than the Subfolder names gets very long and people will get confused because of the dashes …

    Plugin Author Marcel Brinkkemper

    (@macbrink)

    I’ll think about it for 0.2

    Plugin Author klihelp

    (@klihelp)

    Looks like this is fixed, table looks nice.

    Plugin Author klihelp

    (@klihelp)

    Not yet, dashes for Subfolder’s children not relative to the Subfolder.

    Plugin Author Marcel Brinkkemper

    (@macbrink)

    Please try trunk, it also fixes the error of invisible subfolders.

    Plugin Author klihelp

    (@klihelp)

    Fixed, looks nice.
    What are the invisible subfolders?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Captions and name in subfolders table shows extra characters (in admin)’ is closed to new replies.