• Notice regarding image hosts and attachments. See here.

Thickbox (etc) and phpThumb

Soldato
Joined
14 Feb 2006
Posts
4,643
Location
Surrey, UK
Hi all,

Right, so I'm using phpThumb to generate a smaller version of an image I have. As such:

PHP:
echo "<a href='../phpthumb/phpThumb.php?src=../images/".$ticketid.".jpg&w=640&h=480' class='thickbox' title='Image for ".$ticketid."'>";
echo "<img src='../phpthumb/phpThumb.php?src=../images/".$ticketid.".jpg&q=25&w=200' border='0'><br>";
echo "</a>";

As you can see, the <a> has a class of thickbox, and so the image with width 640 and height 480 should open in a Thickbox (similar to lightbox) style window.

However, what I get is this:

2004810601806324288_rs.jpg


However, when I just ask the script to print the image directly to the page, it works fine! As in, something like:
Code:
<img src="../phpthumb/phpThumb.php?src=../images/T88734670.jpg&q=640&w=480" />

Any ideas what's going on here?

Thanks in advance,

Jon
 
Last edited:
Back
Top Bottom