Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_FUNCTION in /var/sites/o/oldies.mysite.com/public_html/wp-content/plugins/embed-comment-images/eiic.php on line 70
Is it possible to configure this plugin so admins can embed images when they post comments but ordinary users cannot?
]]>Your plugin is great but it could be greater IMO. I wanted a little more control on (some) images sizing and alignment so now in my comments the img tag is allowable via this function file code.
//Allow image tags in comments
add_filter( 'wp_kses_allowed_html', array( $this, 'my_kses_allowed_html_hook' ), 20, 2 );
function my_kses_allowed_html_hook( $tags, $context = null ){
if ( 'post' == $context && ! isset( $tags['img'] ) ) {
$tags['img'] = array(
'src' => 1,
'height' => 1,
'width' => 1,
'alt' => 1,
'title' => 1
);
}
return $tags;
}
Problem is, I have to disable your plugin to get it to work. So I was wondering if it would be possible to have your plugin ignore any image links wrapped in the image tag? Then commenters could have the best of all possible worlds, easy placement and precise placement of images.
thank for your consideration
]]>can it work with buddypress coments?
]]>The plugin works well with images uploaded on my server und embed then in the comments, but if i upload an image to dropbox and try then to embed the sharing-link in my comments than i see only the url to the image.
What can i do to resolve that bug?
]]>