WordPress.org

Ready to get started?Download WordPress

Forums

TimThumb and NextGen in widgetmode (1 post)

  1. darthmortar
    Member
    Posted 4 years ago #

    In two places I use `<?php
    if (function_exists("nggDisplayRandomImages"))
    { nggDisplayRandomImages(amount,width,height,'denied','2'); }
    ?>` to display random images from my gallery's.

    By modifying widgets.php in NextGen folder I can with help from TimThumb both crop and change size of my images in widgetmode without they get messed up. But the problem is that since I use the nggDisplayRandomImages in two places I dont want them to be effected by TimThumb in the same way, in one place I want to show one picture in size 190x148 and in another in size 69x45. If I use TimThumbs &h=45&w=69&zc=1 in widgets.php all images get that size. I I leave size out, and uses size in the nggDisplayRandomImages all images becomes messed up and blury.

    So I'm thinking, is their anyway to use TimThumb directly in the nggDisplayRandomImages so that each display only gets effected and still looks good? Something like nggDisplayRandomImages(<strong>before</strong>, <strong>after</strong>,amount,width,height,'denied','2'

    Anyone have any idea, solution or similar?

Topic Closed

This topic has been closed to new replies.

About this Topic