Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oscommerce234 colorbox issue


zpupster

Recommended Posts

Posted

hello,

 

on product_info page clicking thumbnail so image will enlarge with colorbox.

 

i can not put a caption for the image.

 

If i put in text in the html popup, the text will show but the photo will not, removing text shows photo only.

 

 

http://www.sympacare.com/bsosc234/product_info.php?cPath=22_159&products_id=1033

 

and

text only

http://www.sympacare.com/bsosc234/product_info.php?cPath=22_158&products_id=1027

 

 

testing for now,

 

How are is everybody handling this??

 

 

craig

 

 

Posted

The HTML box is not for captions, it is for (eg) embedding a youtube video. There is no inbuilt capability for image captioning.

Posted

 do not put text in HTML box!!

 

there is a script that was not on my product_info.php page, but in the plainJane osc234.

 

add before

<?php echo stripslashes($product_info['products_description']); ?>

and below is the line that will add the caption to the image in colorbox.

title: '<?php echo $product_info['products_name']; ?>',
<script type="text/javascript">
$(function() {
  $('#piGal').css({
    'visibility': 'hidden'
  });


  $('#piGal').photosetGrid({
    layout: '<?php echo $photoset_layout; ?>',
    width: '250px',
    highresLinks: true,
    rel: 'pigallery',
    onComplete: function() {
      $('#piGal').css({ 'visibility': 'visible'});


      $('#piGal a').colorbox({
        maxHeight: '90%',
        maxWidth: '90%',
title: '<?php echo $product_info['products_name']; ?>',
        rel: 'pigallery'
      });


      $('#piGal img').each(function() {
        var imgid = $(this).attr('id').substring(9);


        if ( $('#piGalDiv_' + imgid).length ) {
          $(this).parent().colorbox({ inline: true, href: "#piGalDiv_" + imgid });
        }
      });
    }
  });
});
</script>
<?php echo stripslashes($product_info['products_description']); ?>
  • 2 months later...
Posted

Anyone know how to remove the "image 1 or 5" text on the popup? I've looked and can't quite find it's source.

Posted

Found it. Right where it's suppose to be! Imagine that. :) It's in the jquery.colorbox-min. js file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...