V4.1.x Seller Store image thumb in showlisting

Discussion in 'Modules / Plugins / Modifications' started by aerospace, Apr 7, 2010.

  1. aerospace Customer

    Hi, I'm using 68C V 4.1.9 Developer.
    Ive installed seller store module and modified the code using this tutorial:

    http://www.68classifieds.com/forums...tions/7953-store-image-name-showlistings.html

    I want to show the thumb of the logo/avatar uploaded using seller store: inside showlisting I've used
    PHP:
    <img src="thumbs/small_{$entry.sImage}">
    but it shows nothing! It seems like seller store doesn't create a thumb, instead it uploads the original image in photos and that's it!

    I forgot...In showlisting I deleted the tables, I'm just using div + css.

    HELP!!!

    Thanks!
  2. bowers01 Genius At Work

    Hi,
    You should be using
    Code:
    <img src="photos/{$entry.storeImage}" />
    Give that a go.
    Nick
  3. aerospace Customer


    Hi Nick!
    Thanks!
    I know it works this way, but the image doesn't resize...I mean, I want the the thumb because I don't have any space for the original image, the customers usually upload big images and this way my entire div-builted showlisting is ruined!

    Any idea?
  4. bowers01 Genius At Work

    unless you have modified the script it does not make a thumb version of the seller logo.
    Try using this in the css file
    Code:
    .storeimage{width:200px}
    then
    Code:
    <img src="photos/{$entry.storeImage}" class="storeimage" alt="{$entry.storeTitle}" />
    Regards,
    Nick
  5. aerospace Customer

    Thanks!
    But it doesn't work...the image size is the original one...ie if the image size is 400px x 400px, it remains the same size and shash my div...

    Any other idea?
  6. seymourjames All Hands On Deck

    Why not force the dimensions.

    <img src="photos/{$entry.storeImage}" class="storeimage" width="100px" height="100px" alt="{$entry.storeTitle}" />

    or don't use pixel dimensions but percentages instead if you prefer. Not sure what "storeimage" is doing so you may wish to remove it unless it is doing some styling you actually need.
  7. Mike-N-Tosh Developer & Moderator

    Or instead, make a seller store icon the size that you want and show that instead of their own image. that way, they will still stand out to the end users as a business with a seller store.

    You could do something like this then in your showlistings:
    {if $entry.storeImage <>''}
    <img src="pathtoyoursellerstoreicon" alt="{$entry.storeTitle}" width="100px" height="100px" border="0" />
    {/if}
  8. bowers01 Genius At Work

    In my previous post i said to add .storeimage{width:200px} to the css file, that works fine on my sites.
    Also i would only set either the width or the heigh, not both.


    Nick
  9. aerospace Customer

    Thanks!
    I've fixed it using css!
    Is there something they cannot fix?
    Thanks everybody!

Share This Page