Ok so I've been awake all night trying to fix this only to find out I really shouldn't have gotten the Siteclonez PHP... Hindsight... However 99 percent of the site is running fine, but for whatever reason the thumbnails will not display for the auctions on the main page only... anyone heard of this or??? Please help me figure out a way to fix it, I'm soo close!! I'm thinking there will most certainly be some good faith money involved because I'm soo frustrated with it right now... it was working just fine... any help at all would be great you have no idea... site url is http://www.myelectronicshookup.com and I can get you any other info you need just ask! Thanks soooo much in advance!
Here is the local code <div class="thumb"> <a href="/auctions/view/5"> <img src="/img/auction_images/thumbs/no-image.gif" border="0" alt="" /> </a> </div> I can't post live links yet so I've attached a .txt file containing the source code from the site as well! Thanks again all!
Is this it? <div class="content"> <ul class="horizontal-bid-list clearfix"> <?php foreach($auctions as $auction):?> <li class="auction-item" title="<?php echo $auction['Auction']['id'];?>" id="auction_<?php echo $auction['Auction']['id'];?>"> <div class="item align-center"> <h3><?php echo $html->link($auction['Auction']['title'], array('action' => 'view', $auction['Auction']['id']));?></h3> <div class="thumb"> <a href="/auctions/view/<?php echo $auction['Auction']['id']; ?>"> <?php if(!empty($auction['Auction']['image'])):?> <?php echo $html->image('auction_images/thumbs/'.$auction['Auction']['image'], array('border' => 0)); ?> <?php else:?> <?php echo $html->image('auction_images/thumbs/no-image.gif', array('border' => 0));?> <?php endif;?> </a> </div> <div class="username bold">Latest Bidder <br /><span class="username latest-bidder bid-bidder">Bidder</span></div> <div class="price"> <?php if(!empty($auction['Auction']['fixed_price'])):?> <?php echo $number->currency($auction['Auction']['fixed_price'], $appConfigurations['currency']); ?><br /> <span class="font-10">Fixed Price</span> <?php else: ?> <?php echo $number->currency($auction['Auction']['start_price'], $appConfigurations['currency']); ?> <?php endif; ?> </div> </div> <div class="timer-status"> <div class="timer align-center"> <div id="timer2_<?php echo $auction['Auction']['id'];?>" class="countdown" title="<?php echo $auction['Auction']['end_time'];?>">--:--:--</div> </div> <?php if($session->check('Auth.User')):?> <div class="bid-status bid-now align-center"><?php echo $html->link('BID', array('controller' => 'auctions', 'action' => 'bid', $auction['Auction']['id']), array('class' => 'bid-button-link', 'title' => $auction['Auction']['id']), null, false);?></div> <?php else:?> <div class="bid-status closed align-center"><?php echo $html->link('LOGIN', array('controller' => 'users', 'action' => 'login'), null, null, false);?></div> <?php endif;?> </div> <div class="message-loader align-center clearfix"> <div class="bid-loading" style="display: none"><?php echo $html->image('ajax-arrows.gif');?></div> <div class="bold red bid-message" style="display: none"></div> </div> </li> <?php endforeach;?> </ul> </div>
Yes, this is it. <?php if(!empty($auction['Auction']['image'])):?> <?php echo $html->image('auction_images/thumbs/'.$auction['Auction']['image'], array('border' => 0)); ?> <?php else:?> <?php echo $html->image('auction_images/thumbs/no-image.gif', array('border' => 0));?> <?php endif;?> Look if there are any images in "auction_images/thumbs/" folder on your ftp.
Yes there are images in that folder, images in the max folder too! Some craziness, even with images in there the code tells it to pull a no image plate?
<?php if(!empty($auction['Auction']['image'])):?> <?php else:?> <?php echo $html->image('auction_images/thumbs/no-image.gif', array('border' => 0));?> <?php endif;?> Try ti delete this strings.
what do you think could be causing it? is there something in the php somewhere that's causing this? if you navigate from that page the images show up on the auction, it's just on the "home" page that they do not and it's got me soo stumped...
I don't see where $auction['Auction']['image'] generated, I think probelm with generated pictures links.
So you think the problem is in the picture's link? What drives me crazy about it is, go to sub category on the site and the same images that is supposed to link to work???
Here is the code from /auctions/view if that helps at all <div id="auction-details" class="big-box clearfix"> <div class="f-top clearfix"> <h2><?php echo $auction['Auction']['title']; ?></h2> </div> <div class="f-repeat clearfix"> <div class="content"> <div class="col1 auction-images"> <div class="f-top clearfix"> </div> <div class="f-repeat clearfix"> <div class="content align-center"> <?php if(!empty($auction['Auction']['image'])):?> <?php echo $html->image('auction_images/max/'.$auction['Auction']['image'], array('class'=>'productImageMax'));?> <?php else:?> <?php echo $html->image('auction_images/max/no-image.gif');?> <?php endif?> </div> </div> <div class="f-bottom clearfix"> </div> <?php if(!empty($auction['AuctionImage']) && count($auction['AuctionImage']) > 1):?> <div class="thumbs clearfix"> <ul> <?php foreach($auction['AuctionImage'] as $image):?> <li><?php echo $html->link($html->image('/public_html/app/webroot/imgauction_images/thumbs/'.$image['image'], array('border' => 0)), '/img/auction_images/max/'.$image['image'], array('class' => 'productImageThumb'), null, false);?></li> <?php endforeach;?> </ul> </div> <?php endif; ?> </div> <div class="col2 bid-info auction-item" title="<?php echo $auction['Auction']['id'];?>" id="auction_<?php echo $auction['Auction']['id'];?>"> <div class="f-top clearfix"> </div> <div class="f-repeat clearfix"> <div class="content"> <div class="teaser clearfix"> <?php echo strip_tags($text->truncate($auction['Auction']['description'], 200, '...', false, true));?> </div> <div class="align-center"> <div class="price clearfix bid-price"> <?php if(!empty($auction['Auction']['fixed_price'])):?> <?php echo $number->currency($auction['Auction']['fixed_price'], $appConfigurations['currency']); ?><br /> <span class="font-10">Fixed Price</span> <?php else: ?> <?php echo $number->currency($auction['Auction']['start_price'], $appConfigurations['currency']); ?> <?php endif; ?> </div> <div>plus shipping</div> <div class="username">Latest Bidder : <span class="bid-bidder"><?php echo $auction['LastBid']['username'];?></span></div> <div class="bid-status countdown timer clearfix" title="<?php echo $auction['Auction']['end_time'];?>">--:--:--</div> <div class="bid-message red" style="display: none"></div> <div class="bid-now clearfix"> <?php if($session->check('Auth.User')):?> <div class="bid-loading" style="display: none"><?php echo $html->image('ajax-arrows.gif');?></div> <div class="bid-button"><?php echo $html->link($html->image('b-bid3.gif', array('border' => 0, 'alt' => 'Bid Now', 'title' => 'Bid Now')), array('controller' => 'auctions', 'action' => 'bid', $auction['Auction']['id']), array('class' => 'bid-button-link', 'title' => $auction['Auction']['id']), null, false);?></div> <?php else:?> <div class="bid-button"><?php echo $html->link($html->image('b-login.gif', array('border' => 0, 'alt' => 'Login', 'title' => 'Login')), array('controller' => 'users', 'action' => 'login'), null, null, false);?></div> <?php endif;?> </div> </div> <div class="count clearfix"> <?php if(!empty($auction['Auction']['fixed_price'])):?> <label>Fixed price</label> : <?php echo $number->currency($auction['Auction']['fixed_price'], $appConfigurations['currency']); ?><br /> <?php endif;?> <?php if(!empty($auction['Auction']['isFuture'])):?> <label>Starts on</label> : <?php echo $time->nice($auction['Auction']['start_time']);?><br/> <?php elseif(!empty($auction['Auction']['isClosed'])):?> <label>Ended on</label> : <?php echo $time->nice($auction['Auction']['end_time']);?><br/> <?php else: ?> <label>Closes on</label> : <span class='closes-on'><?php echo $time->nice($auction['Auction']['end_time']);?></span><br/> <?php endif;?> </div> <?php if(!empty($auction['Auction']['rrp'])):?> <div class="count-saving"> <span class="bold">Savings:</span> <br /> <label>Worth up to</label>: <?php echo $number->currency($auction['Auction']['rrp'], Configure::read('App.currency'));?><br /> <div class="total-savings bold"> <label>Savings</label> : <span class="bid-savings-price"><?php echo $number->currency($auction['Auction']['savings']['price'], $appConfigurations['currency']);?></span> </div> </div> <?php endif;?> </div> </div> <div class="f-bottom clearfix"> </div> </div> <div class="col3 misc-info"> <div class="sub-col bid-history clearfix"> <div class="f-top clearfix"> </div> <div class="f-repeat clearfix"> <div class="content"> <h3>Bidding History</h3> <div id="bidHistoryTable" title="<?php echo $auction['Auction']['id'];?>"> <table width="100%" cellpadding="0" cellspacing="0" border="0" > <thead> <tr> <th>Bid</th> <th>Bidder</th> <th>Type</th> </tr> </thead> <tbody> <?php if(!empty($bidHistories)):?> <?php foreach($bidHistories as $bid):?> <tr> <td><?php echo $time->niceShort($bid['Bid']['created']);?></td> <td><?php echo $bid['User']['username'];?></td> <td><?php echo $bid['Bid']['description'];?></td> </tr> <?php endforeach;?> <?php endif;?> </tbody> </table> </div> </div> </div> <div class="f-bottom clearfix"> </div> </div> <div class="sub-col auction-type clearfix"> <div class="f-top clearfix"> </div> <div class="f-repeat clearfix"> <div class="content"> <?php if(!empty($auction['Auction']['fixed_price'])):?> <div><input type="checkbox" disabled="disabled" checked="checked" /> Fixed price auction</div> <?php endif;?> <?php if(!empty($auction['Auction']['peak_only'])):?> <div><input type="checkbox" disabled="disabled" checked="checked" /> Peak auction</div> <?php endif;?> </div> </div> <div class="f-bottom clearfix"> </div> </div> <?php if(!empty($auction['Auction']['rrp'])):?> <div class="sub-col clearfix"> <div class="f-top clearfix"> </div> <div class="f-repeat clearfix"> <div class="content"> <span class="font-11">The "worth up to" price reflects the manufacturer's recommended retail price or typical high street retail price.</span> </div> </div> <div class="f-bottom clearfix"> </div> </div> <?php endif; ?> </div> </div> </div> <div class="f-bottom clearfix"></div> </div> <div id="product-desc" class="big-box clearfix"> <div class="f-top clearfix"> <h2>Product Information</h2> </div> <div class="f-repeat clearfix"> <div class="content"> <?php echo $auction['Auction']['description'];?> </div> </div> <div class="f-bottom clearfix"></div> </div> </div>