WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] How to customize the size of the thumbnails? (43 posts)

  1. zirko
    Member
    Posted 1 year ago #

    Hello

    First of all thank you very much for Yet Another Related Posts Plugin!

    I use version 4 Yet Another Related Posts Plugin and I can not customize the size of the thumbnails. They are always square and therefore it distorts my images.

    How do I set it to settle in 197x118?

    I saw you speak of "patterns personalization" but I do not understand how to implement and how to fix everything.

    Thank you very much for your help.

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. raonip
    Member
    Posted 1 year ago #

    Hi! I'm also interested on this!!!!

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    The thumbnail size is something that I will make customizable in a future version. For now, you can use CSS styling in your theme to target the images in the yarpp output and make them the correct size.

  4. raonip
    Member
    Posted 1 year ago #

    Hi!

    I notice that the thumbnail image you are taking is the FULL/Large image....
    Would be great if the image was actualy the THUMBNAIL size......then the page would load faster.....

    Is there a way I can change that?

  5. zirko
    Member
    Posted 1 year ago #

    Thank you Micho by searching the code Yet Another Related Posts Plugin I could put the sizes I wanted.

    So I have another question, how do I set the number of words that appear in the image?

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @raonip oh no, you're right. I'll try to fix this in the next version... this is all based on WordPress's builtin thumbnail handling, but maybe I called it incorrectly.

    @zirko, do you mean how much of the title is included? This is controlled completely by CSS... if you make that title section taller, more text will show up.

  7. raonip
    Member
    Posted 1 year ago #

    Hi Mitcho!!! Thanks!!!!!

  8. zirko
    Member
    Posted 1 year ago #

    Sorry Mitcho, I'm french so my english is probably not good.

    I mean the title of the article suggested is not complete, missing words.

    Is it possible to ensure that the full title is displayed in the image?

  9. raonip
    Member
    Posted 1 year ago #

    Hi Zirko,
    You can change this CSS to show more Title:

    .yarpp-thumbnails-horizontal .yarpp-thumbnail-title {
    	max-height: inherit !important;
    }
  10. zirko
    Member
    Posted 1 year ago #

    @eaonip Thank you but it did not work. It's all whack. I had to uninstall and reinstall.

  11. arka1
    Member
    Posted 1 year ago #

    Hi there,

    thanks a lot for this great plugin!

    I too was very excited when I read that thumbnails were available horizontally, but, just like raonip, I too get huge images.
    From what you said later, though, I take it this is a bug and so you will be releasing for an amended file in due course. I really don't like the idea of touching the css file:D:D

    Thanks again.

  12. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Hi all,

    YARPP 4.0.1 beta 1 is here, and it makes it so appropriate size thumbnails are generated on the fly. I've only tested this with WP's builtin thumbnail system, not with plugins like Jetpack's Photon or others which use other methods to resize images, so if you use such plugins, I'd be curious if it works well.

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.4.0.1b1.zip

    In addition, in this version I added a programmatic way to specify the thumbnail size. Add code like this to your theme's functions.php: add_image_size( 'yarpp-thumbnail', $width, $height, true ); where width and height are integers. Make sure your default image is an image of appropriate size, for example in your theme.

    Let me know how that goes for you guys. :) Thanks for your feedback!

  13. brettbum
    Member
    Posted 1 year ago #

    I tried adding that to my functions.php file as stated and once with values

    add_image_size( 'yarpp-thumbnail', '280px', '150px', true );

    I initially set it to display 8 related posts then 6. It seems that the first row will show 4 no matter what and if you use a rectangular dimension instead of a square, it will squeeze those four into what ever space is presented.

    Ergo no controls to set how many related posts should show up in a row, which then becomes the defacto total width divided by 4 for the images....

  14. brettbum
    Member
    Posted 1 year ago #

    Really, like the direction of where this is heading, just seems to need a slight bit more to really be stellar

  15. arka1
    Member
    Posted 1 year ago #

    Hi there,

    I have just loaded the new version and yes I get thumbnails:), but they are in a column, not in a row.

  16. arka1
    Member
    Posted 1 year ago #

    Here is what I see...
    https://www.dropbox.com/s/pe7yyw7tms5oegl/YARRP.tiff
    (now I have gone back to the "normal" list)

  17. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @brettbum where that division lies should be controlled completely by CSS. If you post a link I could take a look.

    @arka1 it doesn't look like you're using the new thumbnail feature... or if you are, maybe the styles-thumbnails.php CSS is not getting loaded?

  18. arka1
    Member
    Posted 1 year ago #

    Hem... I am not sure I follow what you are saying (but that's just me:) )
    The file yarpp-template-thumbnail.php is there (just checked), but whether it is being called, I know not.
    I am certainly using 4.0.1b1 (just checked)

    Any advice?

  19. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @arka1 sorry it's confusing. In the YARPP settings, you want to make sure the big thumbnails button is pressed, if you want to try the new thumbnails feature.

    http://cl.ly/image/1i1J1V1L3w3c

    If that's still looking weird, please let me know.

  20. arka1
    Member
    Posted 1 year ago #

    I may be daft, but I am not that daft :D:D
    I had pressed the thumbnail button (although now I am on text only) :)

  21. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @arka1 sorry, I didn't mean to insult you. There's a custom template also called "thumbnails" from the pre-YARPP 4 system, so I was afraid you were using that.

    If you don't mind, could you turn on that thumbnail view again and send a link so I can take a look at what code is being output?

  22. arka1
    Member
    Posted 1 year ago #

    No worrye mitcho, just jocking.

    Here is a link to my latest post:
    http://www.autosvezzamento.it/la-dieta-vegetariana-per-bambini-e-adulti-perche-e-come/
    Let me know when you are done, so I can switch it back off.

  23. raonip
    Member
    Posted 1 year ago #

    Arka1, hi!

    Looks like the CSS from YARPP is not loading in your theme.....that's why looks so bad.

    Did you disable it?

  24. arka1
    Member
    Posted 1 year ago #

    Hi raonip,

    I most certainly have not:) (if anything I would not know how to do it :D )

  25. arka1
    Member
    Posted 1 year ago #

    One issue could be the commenting system... I have read somewhere that for example Disqus can play tricks with some plugins, but I am not aware of Livefyre doing the same.

  26. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Yup, the CSS is not loading. @arka1, you can turn it off now. Thanks.

    The URL http://www.autosvezzamento.it/wordpress/wp-content/plugins/yet-another-related-posts-plugin/styles-thumbnails.php?height=120&width=120 is returning an error. That's how the styling is served. Do you know if you have some restriction against serving PHP from wp-content? (This is not normally the case, so if you didn't set something up, probably not.) I doubt it's a PHP error, given that the same file is working for everyone else. :/

  27. arka1
    Member
    Posted 1 year ago #

    No, I don't know (and I certainly didn't do it...) Can you tell me of another example where such procedure would be used so I can try it out?

  28. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @arka1 are you trying the beta or version 4.0? You might want to reinstall the YARPP files... it's possible that that file got corrupted or something and that's why it won't run.

  29. arka1
    Member
    Posted 1 year ago #

    Alas I have tried both 4.0 and the beta version installing them from scratch, but no difference.
    In 4.0 the images are huge, in the beta version... you have seen for yourself.

    So if it works for everybody else the problem must be with me. What a shame:(

  30. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @arka1 really sorry to hear that. last resort: if you know where your server stores an error log for PHP, there may be some log entries about what's wrong with that file.

    EVERYONE ELSE: I've spoken with my friend Alex who is the author of the Regenerate Thumbnails plugin, and I've decided that for performance reasons I will release 4.0.1 *without* the automatic generation of appropriate-sized thumbnails. The code is still in there, however, and can be turned on adding code like

    add_action( 'init', function() { yarpp_set_option( 'generate_thumbnails', true ); } );

    in your theme. I hope that works for you. Here's the latest beta:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.4.0.1b3.zip

    Please let me know about any feedback. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.