I use a shortcode – <?php echo do_shortcode(‘[screenshot width=968]www.site.com’.$_SERVER[‘REQUEST_URI’].'[/screenshot]’) ?> in header.php with meta property=”og:image” tag. It worked fine for several minutes and than broke.
I decreased the grade because the screenshots does not work. For example, any random link (https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwww.ads-software.com%2F?w=200) returns a “403 Forbidden” error. The error remains with the different image width.
My website works via https.
Additionally, it worked fine with the small screenshot width(for example, 200 px). But if you set 968 (the best width to serve the <meta property=”og:image”> tag), the test page displays the “Generating preview” message on the black background.
Overall about 50% of screenshots was generated fine.
]]>Great Plugin!
Is it possible to use in bbpress?
Thanks.
]]>Lars, it is lovely little plugin. My problem is that it broke my SSL as my webpage now showed the screenshot:
https://s.wordpress.com/mshots/v1/http%3A%2F%2Fmywebsite.com/?w=600
The very easy solution is to edit wp-screenshot/wp-screenshot.php on line 15 to return HTTPS eg:
return '<img src="https://s.wordpress.com/mshots/v1/http%3A%2F%2F'.$content.'?w=' . esc_attr($width) . '" />';
Simple little fix.
]]>Hi,
I have used this plugin, Its working perfectly, Thanks for the nice plugin.
I was wondering that, Can i implement this functionality with ajax ?. If i try to execute php code with ajax. Will it work ? and if yes, where will it save screenshort, as i want to show generated screenshot on another page also.
Thanks.
]]>How do I ad margin to the image?
https://cphcrawl.dk/guides/her-handler-vi-diverse-smaating-og-reservedele/
]]>Hello dude, your plugin is great. I does what it says, but ?? Is it possible to have it clickable to the screenshoted site (target=”_blank”)? Thank you.
]]>By activating the Plugin I’ve got a fatal error:
Fatal error: Cannot redeclare myScreenshot() (previously declared in /homepages/37/website_id/htdocs/websitespace/site/wp-content/themes/canvas-childtheme/functions.php:813) in /homepages/37/website_id/htdocs/websitespace/site/wp-content/plugins/wp-screenshot/wp-screenshot.php on line 16
Where should I search the problem or is there a problem with the code?
Thanks for helping.
Best regards,
Mat
It seems to not show the image thumbnail and instead there is a black box with a W wordpress logo symbol and under it says “Generating Preview” with a progression bar (in the shape of a circle) .
Any tips on how to fix it?
Thanks
]]>