|
#1
|
|||
|
|||
|
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 Code:
$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>"; 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... |
|
#2
|
|||
|
|||
|
Arr, one hour of testing, then asking somewhere and some minutes after that the solution...
![]() I only had to change '$PHP_SELF?showimage=$id' to '/images/$name', now it refers to the imagefile and Lightbox can load it! ^^ |
|
#3
|
|||
|
|||
|
Another post, another question:
Is it possible to change the title-length, there is somewhere a maximum length of 150 characters for the image title, if i could write some notes into the title (so i would have a long title, but thats no problem), it would be ok for me. Last edited by pat-design; 04-13-2008 at 01:09 AM. |
| Post Reply |
| Thread Tools | |
|
|