PagePeeker Thumbnail Size

Discussion in 'Web Directory Script' started by Domenic, Mar 1, 2018.

  1. Domenic

    Domenic New Member

  2. h.struck

    h.struck New Member

    I had the same problem.
    I have solved it by entering the following code in the user-style.css.

    .card__image {
    float: left;
    width: 100%;
    max-width: 150px;
    margin-right: 10px;
    overflow: hidden;
    }
    Dayir_A. likes this.
  3. Dayir_A.

    Dayir_A. Staff Member

    Hello,

    PagePeeker API, which we are using in our Directory script says that there are few sizes available.

    Code (Text):
    t    Tiny, 90 x 68 pixels
    s    Small, 120 x 90 pixels
    m    Medium, 200 x 150 pixels
    l    Large, 400 x 300 pixels
    x    Extra large, 480 x 360 pixels
     
    So you have to edit /modules/directory/templates/front/list-listings.tpl file
    or
    /templates/YOURTEMPLATE/modules/directory/templates/front/list-listings.tpl if exists

    Change the line
    Code (Text):

    <img src="http://free.pagepeeker.com/v2/thumbs.php?size=m&url={$listing.url|escape:url}"class="img-responsive">
     
    There is a piece with: size=m
    change m letter to other values to get bigger size of thumbnail.
    But I guess CSS styles are also required so @h.struck thank you for your post.

    Thanks.

Share This Page