Title: Bernardo Rosa's Replies | WordPress.org

---

# Bernardo Rosa

  [  ](https://wordpress.org/support/users/bernardogram/)

 *   [Profile](https://wordpress.org/support/users/bernardogram/)
 *   [Topics Started](https://wordpress.org/support/users/bernardogram/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bernardogram/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bernardogram/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bernardogram/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bernardogram/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bernardogram/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Show Posts] Pagination is breaking](https://wordpress.org/support/topic/pagination-is-breaking-2/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/pagination-is-breaking-2/#post-11051662)
 * Thanks, 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 7 years, 4 months ago by [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Show Posts] Pagination is breaking](https://wordpress.org/support/topic/pagination-is-breaking-2/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/pagination-is-breaking-2/#post-11047819)
 * Well, the crazy thing is that gifs work fine on other blogs, like [digitaliza/blog](http://digitalizanegocios.com.br/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 7 years, 4 months ago by [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/).
    -  This reply was modified 7 years, 4 months ago by [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Show Posts] Pagination is breaking](https://wordpress.org/support/topic/pagination-is-breaking-2/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/pagination-is-breaking-2/#post-11044322)
 * The bug is happening on the articles that have gifs as their display images.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Unlogged users can’t vote](https://wordpress.org/support/topic/unlogged-users-cant-vote/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/unlogged-users-cant-vote/#post-11033783)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plagiarism Checker By SST] The plugin made YARS stop working](https://wordpress.org/support/topic/the-plugin-made-yars-stop-working/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/the-plugin-made-yars-stop-working/#post-11033527)
 * You 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Unlogged users can’t vote](https://wordpress.org/support/topic/unlogged-users-cant-vote/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/unlogged-users-cant-vote/#post-11033462)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Unlogged users can’t vote](https://wordpress.org/support/topic/unlogged-users-cant-vote/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/unlogged-users-cant-vote/#post-11033368)
 * It’s on latest version now, you can check.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Unlogged users can’t vote](https://wordpress.org/support/topic/unlogged-users-cant-vote/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/unlogged-users-cant-vote/#post-11032801)
 * 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 128
 * Notice: 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Unlogged users can’t vote](https://wordpress.org/support/topic/unlogged-users-cant-vote/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/unlogged-users-cant-vote/#post-11032726)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Unlogged users can’t vote](https://wordpress.org/support/topic/unlogged-users-cant-vote/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/unlogged-users-cant-vote/#post-11032686)
 * 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 :/
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Unlogged users can’t vote](https://wordpress.org/support/topic/unlogged-users-cant-vote/)
 *  Thread Starter [Bernardo Rosa](https://wordpress.org/support/users/bernardogram/)
 * (@bernardogram)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/unlogged-users-cant-vote/#post-11032275)
 * > 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).

Viewing 11 replies - 1 through 11 (of 11 total)