steffiiiii
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Watermark] Black box around PNG when scalingHi @kubitomakita,
I did some more testing and debugging and found a solution!
I don’t know why, but the problem is your “is_alpha_png” function in AttachmentProcessorGD.php.
To my knowledge most programs will save transparent PNGs as an 8bit image.
On both my servers with black boxes “is_alpha_png” returns 3, therefore using imagecopymerge instead of imagecopy. On my localhost instance “is_alpha_png” correctly returns 6.To fix this I found 2 possible solutions:
1)
Save the PNG explicitly as 16bit PNG file.2)
Use another function to check for transparency in the PNG file.
This solution works fine for me (plug and play replacing “is_alpha_png”): https://stackoverflow.com/questions/5495275/how-to-check-if-an-image-has-transparency-using-gd/43996262#43996262Maybe you can double check it and post an update for the plugin.
Thanks
Forum: Plugins
In reply to: [Easy Watermark] Black box around PNG when scalingHi @kubitomakita,
I did some more testing. On my localhost (PHP 7.4.12) it works as expected.
But on two different live servers (PHP 7.4.19 and 7.4.23), it doesn’t.
Do you know which specific versions of PHP and GD work best?Thanks
Forum: Plugins
In reply to: [Easy Watermark] black background instead of transparentHi,
I have got the same problem. What GD library version is needed to support transparent PNG images as watermarks?
Thanks
Forum: Plugins
In reply to: [Store Hours for WooCommerce] Activating Caching Plugin breaks pageHi,
I just did a quick test and it works! I can now remove those two handlers:
\Zhours\render_widget_shopping_cart_before_buttons \Zhours\render_after_mini_cartwithin my child theme (functions.php) and the Store Hours Manager Plugin stays updateable!
Thank you!
- This reply was modified 5 years, 8 months ago by steffiiiii.
Forum: Plugins
In reply to: [Store Hours for WooCommerce] Activating Caching Plugin breaks pageThanks for your quick plugin update!
Unfortunately I overlooked, that the new handlers are in a nested add_action, which is anonymous.
includes/Setup.php Line 39
\add_action('wp', function () {So I’m afraid I still can’t remove the new actions.
For example, I can easily remove the alertbar in the footer, because it is a single (not nested) action:
remove_action('wp_footer', '\Zhours\get_alertbar');The main action is still anonymous.
- This reply was modified 5 years, 9 months ago by steffiiiii.
Forum: Plugins
In reply to: [Store Hours for WooCommerce] Activating Caching Plugin breaks pagehi bizswoop,
due to the incompatibility I ended up removing those two functions from your plugin:
includes/Setup.php Line 59 to 67\add_action('woocommerce_widget_shopping_cart_before_buttons', function () { \ob_start(); }); \add_action('woocommerce_after_mini_cart', function () { if (!WC()->cart->is_empty()) : \ob_end_clean(); get_alertbutton(); endif; });Any chance you could change those two functions from anonymous functions to named functions? Then I could remove the two actions in my child theme and your plugins stays untouched.
Thanks
Forum: Plugins
In reply to: [Store Hours for WooCommerce] Activating Caching Plugin breaks pageThanks for your fast reply and effort to take the video.
The problem seems to be the combination of:
Store Hours Manager
The 7 Theme
The 7 Theme – Microwidget ‘Cart’ in top headerIf I disable the microwidget cart, everything works as expected.
So it seems there is an incompatibility between the microwidget cart of The 7 Theme and Store Hours Manager.Forum: Plugins
In reply to: [WP Popular Posts] {category} shows only one categoryHello,
sorry for my late reply. But I didn’t have time to work on my blog the last couple of weeks. Now I’m back, working on it and had time to test your code.
Thank you so much, perfectly working how I wanted it to be!!!
@3.14fingers THANKS, that worked for me!
Same problem here, with the black layout, wordpress 3.3.1 and lightbox plus v2.4