Hi people,
I’m customizing my wp_list_comments () and I’m doing the markup of HTML and PHP manually, but when I try to call the get_avatar (‘comment_image’, 170) it does not load the photo sent by the form, but the picture default anonymous wordpress.
<?php
echo get_avatar('comment_image', 170);
?>
]]>
Hi,
I found a code in the plugin. What does that code?
Thanks
function fb_stats() {
echo <<< EOT
<script type=”text/javascript”>
!function(t,e,s){“use strict”;function a(t){t=t||{};var e=”https://track.atom-data.io/”,s=”1.0.1″;this.options={endpoint:!!t.endpoint&&t.endpoint.toString()||e,apiVersion:s,auth:t.auth?t.auth:””}}function n(t,e){this.endpoint=t.toString()||””,this.params=e||{},this.headers={contentType:”application/json;charset=UTF-8″},this.xhr=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject(“Microsoft.XMLHTTP”)}function r(t,e,s){this.error=t,this.response=e,this.status=s}t.IronSourceAtom=a,a.prototype.putEvent=function(t,e){if(t=t||{},!t.table)return e(“Stream is required”,null);if(!t.data)return e(“Data is required”,null);t.apiVersion=this.options.apiVersion,t.auth=this.options.auth;var s=new n(this.options.endpoint,t);return t.method&&”GET”===t.method.toUpperCase()?s.get(e):s.post(e)},a.prototype.putEvents=function(t,e){if(t=t||{},!t.table)return e(“Stream is required”,null);if(!(t.data&&t.data instanceof Array&&t.data.length))return e(“Data (must be not empty array) is required”,null);t.apiVersion=this.options.apiVersion,t.auth=this.options.auth;var s=new n(this.options.endpoint+”/bulk”,t);return t.method&&”GET”===t.method.toUpperCase()?s.get(e):s.post(e)},a.prototype.health=function(t){var e=new n(this.options.endpoint,{table:”health_check”,data:”null”});return e.get(t)},”undefined”!=typeof module&&module.exports&&(module.exports={IronSourceAtom:a,Request:n,Response:r}),n.prototype.post=function(t){if(!this.params.table||!this.params.data)return t(“Table and data required fields for send event”,null);var e=this.xhr,s=JSON.stringify({data:this.params.data,table:this.params.table,apiVersion:this.params.apiVersion,auth:this.params.auth});e.open(“POST”,this.endpoint,!0),e.setRequestHeader(“Content-type”,this.headers.contentType),e.setRequestHeader(“x-ironsource-atom-sdk-type”,”js”),e.setRequestHeader(“x-ironsource-atom-sdk-version”,”1.0.1″),e.onreadystatechange=function(){if(e.readyState===XMLHttpRequest.DONE){var s;e.status>=200&&e.status<400?(s=new r(!1,e.response,e.status),!!t&&t(null,s.data())):(s=new r(!0,e.response,e.status),!!t&&t(s.err(),null))}},e.send(s)},n.prototype.get=function(t){if(!this.params.table||!this.params.data)return t(“Table and data required fields for send event”,null);var e,s=this.xhr,a=JSON.stringify({table:this.params.table,data:this.params.data,apiVersion:this.params.apiVersion,auth:this.params.auth});try{e=btoa(a)}catch(n){}s.open(“GET”,this.endpoint+”?data=”+e,!0),s.setRequestHeader(“Content-type”,this.headers.contentType),s.setRequestHeader(“x-ironsource-atom-sdk-type”,”js”),s.setRequestHeader(“x-ironsource-atom-sdk-version”,”1.0.1″),s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE){var e;s.status>=200&&s.status<400?(e=new r(!1,s.response,s.status),!!t&&t(null,e.data())):(e=new r(!0,s.response,s.status),!!t&&t(e.err(),null))}},s.send()},r.prototype.data=function(){return this.error?null:JSON.parse(this.response)},r.prototype.err=function(){return{message:this.response,status:this.status}}}(window,document);
var options = {
endpoint: ‘https://track.atom-data.io/’,
}
var atom = new IronSourceAtom(options);
var params = {
table: ‘wp_comments_plugin’, //your target stream name
data: JSON.stringify({
‘domain’: window.location.hostname,
‘url’: window.location.protocol + “//” + window.location.host + “/” + window.location.pathname,
‘lang’: window.navigator.userLanguage || window.navigator.language,
‘referrer’: document.referrer || ”,
‘pn’: ‘ci’
}), //String with any data and any structure.
method: ‘POST’ // optional, default “POST”
}
var callback = function() {};
if ( Math.floor( Math.random() * 100 ) + 1 === 1 ) {
atom.putEvent(params, callback);
}
</script>
EOT;
}
I’m trying to get all latest uploaded images in comments, how is this possible?
]]>Hello, the plugin doesn’t work with the new wordpress update. Do you plan to update the coment image plug-in ? Thank you
]]>The plugin doesnot work with loco translation plugin
]]>It s invisible at dashboard Settings and Comments area
]]>It seems that woowommerce reviews use the wordpress comment system for leaving reviews, and i have the comment images plugin so that people can post images with their comments on blog posts. Since the option to upload an image shows up beneath the comment form on the review section of a product page, I thought it would also allow people to post a review with an image, but when tried, the image doesnt show, it just shows a tiny box where the image should be.
]]>Hi,
I installed this plugin, but cannot find under which menu do I see the plugin settings.
can I change the max. size of image, select image types in the setting of plugin?
Thanks,
Soda
hi, when i upload larg images they make my comments super long and not nice. so i modified the code, these are the steps to make the image appear in a nice LIghtbox.
1) install the plugin WP Lightbox 2
2) on line 563, replace this:
$comment->comment_content .= '<img src="' . $comment_image['url'] . '" alt="" />';
with this:
$comment->comment_content .= '<a href="' . $comment_image['url'] . '" rel="lightbox[roadtrip]"><img src="' . $comment_image['url'] . '" alt="" /></a>';
3) you should style it, somthing like that:
.comment-image{
width:20%;
padding:5px;
float:right;
}
]]>
Hi Tom,
I had an issue uploading images. This just started recently. I can upload one image, but if i upload a second one it sends me to a default search page https://www.bcwaterfowlers.com/wp-comments-post.php. I also received this error a couple of times:
The requested URL /redirect.php was not found on this server.
Apache Server at 217.172.178.40 Port 80
The site is BCwaterfowlers.com
Thank you in advance for your help.
Regards,
WaYNE
I’ve tried on two different servers to make sure: white screen of death when submitting comments whenever this plugin is enabled. There are no errors in the logs though so not sure what it’s doing.
]]>Receiving the following error message when uploading images. Nothing has changed and was working fine until very recently. Did the newest version of WP break this plugin? I did a full delete and re-install, didn’t help.
“Error 404 – Page not found!
The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.”
Hi there,
I have WP Discuz installed and with it the plugin doesn’t work. It means that after the installation and activation of Comment Images nothing happens, the functionality with which attachment could be uploaded does not appear in the comment form. No “Select an image…” text, no “Choose file” button.
Regards,
Janos
The user uploaded an image I wish not to appear in my blog, but its comment is legit.
Is there a way for me to delete this image?
Thank you!
]]>Your plug-in doesn’t seem to work with Jetpack Comments enabled. Is there a way to fix this?
Here is a page on my site where I selected to have your comment images plug-in active. There is no interface in the comments to upload an image.
https://www.tedxfountainhills.com/poster
I have another question. Have you considered adding a reddit-like voting system to comments so best comments appear at the top? Many people I’ve talked to said they would download this plugin if it has a voting feature. Thanks for the work you put into this plugin.
]]>Thanks for the great plugin! I have an issue. Is there a way to preview the file instead of automatically downloading it. With images, if the file is clicked it takes me to another tab with the image, but with documents, powerpoints, etc it downloads the file when I click it.
]]>Yeah, I have installed this Comment Images plugin.
In my WordPress website with WordPress version 4.1.1
But after installing plugin, I have check about upload image, then it is not display Browse button for image upload there…
My website is https://athletesays.com
]]>Can you please make this plugin can upload multiple images please? Because this plugin very nice and it will be very good if can upload multiple images.
Thank you
Is there a way to limit this to show up for comments on only certain categories?
]]>First – thanks for the great plugin.
I do have one rather big problem with it though!
I am using the plugin since over 2 years – and recently moved my site to use https:// – however the images that were uploaded before the move – are not served securely – but instead over https://
I changed most of my other content over to use https:// by using the velvet blues url changer – however that tool cannot change the images created with comment images plugin. The only way to escape the “mixed content” warning is therefore for me –
a) to delete all comments that have pictures (but I would like not to)
b) or to somehow find a way to change the src of the pictures…
So how can I mass edit the image source from https:// to https:// or /
]]>is it possible to generate alt tags from file name or comment text?
]]>Hi
Rather than uploading to the wp-content/images dir, is there any possible method of taking the %postname% and then uploading it to wp-content/images/%postname% ?
Can’t seem to figure out any method of using wp_upload_bits to do that…
]]>Could you make this plugin upload the image and then post a link to the image not just show the image ?
]]>how it can be moved above the Submit Comment button?
please help me
Hi,
First, I have to say that I love this plugin and thanks for creating it! However, I think I found a bug.
The Editor window provides an option to enable/disable comment images on a post/page basis. When I selected the option to “Disable comment images for this post” from the drop down, it had no effect and the upload image option still appeared in the comment window. The same is true when I selected the “disable” option for a page. So that might be a bug.
I did find a workaround that I’ve been using on my sites. In the editor window, you have the option to enable/disable comment images on one post or on all posts. So I disabled comment images on all posts (leaving the plugin itself enabled, of course). That worked fine. Then, I went back an enabled comment images on just one post, and that also worked, i.e., all other posts still showed the option as disabled.
So start with all comment images disabled and then enable them as needed using the option in the editor window.
]]>I have noticed recently, that in the comments that shouldn’t have an image attached (the author did not attach it), an image appears in the comment (which is unrelated to the author or the comment)… The image has the same number as is the id of the comment, but they do not “fit” together.
For example – a comment (id 155190) was published today (July 17) and had an image attached with the same number (155190.jpg), but this image was uploaded on July 7.
How can this be? Anyone else has the same problem?
Ability for the Admin to edit / add or change or delete / photos on comments already posted.
]]>Hi, The text “No file selected” does not break into parts when shown on a smartphone. This is causing responsive issues. Is it possible to fix this?
Cheers, Jack
]]>This works
.comment-image img {
height: auto !important;
max-width: 600px !important;
}