Bernardo Rosa
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Show Posts] Pagination is breakingThanks, I solved by adding this to test if gif:
$thumb_url_low = strtolower($image_url[0]); $is_gif = strpos($thumb_url_low, '.gif') == true;
And then I do modify the part where the image is rendered:
if(!$is_gif){ if ( ! empty( $image_atts ) ) : ?> <img src="<?php echo WPSP_Resize( $image_url[0], $image_atts[ 'width' ], $image_atts[ 'height' ], $image_atts[ 'crop' ], true, $image_atts[ 'upscale' ] ); ?>" alt="<?php esc_attr( the_title() ); ?>" itemprop="image" class="<?php echo $settings[ 'image_alignment' ]; ?>" /> <?php else :the_post_thumbnail( apply_filters( 'wpsp_default_image_size', 'full' ), array( 'itemprop' => 'image' ) ); endif; }else{ the_post_thumbnail( $size = [$settings[ 'image_width' ], $settings[ 'image_height' ]], $attr = ''); }
- This reply was modified 5 years, 11 months ago by Bernardo Rosa.
Forum: Plugins
In reply to: [WP Show Posts] Pagination is breakingWell, the crazy thing is that gifs work fine on other blogs, like digitaliza/blog (check the post from november 16) and we really heaven’t done anything to fix it. It just turns the gifs into static images.
How would I go about fixing the images size manually?
- This reply was modified 5 years, 11 months ago by Bernardo Rosa.
- This reply was modified 5 years, 11 months ago by Bernardo Rosa.
Forum: Plugins
In reply to: [WP Show Posts] Pagination is breakingThe bug is happening on the articles that have gifs as their display images.
I think I solved their bug, rs. But you are right, we should move to a plugin with better support ??
Thanks a lot, have a nice day too and a happy new year!
Forum: Plugins
In reply to: [Plagiarism Checker By SST] The plugin made YARS stop workingYou are blocking all ajax action, what is really really bad and you should check it ASAP.
I tested it with these lines commented out and it works:
if(!current_user_can('edit_posts')) { if(!check_ajax_referer( 'sst-check-plagiarism-security-nonce', 'sst_nonce_security')) { wp_die(); } die('Only Admins and Editors are allowed to access these files...'); }
Please implement a better solution, people are paying to use this.
Hey, I made some test and it appears to be a conflict between your plugin and Plagiarism Checker By SST. Yasr works just fine, but when I activate the plagiarism checker, it stops working. What is really werid cause the plagiarism checker wasn’t suppose to be doing nothing about AJAX requests from other plugins .-. I won’t be able to use YASR now cause the plagiarism checker is necessessary for our work here… but we will be looking foward for a solution.
It’s on latest version now, you can check.
I enabled debuging options and I’m getting these errors now:
Notice: Undefined index: snippet in mysite/wp-content/plugins/yet-another-stars-rating/yet-another-stars-rating.php on line 128Notice: Undefined index: snippet_itemtype in mysite/wp-content/plugins/yet-another-stars-rating/yet-another-stars-rating.php on line 129
Notice: Undefined index: metabox_overall_rating in mysite/wp-content/plugins/yet-another-stars-rating/yet-another-stars-rating.php on line 142
Keep in mind that the problem is occuring in multiple websites with different hosts and configurations. Maybe a conflict with other plugins or the theme itself? I’m using Gridlove theme.
Tried clearing the cache and it didn’t work. I enabled the functionallity on the website so you can see it for yourself. Maybe it’s a problem with the plugin, cause other things, like comments, work just fine.
Updating the plugin doesn’t help neither does clearing cache or lowering cache timeout :/
Seems like that function is working, because i got this
“You must sign in to vote”
That’s beacause I disabled unlogged users from voting, cause when it was enabled I got the error I pointed in the last question.
About using the newest version, I will try to convince my superiors the let me test it, the problem is simply that we are afraid to brake others parts of the site if we update a certain plugin (what often happens cause wordpress).