Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 04-25-2007, 01:35 AM
trebor31 Offline
pp regular
 
Join Date: Jan 2007
Posts: 21
Lightbox 2 with PP 1.6 - anyone got it working?

Hi
Have just upgraded to PP 1.6 and wanted to include Lightbox 2 as I was using before.

But, the line of code you have to hack in "index.php" is no longer there to hack!!

So, any thoughts or instructions much appreciated.

FYI in PP 1.5 it was this line of code that was changed:

Code:
$thumb_output .= "<a href='images/$name' rel='lightbox[views]' title='$title'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
Anyone know what the equivilant is in PP1.6? Or how else to edit the links used by the thumbnails on the browse page?
Reply With Quote
  #2  
Old 04-25-2007, 02:09 AM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Depending on how you have you photoblog setup, one of the entries below should be what you are looking for.

Check out index.php lines:
552 & 553
570 & 571

addons/paged_archive.php line:
337
__________________
Jay Williams | A Different View
Reply With Quote
  #3  
Old 04-25-2007, 03:27 AM
trebor31 Offline
pp regular
 
Join Date: Jan 2007
Posts: 21
Thanks for the help Jay.
Unfortunately applying the similar hack as used in 1.5 does not work with any of those lines or any combination of them.
Basically, I need the "output" links that the thumbnails use to get to the large image to include the following in them so that the browser fires Lightbox:

rel='lightbox ' title='$title'

any thoughts on how to incorporate this. And should I use 'single quote marks' or "double" ?

Thanks again
Reply With Quote
  #4  
Old 04-25-2007, 06:19 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
\includes\functions_browse.php line 87
HTH
KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #5  
Old 04-25-2007, 02:10 PM
trebor31 Offline
pp regular
 
Join Date: Jan 2007
Posts: 21
Thats the one! Thanks very much KArin.

For anyone else wanting to use Lightbox:

In: \includes\functions_browse.php at line 87 you will find this:

$thumb_output .= "<a href=\"$showprefix$id\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";

Change it to this:

$thumb_output .= "<a href='images/$name' rel='lightbox' title='$title'><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";

Note, if you just change it to the above line Lightbox will only load a single image - no previous / next links.

Instead, if you want to be able to go to previous and next (for your entire blog) you need to add a grouping tag also, so change the line to this:

$thumb_output .= "<a href='images/$name' rel='lightbox[group]' title='$title'><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";
}

Finally this bit: title='$title' is optional - it shows the name of the shot at the bottom of the Lightbox panel. If you do not want this you can remove this part of the tag.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:02 AM.

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