PDA

View Full Version : Pixelpost 1.7.1 and Lightbox


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...

pat-design
04-12-2008, 07:04 PM
Arr, one hour of testing, then asking somewhere and some minutes after that the solution... :D

I only had to change '$PHP_SELF?showimage=$id' to '/images/$name', now it refers to the imagefile and Lightbox can load it! ^^

pat-design
04-12-2008, 07:31 PM
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.