Jump to content

Featured Product - no image??


Guest cikopajo

Recommended Posts

Guest cikopajo

I upgraded from alpha to beta.

In featured product is no image. In product i have image and its displaying...

whats wrong?

txn :D

Link to comment
Share on other sites

Guest bamchi

I just installed 3.0 Beta and I have the same problem. No image in the Featured Product box. I did not have any previous versions.

Bamchi

Link to comment
Share on other sites

Guest bamchi

I just found the fix for this that was posted by another member and it works.

Thanks Lunnmh

Lunnmh Posted: May 19 2005, 09:16 AM

Newbie

Group: Members

Posts: 6

Member No.: 37,931

Joined: 17-May 05

Submissions: None Submitted

Downloads: 3

I Installed version 3 beta, and found that the Image wouldn't display in the Featured Product area...

but I managed to fix it..

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");

}

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...