pat-design
04-12-2008, 06:37 PM
I'm redesigning my page and want to use Lightbox2 if you click on a thumbnail at the browser page but theres a problem with the image-code from Pixelpost.
I changed the paged_archive.php to
$thumb_output .= "<a href='$PHP_SELF?showimage=$id' rel='lightbox' ><img src='".$thumbnail."' alt='".$title."' title='".$title."' width='".$local_width."' height='".$local_height."' class='thumbnails' /></a>";
to get the rel='lightbox' work.
Lightbox works fine with normal image-links but has problems with the image-link like href='index.php?showimage=17', Lightbox starts but can't load the image.
To change the code to something like href='images/<IMAGE_NAME> doesn't work, because that would be only text for every link and wouldn't change to the file name.
What to do? I don't know php well to get this work...
I changed the paged_archive.php to
$thumb_output .= "<a href='$PHP_SELF?showimage=$id' rel='lightbox' ><img src='".$thumbnail."' alt='".$title."' title='".$title."' width='".$local_width."' height='".$local_height."' class='thumbnails' /></a>";
to get the rel='lightbox' work.
Lightbox works fine with normal image-links but has problems with the image-link like href='index.php?showimage=17', Lightbox starts but can't load the image.
To change the code to something like href='images/<IMAGE_NAME> doesn't work, because that would be only text for every link and wouldn't change to the file name.
What to do? I don't know php well to get this work...