Jump to content

images


Guest ebabybox

Recommended Posts

Guest ebabybox

hi guys!

Nice version ...

if this has been covered please move accordingly!

Have noticed that images are uploading ok but they are not showing as thumbnails on home page/featured products "no image available"

If i remember right had this problem with v2 but cant remember the fix!?!?

Cheers guys

Link to comment
Share on other sites

Guest vrakas

Goto /includes/boxes/ and edit randomProd.inc.php

Near the bottom of the page there is an if statement like this

if(!empty($result[0]['image'])){

  $box_content->assign("IMG_SRC","images/uploads/thumbs/thumb_".$result[0]['image']);

} else {

  $box_content->assign("IMG_SRC","skins/".$config['skinDir']."/styleImages/thumb_nophoto.gif");

}

change the bold areas to the following... and all works fine again.

if(!empty($randProd[0]['image'])){

  $box_content->assign("IMG_SRC","images/uploads/thumbs/thumb_".$randProd[0]['image']);

} else {

  $box_content->assign("IMG_SRC","skins/".$config['skinDir']."/styleImages/thumb_nophoto.gif");

}

Let me know if this works ok :)

Link to comment
Share on other sites

Guest ebabybox

thanks for that ....

i looked into my problem a bit further

when i upload image thru add product, the image dispalys for the product only but not in featured prod etc.

If i then go to images it states none uploaded but if i do a direct upload here and add this to the product then everything works fine so am guessing i have set something up wrong.

so this will be all i will need to fix??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...