SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbox Problems

    Hi,

    I have a problem with lightbox, it won't work. I've used it before, but have to fix it n another website which calls the images from a php file. (I know...)

    Here is the lightbox page:
    Code HTML4Strict:
    <link href="http://www.coffee-tv.co.uk/styles/lightbox.css" type="text/css" rel="stylesheet" media="screen" />
     
    <script src="http://www.coffee-tv.co.uk/js/prototype.js" type="text/javascript"></script>
    	<script src="http://www.coffee-tv.co.uk/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
        <script src="http://www.coffee-tv.co.uk/js/lightbox.js" type="text/javascript"></script>
     
    <fieldset><legend>Main Images</legend><div id="mainImage"><a href="http://www.domain.co.uk/image-product-coffee-table-ctvfp025-fp0251-m-8761122616-8840373809.php" rel="lightbox" title="Traditional Style Coffee Tables ~ fp-025-1"><img src="http://www.domain.co.uk/image-product-coffee-table-ctvfp025-fp0251-m-8761122616-8840373809.php" title="Traditional Style Coffee Tables (CTV-FP025) ~ fp-025-1" /></a></div></fieldset><fieldset><legend>More Image</legend><ul id="moreImages"><li class="noSpace"><a href="http://www.domain.co.uk/image-product-coffee-table-ctvfp025-fp0251-m-8761122616-8840373809.php" rel="lightbox" title="Traditional Style Coffee Tables (CTV-FP025) ~ fp-025-1"><img src="http://www.domain.co.uk/image-product-coffee-table-ctvfp025-fp0251-s-8761122616-8840373809.php" title="Traditional Style Coffee Tables (CTV-FP025) ~ fp-025-1" /></a></li>etc...</ul></fieldset>

    and the PHP which gives the images:
    PHP Code:
    <?php    
        
        $strSize 
    UrlData("hdnSize"500"");
        
    $strProduct UrlData("hdnProduct"500"");
        
    $strImage UrlData("hdnImage"500"");
            
        
    $strSize substr($strSize01);    
        if (
    $strProduct != "") {
            
    $intProductID = (preg_match("/\d{4}(\d+)\d{4}/"$strProduct$aryMatches)) ? $aryMatches[1] : 0;
            
    $intImageID = (preg_match("/\d{4}(\d+)\d{4}/"$strImage$aryMatches)) ? $aryMatches[1] : 0;
            
            
    $strFilename $strSize "-" $intProductID "-" $intImageID ".jpg";        
        } else {
            
    $strFilename $strSize "-no-image.jpg";
        } 
    //end if
        
        
    DownloadFile(DIR_IMAGE_PRODUCTS $strFilename);
    ?>
    Any ideas why it won't work. The images just try to download to the pc when clicked on. I was thinking maybe its because the images are a php file??

    Cheers,
    Rhys

  2. #2
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, it was mootools.js.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •