php gallery: skip to the second picture. I pay 30/50$

Discussion in 'Programming' started by Arteweb, Jan 3, 2010.

  1. #1
    Hi to all,
    I have embed a mini slideshow gallery (Phatfusion) after the product details of a Virtuemart store (v.1.1.4) in a Joomla website (v.1.5.14).

    The website is here.

    I would like skip the first thumb and the first fullview image to the second pic.
    In fact the first image ("101 Film di fantascienza", he has also a bad resize) is identical to the main one at the top-left of the page.

    In other words it's possible delete from gallery the first pic and let begin the slideshow from second?

    I spended many hours last night on the code triyng with (LIMIT 1,5) and something other (I'm not a PHPer), but without results (first image disappear but the second don't load)

    I will pay 30$ trough Paypal for the right code.

    The old code:

    // Custom code for phatfusion slideshow
    $path = 'components/com_virtuemart/shop_image/product/';
    $db_k= new ps_DB();
    $db_k->query( "SELECT * FROM `#__{vm}_product` WHERE `product_id`=".intval($product_id));
    $full = $path . $db_k->f('product_full_image');
    $thumb = $path . $db_k->f('product_thumb_image');
    $db_jk = new ps_DB();
    $more='';
    $db_jk->query( "SELECT * FROM `#__{vm}_product_files` WHERE `file_product_id`=".intval($product_id). " AND `file_is_image`=1 AND `file_published`=1 ORDER BY file_id ASC");
    while( $db_jk->next_record() ) {
    		$mfull = ltrim($db_jk->f('file_name'),'/');
    		$mthumb = ereg_replace('product','product/resized',ltrim($db_jk->f('file_name'),'/'));
    		$mext = '_'. $db_jk->f('file_image_thumb_height'). 'x'. $db_jk->f('file_image_thumb_width'). '.'.$db_jk->f('file_extension');
    		$ereg = '.'. $db_jk->f('file_extension');
    		$mthumb = ereg_replace($ereg, $mext, $mthumb);
    		$more .= ';'. $mfull . ',' . $mthumb;
    }
    $product_image = '{phatfusionslideshow '. $full .','. $thumb . $more .'}';
    $product_image = vmCommonHTML::ParseContentByPlugins( $product_image );// Custom code for phatfusion slideshow
    $path = 'components/com_virtuemart/shop_image/product/';
    $db_k= new ps_DB();
    $db_k->query( "SELECT * FROM `#__{vm}_product` WHERE `product_id`=".intval($product_id));
    $full = $path . $db_k->f('product_full_image');
    $thumb = $path . $db_k->f('product_thumb_image');
    $db_jk = new ps_DB();
    $more='';
    $db_jk->query( "SELECT * FROM `#__{vm}_product_files` WHERE `file_product_id`=".intval($product_id). " AND `file_is_image`=1 AND `file_published`=1 ORDER BY file_id ASC");
    while( $db_jk->next_record() ) {
    		$mfull = ltrim($db_jk->f('file_name'),'/');
    		$mthumb = ereg_replace('product','product/resized',ltrim($db_jk->f('file_name'),'/'));
    		$mext = '_'. $db_jk->f('file_image_thumb_height'). 'x'. $db_jk->f('file_image_thumb_width'). '.'.$db_jk->f('file_extension');
    		$ereg = '.'. $db_jk->f('file_extension');
    		$mthumb = ereg_replace($ereg, $mext, $mthumb);
    		$more .= ';'. $mfull . ',' . $mthumb;
    }
    $product_image = '{phatfusionslideshow '. $full .','. $thumb . $more .'}';
    $product_image = vmCommonHTML::ParseContentByPlugins( $product_image );
    Code (markup):
    Another little question: it's there some way to assign the "height:auto" css parameter to the product full image? (all images have a fixed width of 700px, but can have different heights). If you can help me I will pay you a extra of 20$.

    The old CSS:

    #slideshowContainer{
    	width: 700px;
    	border: 1px solid #ccc;
        height: 400px; 
    }
    
    
    .loading {
    
    	background: url(images/loading.gif) center no-repeat;
    
    }
    
    
    
    .slideshowThumbnail {
    
    	outline: none;
    	
    	height:auto;
    
    }
    
    
    
    .slideshowThumbnail img {
    
    	border: 1px solid #ccc;
    	
    	margin:3px;
    	
    	padding: 4px;
    	
    	width:124px;
    	
    	height:auto;
    
    }
    
    
    
    a:hover.slideshowThumbnail img {
    
    	border: 1px solid #D11A1D;
    
    	padding: 4px;
    
    }
    
    
    
    .current img {
    
    	border: 1px solid #D11A1D;
    
    	padding: 4px;
    
    }
    
    
    
    .outline {
    
    	border: 1px solid #D11A1D;
    
    	z-index: 0;
    
    	position: absolute;
    
    }
    Code (markup):
     
    Arteweb, Jan 3, 2010 IP
  2. travelmoth

    travelmoth Active Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    I think really easy...I can help you the first question...
     
    travelmoth, Jan 3, 2010 IP
  3. danchleo

    danchleo Active Member

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    I can help your two question,pm me?
     
    danchleo, Jan 3, 2010 IP