Lightbox plus integrated into usergallery...

Creating and modifying plugins.
Post Reply
fsk141
Posts: 2
Joined: Tue Feb 19, 2008 12:14 am

Lightbox plus integrated into usergallery...

Post by fsk141 »

Hello,
I'm currently using the usergallery plugin: http://fsk141.com/fsk141/pages/gallery. ... /2mc/case/
and I was wondering a way that I can have the images open up in lightbox plus. I would like this so I don't have to resize my images, since lightbox plus does it automatically. I tries the lightbox plugin and it didn't work. I think this is because gallery uses javascript to open up the images. I would really appreciate any help on this, and if anyone has working code, I would love to take a look at it.
Thanks, Jonny
Linus
Regular
Posts: 66
Joined: Mon Mar 06, 2006 1:59 pm
Location: Mannheim
Contact:

Post by Linus »

Hi,
I´ve done this once. Open up /plugins/serendipity_event_usergallery/plugin_usergallery.tpl
Search for the Show Thumb comment
After the comment theres a <a href...>
This is mine:
<a href="{$image.fullimage}" rel="lightbox[1]">
See in action here:
http://www.tv-philippsburg.de/index.php ... ungsfotos/
Andi
Linus
Regular
Posts: 66
Joined: Mon Mar 06, 2006 1:59 pm
Location: Mannheim
Contact:

Post by Linus »

I forgot to mention that rel="lightbox[1]" enables the navigation in lightbox (by moving the cursor over the left/right side of the picture). Since I don´t know if lightbox plus supports this, you should try the simple rel="lightbox" if it won´t work.
fsk141
Posts: 2
Joined: Tue Feb 19, 2008 12:14 am

Post by fsk141 »

would you mind sending me your code at fsk141@gmail.com, I tried to get it to work, and it was resilient to be that easy. And possibly paste the correct lines into the forum?
Thanks, Jonny
Post Reply