klihelp
Forum Replies Created
-
Forum: Plugins
In reply to: [Eazyest Gallery] Modify Folder IconYou can enable Extra Fields for Folders for the icon url, than custom code the gallery output.
—
Also this could be done with folder Featured Images (not supported yet) and custom gallery output to exclude this image from the attachments.
see: http://wordpress.org/support/topic/featured-image-113Forum: Plugins
In reply to: [Eazyest Gallery] Featured imageThis one is not easy to get it, because the folder icons options exclude the featured image checks, in ezg_folder_thumbnail() function.
—-
To display the featured image as folder icon, I had to customize the whole gallery output,
– add custom gallery_filter
add_filter("post_gallery", "klizg_gallery_filter",10,2);– add custom ezg_subfolders() action
remove_action('eazyest_gallery_after_folder_content','ezg_subfolders', 5); add_action('eazyest_gallery_before_folder_content','klizg_subfolders', 6);– add/replace ezg_folder_thumbnail() with custom code inside custom ezg_subfolders();
and add your custom post_thumbnail_attr() function to check for the icon attributes.// $attr = $this->post_thumbnail_attr( $post_id ); // $attr = klizg_post_thumbnail_attr( $query->ID, 'medium' ); $image_html = empty( $attr['src'] ) ? '' : sprintf( '<img width="%d" height="%d" src="%s" class="attachment-thumbnail wp-post-image folder-icon" alt="%s" />', $attr['width'], $attr['height'], $attr['src'], $attr['alt'] ); echo $image_html;// the custom post_thumbnail_attr() function klizg_post_thumbnail_attr( $post_id = 0, $kli_size = 'thumbnail' ) { global $post; $post_id = 0 != $post_id ? $post_id : $post->ID; $thumbnail_id = eazyest_frontend()->post_thumbnail_id( null, $post_id, '_thumbnail_id' ); $option = eazyest_gallery()->folder_image; $src = ''; $icon = apply_filters( 'eazyest_gallery_folder_icon', eazyest_gallery()->plugin_url . 'frontend/images/folder-icon.png' ); if ( 'none' != $option ) { if ( 'icon' == $option ) $src = $icon; else { if ( ! empty( $thumbnail_id ) ) { // $wp_src = eazyest_folderbase()->get_attachment_image_src( $thumbnail_id, 'thumbnail' ); $wp_src = eazyest_folderbase()->get_attachment_image_src( $thumbnail_id, $kli_size ); $src = $wp_src[0]; } else { $src = $icon; } } } $attr = array( 'width' => $wp_src && $wp_src[1] ? $wp_src[1] : intval( get_option( "thumbnail_size_w" ) ), 'height' => $wp_src && $wp_src[1] ? $wp_src[2] : intval( get_option( "thumbnail_size_h" ) ), // 'width' => intval( get_option( "thumbnail_size_w" ) ), // 'height' => intval( get_option( "thumbnail_size_h" ) ), 'src' => $src, 'alt' => __( 'Folder Icon', 'eazyest-gallery' ) ); return apply_filters( 'eazyest_gallery_folder_thumbnail_attr', $attr, $post_id ); }—
`
Forum: Plugins
In reply to: [Eazyest Gallery] Add Link under Thumbnail pictureCan you write more details what did you tried and why is not working?
You could just display the attachment->content text. Attachment/Images table already have text boxes for the additional content.
Forum: Plugins
In reply to: [Nav Menu Images] Add custom class to menu-item container if has imageThank you for this useful update.
Did not get any reply for the main question: Is it possible to Disable the TinyMCE button?
I am using WordPress-Skeleton:
https://github.com/markjaquith/WordPress-Skeleton
Lots of plugins had problems with WordPress core files in a subfolder install, they resolved it lots of months ago. Like W3 Total Cache, Eazyest Gallery, … From my 50 plugins only Nexgen Gallery have problems.
Thank you for looking into, it’s a great plugin to have!I was asking this just for information, because I would want to disable it, because I am not using and want to keep the editor toolbar simple.
When testing WordPress 3.9 alpha on my local computer I discovered that the button breaks the editor.
The attach_to_post module breaks the editor display in the latest WordPress with TinyMCE version 4
I couldn’t figure out in an hour how to fix this. Anyone?
Problem still exists with WordPress subfolder install in Nextgen Gallery 2.0.44(trunk). Looks like the NextGen Gallery plugin creators should test with WordPress subfolders as well …
Forum: Plugins
In reply to: [Eazyest Gallery] Add Link under Thumbnail pictureYou can set custom fields for images (Extra Fields) on the Eazyest Gallery settings page.
Forum: Plugins
In reply to: [Eazyest Gallery] Eazyest Gallery Minimum viewer role don't workIt’s good that Eazyest Gallery posts are just like other Custom Post Types, you can set the visibility to public, private or have password, and hidden.
If you want role-based visibility than you can find a plugin for that.There is a related ticket for WP 3.8
> Deleting files from Media Library when MySQL database locked:
> http://core.trac.wordpress.org/ticket/25107Forum: Plugins
In reply to: [Eazyest Gallery] Audio file supportYou could use the extra field option for the audio url.
Forum: Plugins
In reply to: [Eazyest Gallery] Eazyest vs LazyestYou can see as EG is not LG, even if those two plugins are from the same developer. EG have different default look, takes time to learn the wordpress template functions, template standards, actions and filters for standard gallery and html with css; I experienced that it’s much easier than with LG.
BTW, maybe he is busy now; but gave a good open start, a few things are difficult compared to LG, but those are very special cases.