Buying wordpress NextGenGallery quick fix needed.

Discussion in 'Programming' started by sandrodz, Sep 19, 2011.

  1. #1
    Hi,

    I've a little script that uses NextGenGallery /wordpress system and outputs thumbnails of a post. I use custom fields to attach thumbnail to a post and than call it in template via:

    											<?php
    											query_posts('cat=35,147&showposts=6&order_by=date&order=DESC');
    											if (have_posts()) : while (have_posts()) : the_post();
    											$text = get_the_content();
    											$primary = get_post_meta($post->ID, 'primary');
    											$primary = $primary[0];
    											$do_not_duplicate[$post->ID] = $post->ID;
    											//image size
    											$w = 131;
    											$h = 223;
    											?>
                                              <li>
                                                <div class="descrpt slideright">
    												<?php
    												$img = nggSinglePicture($primary,$w,$h);
    												//missing: class="cover" from image to make sliding cover work!
    												echo strip_tags($img,'<img>');
    												?>
                                                    <h4><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark"); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
                                                    <p><? echo get_the_excerpt(); ?></p>
                                                </div>
                                              </li>
    											<?php 
    											$i++;
    											endwhile; endif; 
    											wp_reset_query();
    											?>
    Code (markup):
    $w = 131; $h = 223; I require this width and height for my new wp template. But instead NextGen outputs resized image of 131*202. This is because original images uploaded are 156*240 and nextGen doesn't crop it just retains proportion and resizes image.

    I need it to do cropping instead so my layout doesn't break.

    I NEED HELP :) let me know.
     
    sandrodz, Sep 19, 2011 IP
  2. mubashirnisar

    mubashirnisar Banned

    Messages:
    2,186
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    well dear y dont u use featured image function and set the size of that image from settings?? i guess it will work check it out ..
     
    mubashirnisar, Sep 19, 2011 IP
  3. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Anyone? still didnt' find right person.
     
    sandrodz, Sep 21, 2011 IP