Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 02-27-2009, 07:10 AM
André Bouwhuis Offline
pp regular
 
Join Date: Jun 2008
Posts: 31
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
Reply With Quote
  #2  
Old 02-27-2009, 10:05 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
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
Reply With Quote
  #3  
Old 02-28-2009, 01:53 PM
André Bouwhuis Offline
pp regular
 
Join Date: Jun 2008
Posts: 31
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
Reply With Quote
  #4  
Old 02-28-2009, 02:38 PM
Günter's Avatar
Günter Offline
forum loafer
 
Join Date: Feb 2009
Posts: 6
Open following file with an editor:
Code:
includes/functions_browse.php

there is only one line starting with:
PHP Code:
$thumb_output .= "<a href 
just add to the a-tag:
PHP Code:
$thumb_output .= "<a rel=\"lightbox[views]\" title=\"$title\" href 
and keep the rest untouched
Reply With Quote
  #5  
Old 02-28-2009, 05:47 PM
André Bouwhuis Offline
pp regular
 
Join Date: Jun 2008
Posts: 31
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 ;-))
Reply With Quote
  #6  
Old 02-28-2009, 08:25 PM
Günter's Avatar
Günter Offline
forum loafer
 
Join Date: Feb 2009
Posts: 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:
$thumb_output .= "<a href=\"$showprefix$id\" rel=\"lightbox[views]\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" width=\"$local_width\" height=\"$local_height\" class=\"thumbnails\" /></a>"
should most probably do it..
Reply With Quote
  #7  
Old 03-01-2009, 08:25 PM
Günter's Avatar
Günter Offline
forum loafer
 
Join Date: Feb 2009
Posts: 6
PHP Code:
$thumb_output .= "<a href=\"$showprefix$id\" rel=\"lightbox[views]\" title=\"$title\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" width=\"$local_width\" height=\"$local_height\" class=\"thumbnails\" /></a>"
Reply With Quote
  #8  
Old 03-02-2009, 06:16 AM
André Bouwhuis Offline
pp regular
 
Join Date: Jun 2008
Posts: 31
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
Reply With Quote
  #9  
Old 03-02-2009, 11:53 AM
André Bouwhuis Offline
pp regular
 
Join Date: Jun 2008
Posts: 31
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?
Reply With Quote
  #10  
Old 03-02-2009, 04:05 PM
Günter's Avatar
Günter Offline
forum loafer
 
Join Date: Feb 2009
Posts: 6
you don't like reading huh?

Quote:
If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute. For example:

HTML Code:
<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
e.g.
PHP Code:
$thumb_output .= "<a href='images/$name'=$id' rel='lightbox[foobar]' ><img src='".$thumbnail."' alt='".$title."' title='".$title."' width='".$local_width."' height='".$local_height."' class='thumbnails' /></a>"
Reply With Quote
Post Reply


Thread Tools




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

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