Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 04-12-2008, 06:37 PM
pat-design Offline
forum loafer
 
Join Date: Apr 2008
Posts: 5
Unhappy Pixelpost 1.7.1 and Lightbox

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>";
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...
Reply With Quote
  #2  
Old 04-12-2008, 07:04 PM
pat-design Offline
forum loafer
 
Join Date: Apr 2008
Posts: 5
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! ^^
Reply With Quote
  #3  
Old 04-12-2008, 07:31 PM
pat-design Offline
forum loafer
 
Join Date: Apr 2008
Posts: 5
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.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:20 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs