Recent Topics

[Plugin] Lightbox

Started by on Jun 02, 2007 – Contents updated: Jun 02, 2007

Jun 02, 2007 02:35    

Anyone got this one working on a blog yet? Still can't figure out how to get it running.
I've got it installed alright but getting it to work on posts...:'(

Jun 02, 2007 04:56

I can get it to link to the required image but not in lightbox format at all.. I deleted the plugin

Jun 02, 2007 11:31

Thanks for the info John. It's a pity it doesn't seem to work, it would have been a really cool addition to Orlando...

Jun 04, 2007 12:04

It works for me?


Blondes have all the fun

Jun 04, 2007 19:43

John wrote:

It works for me?


Blondes have all the fun

Ohhh yeah ;)

¥

Aug 09, 2007 23:15

I got it to work by changing

Code

$replace = "<a href=\"\\1\" rel=\"lightbox\" title=\"\\8\">\\9</a>";
to

Code

$replace = "<a href=\"\\1\" rel=\"lightbox\" title=\"\\8\">\\9<img src=\"\\1\" rel=\"lightbox\" title=\"\\8\"></a>";

in _lightbox.plugin.php

Hope this helps
J

Aug 12, 2007 22:11

in fact after a little bit of trial and error there's no need to do such correction:
i think the problem is that the instructions are not as clear as they could be: here's an example of what you can put in your post.

Code

[lightbox http://library.thinkquest.org/05aug/00183/How%20Hurricanes%20Impact%20the%20Reef_image002.jpg [Great Barrier Reef]]<img src="http://library.thinkquest.org/05aug/00183/How%20Hurricanes%20Impact%20the%20Reef_image002.jpg" alt="sdf" title="Great Barrier Reef" width="25%" height="25%"/>[/lightbox]

Nov 22, 2007 11:53

Im using b2evo 2.1.0

Sometime this plugin open the picture in a new window, how can i solve the problem?

Nov 22, 2007 15:39

catandtom,

I tested the lightbox plugin in a fresh 2.1.0 install. It seems to work for me. Are you sure that you are waiting until the page loads before clicking one the link? If the page isn't fully loaded then the javascript won't catch your click and there is, unfortunately, no way around it.

Nov 22, 2007 23:53

What basicly is the difference between lightbox 1 and 2 ????
Because in the setting, I found :

Use Lightbox2:
If this is checked then use Lightbox2. Changes take effect immediately.

Nov 23, 2007 04:21

Basically, Lightbox 2 has a bit more animation and allows you to have photo "groups" so you can click next and got to the next photo etc. But it runs kinda slow sometimes so I kept Lightbox 1 support around.

Nov 23, 2007 06:06

IanLewis wrote:

catandtom,

I tested the lightbox plugin in a fresh 2.1.0 install. It seems to work for me. Are you sure that you are waiting until the page loads before clicking one the link? If the page isn't fully loaded then the javascript won't catch your click and there is, unfortunately, no way around it.

Yeah, i got it. We can wait but blog's visitors cant, it will open another page and leave my blog, what a pity!

Nov 24, 2007 10:18

catandtom,
Sorry, unfortunately your choices are use it as is, or don't use it at all.

Nov 25, 2007 08:14

Yet another one of my totally novice questions. When I extract the files there is no lightbox_plugin folder to move to the plugins folder. It seems to just extract 3 folders and an index page to my desktop. If I make a folder for them and put them in there and pove to plugins theres no plugin that shows to install. Im sure Im missing something!

Nov 25, 2007 10:36

Nicca619,

Huh? I really think you are missing something. You downloaded lightbox_plugin-1.3.zip and unzipped it and there is 3 folders and an index page? That makes no sense. The lightbox plugin has no index.html or index anything. Are you sure you are unzipping the right file? What program are you using to unzip it?

I downloaded and tested the zip file just to be sure and it looks ok to me.

Nov 26, 2007 02:50

Sorry I can be a bit cryptic in my frantic state :)

So I have lightbox2.03.3.zip and I right click it and select "extract here".

I then get these folders"
css
images
js

and this:
index.html

and As Im typing this I think I might have figured it out. Do I need lightbox first then I update with lightbox 2?

Nov 26, 2007 03:33

Nicca619,

I think you are unzipping the zip for lightbox itself. You don't need to do that.

Lightbox is included in the lightbox plugin. Get the lightbox plugin from [url=http://manual.b2evolution.net/Plugins/lightbox_plugin]here[/url]. Install it and you should be good to go. Follow the directions on the lightbox plugin page to include lightbox links in your posts.

Nov 26, 2007 06:28

Ok I just want to say your not allowed to laugh or point at me!

I was trying to install the lightbox 2 zip! I assumed since it was 2 it was a better and more recent version. I didnt realize it was an add on to the original light box, which when I downloaded I had found the pugin folder there.

Its now all warm and fuzzy snuggled in my plugins folder and installed!

Sorry for being a total ditz, must be the pregnancy hormones messing with my common sense!

Thank you for a fun plugin (just need to try it now)!

Nov 26, 2007 07:13

Nicca619,

Glad to hear you got on the right track! :) Hope the plugin works for you!

Apr 23, 2008 21:49

Ian,

How do you use grouping ?

Do I need to edit the lightbox renderer to allow something like the following.

Code

[lightbox IMAGE_URL RELGROUP [IMAGE TITLE]]LINK TEXT[/lightbox]

I can force the grouping by ammending the following in _lightbox.plugin.php :

Code

$replace = "<a href=\"\\1\" rel=\"lightbox\" title=\"\\3\">\\4</a>";

to something like:

Code

$replace = "<a href=\"\\1\" rel=\"lightbox[GROUP]\" title=\"\\3\">\\4</a>";

However this then makes all images part of the same group, it'd be nice to be able to have multiple groups per page. Do you have any advice on how to get this working? </code>

Apr 25, 2008 05:31

Actually, grouping isn't supported with the renderer. I think simply adding the hrefs with the correct group tags is the best way to do this as I've previously deprecated the renderer support because it might affect forward-compatibility of blog posts and writing the links in html isn't a lot different from writing the links in the renderer's style anyway.


Form is loading...

Content Mangement System – This forum is powered by b2evolution CMS, a complete engine for your website.