|
#1
|
|||
|
|||
|
Lightbox
Hi,
I want to use lightbox for my browsepage. I am using pixelpost 1.7 and I know that there is already some threads about this but that seems to be for older versions like here http://www.pixelpost.org/forum/showt...light=lightbox because I am not a wiskid with this sort of things I wonder if somebody could help me with this. Thanks in advance I like to install it on this page: http://www.andrebouwhuis.nl/index.ph...owse&pagenum=1 |
|
#2
|
||||
|
||||
|
Like I said in the Dutch part of the forum: first you need to establish which Lightbox implementation you want to use.
You mentioned in that thread: I don't care, any implementation will do. This is way to general to help you with this. I'm more than willing to help you but I do not have the time to select an implementation, modify the core code (which is probably only an addition to the paged_archive addon) only to hear that you'd rather had something else. So in conclusion: please say: I want to use THIS implementation, how can I do that? In that case I'll be more than happy to help you with the implementation (or at least give general pointers as my spare time is increasingly diminishing). Have you tried these posts? http://www.pixelpost.org/forum/showt...light=lightbox
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#3
|
|||
|
|||
|
wich lightbox
I understand what you said about to be more specific about the lightbox i want to use and i did some searching on the net and found this
http://www.lokeshdhakar.com/projects/lightbox2/ this is called lightbox 2 so if you can get me on track with this that would be wonderful. In the other tread I found this but in version 1.7 (wich I use) I can not finf the row starting with: $thumb_output .= "<a href=\"$showprefix$id\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>"; I understand that I would have to replace that line with: $thumb_output .= "<a href='images/$name' rel='lightbox[views]' title='$title'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>"; But this code was for pixelpost 1.6 |
|
#4
|
||||
|
||||
|
Open following file with an editor:
Code:
includes/functions_browse.php there is only one line starting with: PHP Code:
PHP Code:
|
|
#5
|
|||
|
|||
|
lightbox
Hi Günter, thanks for the reply. I have found the line that you say i have to change, this is the full line:
$thumb_output .= "<a href=\"$showprefix$id\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" width=\"$local_width\" height=\"$local_height\" class=\"thumbnails\" /></a>"; What do I have to do? Add a line ore chage it? Sorry but I'am not so good at this things (I have other qaulitys ;-)) |
|
#6
|
||||
|
||||
|
I just posted it below and you there is detailed info about it on their website: http://www.lokeshdhakar.com/projects/lightbox2/
anyway.. PHP Code:
|
|
#7
|
||||
|
||||
|
PHP Code:
|
|
#8
|
|||
|
|||
|
lightbox
Hi Günter,
I added the line in the includes/functions_browse.php file and loaded the lightbox files into the root of the pixelpost installation folder and added the following lines in the browse template in the templates folder of dark matter: <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> But nothing happens its not working. Last edited by André Bouwhuis; 03-02-2009 at 07:21 AM. Reason: additional information |
|
#9
|
|||
|
|||
|
I finally found the solution after a lot of searching. I changed the paged_archive.php
this line $thumb_output .= "<a href='images/$name'=$id' rel='lightbox' ><img src='".$thumbnail."' alt='".$title."' title='".$title."' width='".$local_width."' height='".$local_height."' class='thumbnails' /></a>"; Its working fine now. The only thing is that its not showing "NEXT" en "PREV" maybay somebody know the answer to that? |
|
#10
|
||||
|
||||
|
you don't like reading huh?
Quote:
PHP Code:
|
| Post Reply |
| Thread Tools | |
|
|