|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
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>"; 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" />
__________________
keoshi.com :: unleash your imagination |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
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>"; Code:
$thumb_output .= "<a href='images/<IMAGE_NAME>' rel='lightbox'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>"; Cheers
__________________
keoshi.com :: unleash your imagination |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
you probably want <IMAGE_NAME> to be $image_name
__________________
Affordable Website Design in North Wales |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
can nobody help me?
|
|
#9
|
||||
|
||||
|
it works with:
Code:
$thumb_output .= "<a href='images/$name' rel='lightbox'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>"; look here for example regards, tom. |
|
#10
|
|||
|
|||
|
Quote:
__________________
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 |
| Post Reply |
| Thread Tools | |
|
|