Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 04-30-2006, 01:19 AM
blimmer's Avatar
blimmer Offline
pp regular
 
Join Date: Nov 2005
Posts: 37
Lightbox fullsize mod for browse page

Would anyone be able to help with a modification of se.nsuo.us's Lightbox addon for use in the browse page? ie. clicking on one of the thumbnails in http://photo.blimmer.org/index.php?x=browse will bring up the lightbox

I've contacted se.nsuo.us and upon his suggestion I decided to try asking here.

Cheers and thanks in advance
__________________
photoblimmer
Reply With Quote
  #2  
Old 04-30-2006, 01:54 PM
keoshi Offline
pp regular
 
Join Date: Oct 2004
Location: Portugal
Posts: 47
Send a message via ICQ to keoshi Send a message via AIM to keoshi Send a message via Yahoo to keoshi
Assuming you're talking about this or this it should be real simple.

1 - edit your index.php and on line 535 replace this:
Code:
$thumb_output .= "<a href='$showprefix$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
for this:
Code:
$thumb_output .= "<a href='$showprefix$id' rel='lightbox'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";

2 - Add to your browse_template.html header the following (considering you're using Lightbox JS v2.0):
Code:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
3 - lastly, upload all the files and images of Lightbox zip and double-check paths
__________________
keoshi.com :: unleash your imagination
Reply With Quote
  #3  
Old 05-01-2006, 07:33 AM
blimmer's Avatar
blimmer Offline
pp regular
 
Join Date: Nov 2005
Posts: 37
thanks. i tried it out with a variant of lightbox, thickbox and it brings up the animation and reverts back to the page of the particular image.

that wasnt what i had in mind but i appreciate the help. cheers
__________________
photoblimmer
Reply With Quote
  #4  
Old 05-01-2006, 12:50 PM
keoshi Offline
pp regular
 
Join Date: Oct 2004
Location: Portugal
Posts: 47
Send a message via ICQ to keoshi Send a message via AIM to keoshi Send a message via Yahoo to keoshi
I didn't try it with pixelpost but I have some experience with this JS and it works very well...

The problem is that it's linking directly to the page, not to the image.

I forgot that minor detail :P

Replace in the original index.php file this:
Code:
$thumb_output .= "<a href='$showprefix$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
for this:

Code:
$thumb_output .= "<a href='images/<IMAGE_NAME>' rel='lightbox'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
Please, bear in mind that the browse page will then be useless to really browse through your pictures. One simple solution would make a second 'browse' page just to this effect.

Cheers
__________________
keoshi.com :: unleash your imagination
Reply With Quote
  #5  
Old 06-15-2006, 02:29 PM
Opa114 Offline
pp regular
 
Join Date: Jun 2006
Posts: 24
Hey!

If done it, like you described it koeshi, but i didn't work. It doesn't load the images when i click on the thumbnails.

http://opa114.pytalhost.de/pixelpost/index.php?x=browse
Reply With Quote
  #6  
Old 06-15-2006, 02:38 PM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
you probably want <IMAGE_NAME> to be $image_name
Reply With Quote
  #7  
Old 06-15-2006, 02:52 PM
Opa114 Offline
pp regular
 
Join Date: Jun 2006
Posts: 24
i had id changed, but there was nothig other. The same problem.

Where must i upload all the lightbox files? Maybe is the error there ?

Last edited by Opa114; 06-15-2006 at 03:33 PM.
Reply With Quote
  #8  
Old 06-15-2006, 06:20 PM
Opa114 Offline
pp regular
 
Join Date: Jun 2006
Posts: 24
can nobody help me?
Reply With Quote
  #9  
Old 08-13-2006, 08:30 PM
tomyeah's Avatar
tomyeah Offline
pp veteran
 
Join Date: Aug 2006
Posts: 74
Send a message via ICQ to tomyeah
it works with:

Code:
$thumb_output .= "<a href='images/$name' rel='lightbox'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
for me. just need to solve the problem with oversized pics somehow.

look here for example

regards, tom.
Reply With Quote
  #10  
Old 08-16-2006, 02:22 PM
k3v Offline
forum loafer
 
Join Date: Aug 2006
Location: Toronto
Posts: 13
Quote:
Originally Posted by Opa114
Hey!

If done it, like you described it koeshi, but i didn't work. It doesn't load the images when i click on the thumbnails.

http://opa114.pytalhost.de/pixelpost/index.php?x=browse
I tried this and had the same problem you did. The fix is to change the rel='lightbox' to something like rel='lightbox[browse]' where browse can basically be anything you want.
__________________
I'm part of a group Photoblog from Toronto, Canada called HotPhotatos.

Group Photoblog: http://HotPhotatoes.photoquickies.com/
Only My Photos: http://HotPhotatoes.photoquickies.com/k3v
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:48 PM.

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