forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: jeepguy_1980 on April 13, 2009, 06:40:40 pm

Title: LightBox Slideshow Plugin
Post by: jeepguy_1980 on April 13, 2009, 06:40:40 pm
I have converted Sawey's (http://forum.coppermine-gallery.net/index.php?action=profile;u=40798) mod, LightBox JS for Full Size Popup Slideshow (http://forum.coppermine-gallery.net/index.php/topic,49596.0.html), into a plugin.  This is my first attempt to do any work in PHP, so I cannot really support this plugin.  As I learn more about PHP, I expect to enhance this plugin with a configuration panel.

v1.1 - Renamed for standards compliance, removed unneeded files, added readme.txt, modified credits
v1.2 - Fixes conflict with Nibbler's Displaying videos from Youtube in Coppermine (http://forum.coppermine-gallery.net/index.php/topic,37962.msg178982.html#msg178982) that caused videos to appear as pictures only.
v1.3 - Fixes random problem.  Contributed by pie86 (http://forum.coppermine-gallery.net/index.php/topic,49596.msg306924.html#msg306924)
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on April 13, 2009, 07:37:40 pm
Thanks for your contribution - a very valid and welcome one. I have only applied some minor tweaks (renamed for standards compliance, removed unneeded files, added readme.txt, modified credits) and re-packaged. Please use the version I have packaged for your future edits.

Download

Joachim

P.S. Added to plugins page (http://coppermine-gallery.net/plugins.php#light-box_cpg14x) as well


[Edit GauGau 2010-03-05]
This plugin has been added to the subversion repository: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.4.x/plugins/

It has been updated as well to reflect the version checking routines in the plugin manager that are meant to make sure that galleries don't break because of plugins installed that aren't meant for that particular version of the gallery.

Download: https://sourceforge.net/projects/coppermine/files/Plugins/1.4.x/cpg1.4.x_plugin_light-box_v1.4.zip/download
[/Edit]
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on April 14, 2009, 12:26:32 am
Fantastic! Very well done. Thank You
Running here i-imagine.net (http://i-imagine.net/artists/index.php) and here http://gallery.josephcarver.com/natural/ (http://gallery.josephcarver.com/natural/)
i-imagine
(notes from a newbie:1) ie7 shows "error on page" - 'document.getElementById(...)'is null or not an object, does not appear to affect function 2) (off topic) had to remove comments recaptcha mod. due to ie7 crash, but no crash with FF and Opera(/off topic) Thanks Again
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on April 14, 2009, 10:03:02 am
Thanks for this plugin version, installed and works very nicely.

Is there a way to remove the "Click here to save a version of this image" link?   Not wanting to encourage people to steal my members images etc.  What file would I have to edit, and how please.

Thanks again.  ;)

www.cameracraniums.com
Title: Re: LightBox Slideshow Plugin
Post by: Timos-Welt on April 14, 2009, 12:09:52 pm
This one is really beautiful! Thanks for it!
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on April 14, 2009, 01:50:10 pm


Is there a way to remove the "Click here to save a version of this image" link?   

open js/lightbox_s.js

replace:
Code: [Select]
// if image is part of set display 'Image x of x'
if(imageArray.length > 1){
Element.show('numberDisplay');
Element.setInnerHTML( 'numberDisplay', "Image " + eval(activeImage + 1) + " of " + imageArray.length + "<br><a target=_blank href=" + imageArray[activeImage][0] + ">Click here to save a version of this image</a>");
}

with:

Code: [Select]
// if image is part of set display 'Image x of x'
if(imageArray.length > 1){
Element.show('numberDisplay');
Element.setInnerHTML( 'numberDisplay', "Image " + eval(activeImage + 1) + " of " + imageArray.length);
}
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on April 14, 2009, 07:33:40 pm
Many thanks Jeepguy, that fixed it a treat.  ;)
Title: Re: LightBox Slideshow Plugin
Post by: Davide Renda on April 15, 2009, 11:46:13 pm
First of all, thanks and chapeau bas for the great work.
I have an issue on my gallery, when clicking on last addictions and/or recently seen images, instead of "landing" in the intermediate page, I get a 500 Internal Server Error. It may be a kind of conflict with the EnlargeIt! plugin; which I have set only active for unregistered users.
I'll make a few tests tomorrow, now it's too late and need some rest...!
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on April 16, 2009, 08:44:33 am
I'm pretty sure that this plugin and enlargeIt will create conflicts. I recommend deciding for one of them. An internal server error is what the name suggests - we can't tell what is wrong. The webserver admin (i.e. your webhost) should take a look at the server's log to figure out what is actually wrong, i.e. what causes the error 500.
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on April 16, 2009, 06:39:28 pm
I'm pretty sure that this plugin and enlargeIt will create conflicts. I recommend deciding for one of them. An internal server error is what the name suggests - we can't tell what is wrong. The webserver admin (i.e. your webhost) should take a look at the server's log to figure out what is actually wrong, i.e. what causes the error 500.

I have the enlargeIt plugin installed at the same time, and no problems.   That said, I only have enlargeIt enabled for the slider plugin that I'm using ;)
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on April 16, 2009, 08:57:42 pm
lurkalot, Nice gallery, you have a lot going on.  You might want to check your random images on your gallery page. I had the same effect. Also (from very little experience) you might want to look at your error logs in the LightBox plugin directory. The ie errors I saw in my browser (see above) might have something to do with what I saw logged on the server (guess and only guess is that it has something to do with the counter) I got 1.5Mb of error log in <24 hours.
Code: [Select]
PHP Warning:  require(include/init.inc.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/..../public_html/artists/plugins/light_box/addhit.php on line 4
PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
It might have been related to the js conflict
/////////post edited here///////////
I was working on this when you replied! (and don't want to add another post)
Try clicking one of your /randoms/ they didn't work from here.
Code: [Select]
Critical error
There was an error while processing a database query
This is what I have so far, sorry for the short first post, maybe this will cover what I know.
There were 3 effects that I saw: 1) ie7  "error on page" 2) /random/ thumbs gave db error and 3)  javascript from my captcha mod crashed ie (only ie) I saw similar (ie effect) on your site. IE did behave ok for one or two page views after a cache clean. but always got lost with the other js running.
My "fix" wasn't much, since I was concerned about the conflict with the other js I decided to at least first fix the ie error and move on. I have not yet returned  to fix my fix, but for what it is worth I disabled the counter like this.
Quote
in file lightbox_s.js find this and remove everything to where shown
Code: [Select]
var saveSlideShowHeight;
// -------------------------------------------
       REMOVED function download_counter(id){
//
// Additional methods for Element added by SU, Couloir

I also removed the file addhit.php The error in ie then went away. My other problem did not. I did not want to tell you to check your logs with nothing else...The good thing is that I was driven to clean up the captcha mod. that now works happily with the LightBox plugin. I think there was reference in the original thread http://forum.coppermine-gallery.net/index.php/topic,49596.0.html (http://forum.coppermine-gallery.net/index.php/topic,49596.0.html)  There is probably a better fix than my "axe first" approach.  Try one of my galleries with ie and you will not see the triangle. i-imagine.net (http://i-imagine.net/artists/index.php)  or  gallery.josephcarver.com/natural/  (http://gallery.josephcarver.com/natural/)

i-imagine
 
Hey jeepguy_1980, Great plugin! (low cpu load for user and it instantly improved my galleries)
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on April 16, 2009, 11:29:39 pm
lurkalot, Nice gallery, you have a lot going on.  You might want to check your random images on your gallery page. I had the same effect. Also (from very little experience) you might want to look at your error logs in the LightBox plugin directory. The ie errors I saw in my browser (see above) might have something to do with what I saw logged on the server (guess and only guess is that it has something to do with the counter) I got 1.5Mb of error log in <24 hours.
jeepguy_1980, Nice plugin. I'm not sure if you are aware of those two effects. I'm still learning how this works, and how much I like it too!

Thanks.   I see the Error your talking about now.  I missed that little warning triangle at the bottom left of my browser. IE7

It shows the same as you,

Line: 183
Char: 7
Error: 'document.getElementById(...)'is null or not an object
Code: 0

Not sure what you mean about my Random images, they look fine to me.  And I can't find a error log in the lightbox directory.  :-[
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on April 18, 2009, 02:58:46 pm
The plugin seems to have a negative effect on /random/.  I also saw the negative effect while trying the Slider mod. Instead of an image when a random thumb was clicked the return value was
Quote
Critical error
There was an error while processing a database query

There seems to be a fix see: gallery.josephcarver.com/natural/ (http://gallery.josephcarver.com/natural/) I have enabled /random/ at the bottom of the page. Feedback for any observed trouble/errors is greatly appreciated.

The fix is in the original thread (http://forum.coppermine-gallery.net/index.php/topic,49596.0.html) for the LightBox mod.
Quote
Step 7. Making sure the random images are shown:
These changes are in include/functions.inc.php.

Quote from: Nibbler on January 28, 2007, 08:43:13 PM
I don't know if this is a bug or not, doesn't cause problems on its own.

Code: [Select]
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() LIMIT $limit2";
change to

Code: [Select]
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit";

Quote
In your file include/functions.inc.php find
Code: [Select]
               $query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit_random";
Quote
Change to:
Code: [Select]
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit";

Random thumbs  now lead to their respective intermediate page instead of the error. So far no other effects from this change have been observed.
i-imagine
(functions.inc.php mod. also implemented here i-imagine.net (http://i-imagine.net/artists/index.php)  this plugin is too good to resist!)


Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on April 18, 2009, 06:41:25 pm
i-imagine

Thanks for that info.  I've edited my functions.inc.php file, and that seems to have fixed my random images problem.  Nice one.  ;)
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on April 18, 2009, 06:45:16 pm
I never played around with that option, b/c I don't have mine setup for random. But looking at that part of the functions.inc.php, there appears to be a hookpoint there. So, I might be able to add this to the plugin and prevent manual code hacks.

I'm still working on trying to create a configuration page.
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on April 18, 2009, 06:57:44 pm
I never played around with that option, b/c I don't have mine setup for random. But looking at that part of the functions.inc.php, there appears to be a hookpoint there. So, I might be able to add this to the plugin and prevent manual code hacks.

I'm still working on trying to create a configuration page.

Thanks jeepguy_1980

Did you see the IE7 error mentioned above?

Quote
Thanks.   I see the Error your talking about now.  I missed that little warning triangle at the bottom left of my browser. IE7

It shows the same as you,

Line: 183
Char: 7
Error: 'document.getElementById(...)'is null or not an object
Code: 0

Anything you can do about that one?  ;) 

The config page sounds good, can't wait to try it out.
Title: Re: LightBox Slideshow Plugin
Post by: François Keller on April 26, 2009, 10:59:04 pm
great plugin

haw can i have a longer time betwen two pictures. it's to short for me ?
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on April 26, 2009, 11:33:33 pm
Look in here: lightbox_s.js

for this line
Code: [Select]
var loopInterval = 3000; // image swap interval

It is a great plugin!
Title: Re: LightBox Slideshow Plugin
Post by: François Keller on April 27, 2009, 07:20:27 am
ok thank's for the tip  ;) (I was looking into this file, but was missing this line  :-\)
Title: Re: LightBox Slideshow Plugin
Post by: tarako moka on April 28, 2009, 10:32:36 am
very wonderful.

Can this reflect the display count of the image?

sorry. The translation site is used.
Title: Re: LightBox Slideshow Plugin
Post by: tarako moka on April 28, 2009, 10:37:46 am
very wonderful.

Can this reflect the display count of the image?

I'm sorry. The translation site is used.
Title: Re: LightBox Slideshow Plugin
Post by: Imustbethick on May 02, 2009, 02:00:24 am
Hi guys,
I am afraid my username is very apt as I have a problem I have spent the past 3 days trying to resolve. I have downloaded this plugin (cpg1.4.x_plugin_light-box_v1.1.zip) and followed the installation instructions on thread http://forum.coppermine-gallery.net/index.php/topic,49596.0.html (http://forum.coppermine-gallery.net/index.php/topic,49596.0.html) post #1 unfortunately nothing at all changes on my gallery and I do not get the slideshow that this plugin is supposed to enable. When I click on one of my random files on the gallery home page I get the message
Quote
Critical error There was an error while processing a database query

I have searched the forums looking for an answer before posting here without any luck I eventually realised there are 2 different lightbox modifications but still have not been able to get the plugin to work (I am aware this is my fault as I have seen it working in the demo's and on other sites as I said I have searched these forums without success.

Obviously I am not installing the plugin correctly unfortunately I am a complete newbie in this field so do not know where I am going wrong (I have never programmed anything previously and do not understand html or php so all I have done is attempt to follow the instructions I have found.

My gallery is a completely new installation as I have previously been using "Gallery2" and even tried "JAlbum" but whilst both the other packages worked there were major drawbacks with both so I deleted my whole installations and reinstalled everything using Coppermine gallery as my gallery software package.

Any assistance you can offer would be gratefully received even if it is only to tell me how to install the plugin properly. In case it makes any difference I am using a modified X-Treme theme which I also downloaded from this site.

Thanks in advance
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on May 02, 2009, 02:12:22 am
Remember the next time you ask for help that you should post a link to your gallery. With that said.

The "fix" for the random issue is in this very thread,  Here it is for you (http://forum.coppermine-gallery.net/index.php/topic,59013.msg291198.html#msg291198)
Title: Re: LightBox Slideshow Plugin
Post by: Imustbethick on May 02, 2009, 03:36:46 am
Many thanks for your reply, unfortunately now I have an even bigger problem in that I get the following message on a blank screen if I follow the instructions to update the theme.php and template.html
Quote
Fatal error: Cannot redeclare lightbox_list() (previously declared in /home/barry/public_html/pic_gallery/plugins/light_box/codebase.php:66) in /home/barry/public_html/pic_gallery/themes/MyExtremeRed/theme.php on line 936

I have backed up my original files and was therefore able to restore them getting me back to having a working gallery.
My Gallery can be found at http://www.rebelslair.co.uk/pic_gallery

Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on May 02, 2009, 04:13:35 am
There was no reason to follow the instructions from the other thread. Those instructions are for manually adding the code.  You should not have edited any of your gallery files.
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on May 02, 2009, 01:32:56 pm
Imustbethick - You followed the wrong link. It was to reference information in this thread that you are reading now. Fortunately you were wise enough to have backed up your originals. So perhaps this will  make it clear. To restore the availability of the random thumbs when using this plugin.

Quote
From i-imagine,  Posted on: April 18, 2009, 02:58:46 PM
  The plugin seems to have a negative effect on /random/.  I also saw the negative effect while trying the Slider mod. Instead of an image when a random thumb was clicked the return value was
Quote
Critical error
There was an error while processing a database query

There seems to be a fix see: gallery.josephcarver.com/natural/ I have enabled /random/ at the bottom of the page. Feedback for any observed trouble/errors is greatly appreciated.

The fix is in the original thread for the LightBox mod.
Quote
Step 7. Making sure the random images are shown:
These changes are in include/functions.inc.php.

Quote from: Nibbler on January 28, 2007, 08:43:13 PM
I don't know if this is a bug or not, doesn't cause problems on its own.

Code: [Select]
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() LIMIT $limit2";

change to

Code: [Select]

$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit";

Quote
In your file include/functions.inc.php find
Code: [Select]

                $query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit_random";


Change to:
Code: [Select]
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit";

Random thumbs  now lead to their respective intermediate page instead of the error. So far no other effects from this change have been observed.
i-imagine
It is the functions.inc.php that you will need to modify. Keep the good habit of having a backup. Maybe read this thread  completely before you start.

The link that you posted does not work.
Good Luck



Title: Re: LightBox Slideshow Plugin
Post by: Imustbethick on May 02, 2009, 04:47:55 pm
Once again thank you both for your assistance, I really appreciate it.

I apologise for the link not working, I actually had a server problem and my nameservers decided to fall over and die.

The site is now back online and the gallery is visible (unfortunately the plugin is still not working but I haven't given up yet... hence I am back again :'()

I have replaced all the files with originals and then installed the plugin package, I then edited the \include\functions.inc.php to incorporate the code change in you (i-imagine) post and replaced

line 1229:
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit_random";
with
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit";

My random images now work as normal but even though the lightbox slideshow plugin is installed (and shows as installed in the pluginmgr.php as follows)
Quote
Installed Plugins Operation
Name Light Box v1.1 Plugin announcement thread
Author Sander Weyens, pluginized by jeepguy_1980
Description This plugin will override the default popup that embeds the fullsize picture and it will show a nice Lightbox popup instead. It features a slideshow as well, you can navigate through the images in the selected album with the arrow keys or with your mouse. Expect a configuration menu in future versions. For now, edit the files as described in the support thread.

In case there was an issue with the theme I was using I also tried running coppermine in both classic and my altered copy of extremered theme (currently back on extremered)

Link:  http://www.rebelslair.co.uk/pic_gallery (http://www.rebelslair.co.uk/pic_gallery)
 
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on May 02, 2009, 04:59:44 pm
Upgrade - now, today! Your version is old, your site can be hacked.
Quote
<!--Coppermine Photo Gallery 1.4.16 (stable)-->

Read  this thread (http://forum.coppermine-gallery.net/index.php/topic,59247.0.html) , the docs and then upgrade before concerning yourself with a visual improvement to your site.
Title: Re: LightBox Slideshow Plugin
Post by: Imustbethick on May 02, 2009, 06:04:48 pm
Thanks for the heads up, I have done as you suggested and upgraded my gallery to the latest version before replying (Other than in this forum I had not linked or made the domain details known to anyone in the few days it has been online) but it is better to be safe than sorry.

As you have now had a look at the gallery, have you any idea why I am having this problem with lightbox and what I can do o resolve it?

Thanks in advance.
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on May 02, 2009, 06:23:58 pm
Problem?  I have now just viewed a few of your pics using the slideshow!
It opens up just fine when you click on the intermediate size image.
Your theme is a bit unfamiliar to me, but the Lightbox Slideshow looked ok.

You might want to look at your edits though. I saw:
Quote
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit";
At the top of the pages....
And I can't say exactly why other than to say restart without any mods. and then proceed carefully.




It's a great plugin!
Title: Re: LightBox Slideshow Plugin
Post by: Imustbethick on May 02, 2009, 08:14:23 pm
I just wanted to thank you for all your time and patience.

I have resolved the
Quote
$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit";
that was at the top of the gallery page, it was as you thought a simple error in my editing but its now fixed :) and the slideshow works from my intermediate pictures.

I wonder if you can help one further time, on your own gallery (http://i-imagine.net/artists/) you have a slideshow with reflections of the images underneath the slideshow at the top of the page, I thought that was part of lightbox, obviously it isn't or I haven't activated it.

Can you tell me what plugin that is and how to enable it on my own site please?

PS In case you didn't notice I meant THANK'S for your help.

Regards
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on May 02, 2009, 09:22:35 pm
You are very welcome. That one is a mod. called  Image Scroller - based on iTunes [link to Intermediate] (http://forum.coppermine-gallery.net/index.php/topic,48822.0.html) It is a modification, not a plugin, but has many options.
Title: Re: LightBox Slideshow Plugin
Post by: PixelPix on May 08, 2009, 01:28:03 pm
Excellent plugin guys thanks.

I have installed it within the latest version and it works well with one small exception.....

If I replace a file using File Replacer the slideshow image does not update when using Safari.  It updates fine in Firefox however.  Is it possible to force the image to update in Safari?

Cheers

Rusty
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on May 08, 2009, 05:01:59 pm
If I replace a file using File Replacer the slideshow image does not update when using Safari.  It updates fine in Firefox however.  Is it possible to force the image to update in Safari?
We don't provide browser support. Generally speaking: clear your browser's cache. In most browsers, you can perform a force-reload as well using [Ctrl]+[F5]. Not related to this plugin at all. Don't hijack this thread please.
Title: Re: LightBox Slideshow Plugin
Post by: PixelPix on May 08, 2009, 09:55:21 pm
Sorry, it was not meant as a hijack or as a request for browser support.  What I meant was...  Is it possible for the slideshow script to force the update.  Like a built-in no-cache or something?  So it wasn't a specific question about how to use my browser, I know how to do that, but more a question on making the plug-in more compatible for all users.

Sorry for the confusion.
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on May 09, 2009, 02:56:29 pm
Short answer: no, there is no way to do this.
Long answer: we don't provide browser support. Try the meta tags that have been designed to instruct the browser how long it should cache data and when it expires.Not related to this plugin though.

Please do not reply in this thread, as your issue is not related to this thread, but a generic, browser-related question.
Title: LightBox Slideshow Plugin (Javascript Error in IE7)
Post by: GuidoR13 on May 11, 2009, 06:27:41 pm
Regarding those JS error in IE7 (Line: 183, Char: 7, Error: 'document.getElementById(...)'is null or not an object, Code: 0) the reason lies in line 183 of lightbox_s.js:

Code: [Select]
document.getElementById("target").innerHTML=xmlHttp.responseText;
There's no element with ID target.

My solution, I just commented the whole line out and AFAIK it works.

Thank's for this plugin.
Title: Re: LightBox Slideshow Plugin
Post by: pznet on May 21, 2009, 08:24:15 am
Hi there!

I was able to install the plug in at www.perezzeledon.net/galerias (http://"http://www.perezzeledon.net/galerias") but I'm currently experiencing some problems with the random and recently uploaded pictures but I see plenty of support here.

But, I have another issue... no matter wich picture I click on, the image count says "Picture 1 of 11", is always 11, and I have configured the thumbnails to be 25 pictures per page... any ideas?

Well, I actually changed it to spanish, so it says "Foto 1 de 11" or whatever the number is, but always up to 11 and then goes back to picture number one.

With this said, want to also thank you guys for this plugin, very easy to implement :)

Thank you.
Title: Re: LightBox Slideshow Plugin
Post by: Phill Luckhurst on May 21, 2009, 09:47:58 am
You need to upgrade to the latest release asap.

<!--Coppermine Photo Gallery 1.4.16 (stable)-->:o

You are a long way behind and risk getting hacked.
Title: Re: LightBox Slideshow Plugin
Post by: phatair on May 23, 2009, 10:41:55 am
HI,

the plugin works perfect.
But i have one question - if i close the lightbox slideshow the coppermine page  reload itself.
i used the lightbox slideshow mod bevor and this "page reload" was not a problem.

where can i change this?
I hope somebody can help me.
Thanks a lot!!
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on May 23, 2009, 04:40:20 pm
The page isn't really "reloading" it's opening the current picture (i.e. you advance 5 pictures and exit the slideshow, it will change the CPG page to the new picture).
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on May 28, 2009, 10:37:14 am
jeepguy, this a great plugin, and been using it since you released it.  So thanks.  ;)

Is there a way to increase the image size?   At the moment the images when viewed in the lightbox are not much bigger than intermediate.   I would like to make them slightly bigger.
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on June 02, 2009, 01:37:11 pm
@lurkalot
Did you try going into the file lightbox_s.js ?
You might be able to try disabling resize....
Code: [Select]
var resize = 1;// Set 0 to disable auto-resizing
Or alternatively could you try adjusting the amount of window that the resize function uses?
Code: [Select]
resizeImageAndContainer: function(imgWidth, imgHeight) {
if(resize == 1) {//resize mod by magarnicle
useableWidth = 0.9; // 90% of the window
useableHeight = 0.8; // 80% of the window

Keeping in mind the obvious fact that it does a good job of resizing the pic. based on how much browser window
is available when the first image is shown.

(it is a great plugin!)
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on June 02, 2009, 07:49:53 pm
@lurkalot
Did you try going into the file lightbox_s.js ?
You might be able to try disabling resize....
Code: [Select]
var resize = 1;// Set 0 to disable auto-resizing
Or alternatively could you try adjusting the amount of window that the resize function uses?
Code: [Select]
resizeImageAndContainer: function(imgWidth, imgHeight) {
if(resize == 1) {//resize mod by magarnicle
useableWidth = 0.9; // 90% of the window
useableHeight = 0.8; // 80% of the window

Keeping in mind the obvious fact that it does a good job of resizing the pic. based on how much browser window
is available when the first image is shown.

(it is a great plugin!)

Thanks for that info.  I'll have a play with that later and see what happens. ;)
Title: Re: LightBox Slideshow Plugin
Post by: mainak on June 12, 2009, 04:04:21 pm
This is a great plugin...it has been said many times but needs to be said one more time. So, once more from me. Gr8 stuff jeepguy, thank you very much for the plugin.

Fantastic! Very well done. Thank You
Running here i-imagine.net (http://i-imagine.net) and here http://gallery.josephcarver.com/natural/ (http://gallery.josephcarver.com/natural/)
i-imagine
(notes from a newbie:1) ie7 shows "error on page" - 'document.getElementById(...)'is null or not an object, does not appear to affect function 2) (off topic) had to remove comments recaptcha mod. due to ie7 crash, but no crash with FF and Opera(/off topic) Thanks Again

i-imagine,

if I may ask you. I have installed the plugin but dont see the caption in the slide show. I guess you achieved this by some other means. Do you mind sharing it ?

Regards,
Mainak
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on June 12, 2009, 05:14:11 pm
Please, in your future postings follow the rules for posting. Always provide a link to your gallery, search and read before posting too.

I am not 100% certain what you mean by "caption". However the answer has probably already been posted in this thread.

If you mean "Click here to save a version..." then see this post
open js/lightbox_s.js........

If you mean the Internet Explorer error then see this post
n file lightbox_s.js find this..........
Title: Re: LightBox Slideshow Plugin
Post by: mainak on June 12, 2009, 05:42:37 pm

Sorry for not providing a link to my gallery...

By caption I meant title of the picture. Its there in your slide shows. I have installed this plugin but dont see the titles... Can you please tell me how can I have the titles in the pictures during slide show.

Thanks,
Mainak
---------------
My gallery: www.batabyal.com/gallery (http://www.batabyal.com/gallery)
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on June 12, 2009, 06:11:40 pm
As far as I know that display should work without any modifications. There were a few things you should look at before you get too concerned.

The first thing you need to do is upgrade before doing anything else. You are out of date.

Quote
<!--Coppermine Photo Gallery 1.4.21 (stable)-->


Then afterwards you can start by testing the effects of any other plugin or mod. like this one that you have installed.

Quote
<! Script to disable the right click option in the picture>

You also will have to modify the style in file lightbox.css for the text to show in the Lightbox window.
Title: Re: LightBox Slideshow Plugin
Post by: CFR on June 20, 2009, 09:07:11 pm
THX a lot, really great work, now my gallery is more pretty ;)
Title: Re: LightBox Slideshow Plugin
Post by: CFR on June 20, 2009, 11:17:41 pm
I found conflit with other plugins. Lightbox dont work if is instaled:
- Flikr syle image annotations http://forum.coppermine-gallery.net/index.php/topic,41715.html (http://forum.coppermine-gallery.net/index.php/topic,41715.html)
or
- OpenSearch http://forum.coppermine-gallery.net/index.php/topic,41136.html (http://forum.coppermine-gallery.net/index.php/topic,41136.html)

But still i think, this LightBox is great :)
Title: Showing the picture description
Post by: brr on June 26, 2009, 11:50:52 pm
Hello!

When the slideshow is running it shows the pictures and the picture title. But is it possible to also showing the picture description at the bottom of the Lightbox slideshow box?

My gallery: http://web.brr.no/cpg-galleri/ (http://web.brr.no/cpg-galleri/)

Bjĝrn Roger Rasmussen, Norway
Title: Re: LightBox Slideshow Plugin
Post by: mainak on July 03, 2009, 04:06:05 pm
Hi,

I have update my Coppermine Gallery to the latest version and also removed the "No right Click" option from template.html as suggested by i-imagine.


You also will have to modify the style in file lightbox.css for the text to show in the Lightbox window.


Can you please help with what exactly I need to put to get the Title of the picture in the slide show. I am a novice and don't know anything about web programming.

Thanks,
Mainak
---------------
My gallery: www.batabyal.com/gallery
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on July 03, 2009, 04:26:25 pm
You are using a dark theme which has white text - the title is there, you just can't see it.
One choice would be to change your Copermine theme (easy to do)
Or...
You will have to learn a little about stylesheets and editing .css files or you could get into trouble.

The plugin has a file lightbox.css in slideshow/css directory.

Find:
Code: [Select]
#imageDataContainer{
font: 10px Verdana, Helvetica, sans-serif;
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
}

Replace with:
Code: [Select]
#imageDataContainer{
font: 10px Verdana, Helvetica, sans-serif;
color: #000000;
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
}

Be careful if you don't know what you are doing
Title: Re: LightBox Slideshow Plugin
Post by: mainak on July 03, 2009, 05:47:31 pm
Thanks a lot i-imagine. It now works perfectly.

Regards,
Mainak
---------------
My gallery: www.batabyal.com/gallery
Title: Re: LightBox Slideshow Plugin
Post by: ZokiBoSS on July 12, 2009, 04:21:30 pm
Great plugin. I need a little help for a hack.. Can this slideshow be directly started from thumbnails.php? When I click on a thumbnail, to open directly this slideshow.. And one more question.. Does it affect to the count of the stat of opened images? I mean, is it count the visits when you work with the slideshow?

Thank you.
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on July 12, 2009, 05:07:07 pm
The view count should increase. I can't really verify this, since the admin IP doesn't affect the view count. But someone contributed a .js file to increase the view count when viewing photos in the LightBox slideshow.

As for the modifying it to work with thumbnails, it could be done. But that would basically be a complete rewrite of the mod.
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on July 27, 2009, 04:36:20 am
I updated the original post to include version 1.2.

1.2 fixes a conflict with Nibblers Displaying videos from Youtube in Coppermine (http://forum.coppermine-gallery.net/index.php/topic,37962.msg178982.html#msg178982) mod.
Title: Re: LightBox Slideshow Plugin
Post by: magnusjohnsson on August 03, 2009, 03:39:07 pm
I have the Photo Shop plugin on my site http://www.kalmarfoto.com:8080/kalmarfoto/index.php (http://www.kalmarfoto.com:8080/kalmarfoto/index.php). It works well. Then i install the Ligtbox Slideshow it removes the Photo Shop titel on the small picture (before the large one, se picture attach). Can i have both plugin at the same time?
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on August 03, 2009, 06:19:16 pm
The LightBox plugin gives viewers access to the fullsize pictures.  I'm not sure how the Photo Shop plugin works, but doesn't it prevent users from accessing the fullsize picture? If so, I don't think you'll want the LightBox plugin.
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on August 03, 2009, 06:32:35 pm
I don't think that they are compatible, as the Lightbox prevents users from accessing displayimage.php - everything happens on the thumbnail page. The photoshop plugin mainly works on the displayimage.php screen, which the user can not access.
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on August 03, 2009, 06:38:30 pm
I don't think that they are compatible, as the Lightbox prevents users from accessing displayimage.php - everything happens on the thumbnail page. The photoshop plugin mainly works on the displayimage.php screen, which the user can not access.

The LightBox plugin only re-writes the CURRENT_PIC_DATA portion of the displayimage.php, and does so only for image files. Users are still able to browse intermediate files.
Title: Re: LightBox Slideshow Plugin
Post by: magnusjohnsson on August 03, 2009, 06:42:07 pm
I don't think that they are compatible, as the Lightbox prevents users from accessing displayimage.php - everything happens on the thumbnail page. The photoshop plugin mainly works on the displayimage.php screen, which the user can not access.

Thanks for your answer. Lightbox is so nice but i realy dont can uninstall Photoshop pluging so bye bye Lightbox. If there any other "picture slideshow viewers" who dont prevent users from accessing displayimage.php?
Title: Re: LightBox Slideshow Plugin
Post by: matthiew on August 05, 2009, 04:04:55 pm
Hi!

I am just installed coopermine ver. 1.4.25 and I would like to install the lightbox plugin on it.
My problem is that when I copied the files to the plugin directory and istalled it on the admin page,
then when I open the pictures, the lightbox plugin does not work. It is just throw the picture, without lightbox effect.
(But for example, the forum plugin works for me.)
Can anybody know what am I doing wrong? Why does not this plugin work for me?
Thank you for your help in advance.
Regards,
 Matthiew
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on August 05, 2009, 05:10:25 pm
No one can know what you are doing.

If you had taken some time to read the forum rules about posting a link to your Coppermine gallery then maybe you could get some help. Unfortunately this reply is a waste of my time, the time it takes for others to read it and helps no one.

Read, then follow the rules Then post the link.
Title: Re: LightBox Slideshow Plugin
Post by: coderoyal on August 09, 2009, 04:18:28 pm
Hi,

This looks like a promising tool! I'd like to get the Lightbox Slideshow Plugin working on my galleries as well, but unfortunately, when I install it and a user clicks on a picture, the message "There was an error while processing a database query" comes up instead of the picture!

Example: http://www.dariaelizarova.com/gallery-test/displayimage.php?album=random&cat=0&pos=-154

I removed it from my gallery, but I duplicated my gallery and installed the plugin on a test copy of the gallery located at:

http://www.dariaelizarova.com/gallery-test/

The working production version is at http://www.dariaelizarova.com/gallery (The Plugin is not installed.)

I am running the latest version. 1.4.25, but I've seen this error on it while it was 1.4.19 as well.

I believe I followed all the steps correctly. It installed with no errors as far as I can tell.

I am running version 1.2 of the Plugin from the first post.

Can anyone tell me what I am doing wrong?

SQL Version: 5.0.81-community-log
Server: RHEL AS 4 64x
Apache version 2.2.9 (Unix)
PHP version 5.2.6

Thank you,
Alan
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on August 09, 2009, 05:23:05 pm
If you look closely you will see that only your random images are affected.

Also if you read this very thread you will see that your answer has been posted.

The plugin seems to have a negative effect on /random/........The fix is...........

The "fix" is easy.
Title: Logging in
Post by: kuul on August 09, 2009, 05:41:09 pm
I can no longer log into my site as admin - kuulkreations.com
I have read thru all of the messages and the manual
Title: Re: LightBox Slideshow Plugin
Post by: coderoyal on August 09, 2009, 06:08:02 pm
If you look closely you will see that only your random images are affected.

Also if you read this very thread you will see that your answer has been posted.

The "fix" is easy.

Thank you for the quick reply! Wow.. I can't believe I overlooked that. Yes. It's working now. Rather than modifying the code, I just turned off Random images since I need the counter to work (which I believe the fix would disable) on the slideshows.

Thanks again for the quick response :-)
Title: Re: LightBox Slideshow Plugin
Post by: FixitDave on August 15, 2009, 08:59:07 pm
I have this plugin installed and works great, I installed "CPG Simple Forum v2.0 BETA" and LightBox stopped working.

I tried to reinstall it, move higher up the plugin list but still wouldn't work...the coding is there from what I could see but it won't work...

Gallery: http://www.fixitdave.hostcell.net/cp/
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on August 16, 2009, 12:05:11 pm
Been using this plugin without problem since it was released, it's a great plugin.

I changed my PC a month back, and since then I have had problems getting this to work on my new PC.   Now when I click on a intermediate pic to view the image in lightbox the lightbox window starts to load, but then disappears, and just shows a full sized image to the left of my screen.  Plugin still works great on my old PC, and none of my members have complained either. 

Looks like there's some sort of problem with my setup.   I'm running Windows Vista Home premium 64 bit Service pack 2 and IE8, build 8.0.6001.18783 256-bit  Anyone else have the same issues?

I've attached a couple of screengrabs to show the problem.
Title: Re: LightBox Slideshow Plugin
Post by: coderoyal on August 16, 2009, 01:38:16 pm
Been using this plugin without problem since it was released, it's a great plugin.

I changed my PC a month back, and since then I have had problems getting this to work on my new PC.   Now when I click on a intermediate pic to view the image in lightbox the lightbox window starts to load, but then disappears, and just shows a full sized image to the left of my screen.  Plugin still works great on my old PC, and none of my members have complained either. 

Looks like there's some sort of problem with my setup.   I'm running Windows Vista Home premium 64 bit Service pack 2 and IE8, build 8.0.6001.18783 256-bit  Anyone else have the same issues?

I've attached a couple of screengrabs to show the problem.

Hi! I remember that I had a similar problem with IE 8. It turned out to be a incompatibility with a beta version of IE8 and the Lightbox script. Is that build possibly a beta build of IE 8?
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on August 17, 2009, 03:10:50 pm
Hi! I remember that I had a similar problem with IE 8. It turned out to be a incompatibility with a beta version of IE8 and the Lightbox script. Is that build possibly a beta build of IE 8?

Thanks.  Shouldn't be a beta version, I only installed it a month ago.  IE8, build 8.0.6001.18783 256-bit   It worked fine in IE7.  I updated to IE8, and there was also a service pack 2 for vista at the same time, not sure which update messed things up though.

Is there a way to update the lightbox to the newest version, or does this plugin already contain it?
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on August 31, 2009, 11:30:42 am
Please disregard my last request for help please, as I found the problem.

New PC came with McAffee internet security suite, (trial version) This has now expired and I have uninstalled it and gone back to Norton internet security.  Lightbox works again now.  ;)
Title: Re: LightBox Slideshow Plugin
Post by: gismoat on September 01, 2009, 02:19:25 am
I have this plugin installed and works great, I installed "CPG Simple Forum v2.0 BETA" and LightBox stopped working.

I tried to reinstall it, move higher up the plugin list but still wouldn't work...the coding is there from what I could see but it won't work...

Gallery: http://www.fixitdave.hostcell.net/cp/

Hi all,
i have the same problem. Is it posible to check the conflict?

My gallery: http://arbeiter4ever.com (http://arbeiter4ever.com)
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on September 05, 2009, 08:13:13 pm
Anyone know if there's a way to add a button to bypass the lightbox view, and view full size image. 

I like using the lightbox mod, but sometimes the images are too small.  It would be handy to be able to view full size as well.

Any ideas will be appreciated. ;)
Title: Re: LightBox Slideshow Plugin
Post by: mushipkw on September 10, 2009, 08:18:34 pm
This plugin don't run on some themes, I tried using it on Brightness theme, it didn't work. I simply changed the theme to classic, it worked.
Title: Re: LightBox Slideshow Plugin
Post by: danielco on September 21, 2009, 05:28:28 pm
Hello,
I'm trying to install lightbox plugin using the coppermine plugin manager. After i upload the plugin and i press the i button, i get the error:

Fatal error: Cannot redeclare lightbox_theme_html_picture() in /home/danielco/public_html/photos/plugins/light_box/codebase.php on line 85

Any hints? Thanks in advance for yours replies.
I'm using coppermine 1.4.5 and
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on September 22, 2009, 05:59:32 am
You are using 1.4.5 or 1.4.25?

If it's 1.4.5, you need to upgrade before anyone can offer you support.
Title: Re: LightBox Slideshow Plugin
Post by: danielco on September 22, 2009, 08:08:34 am
I'm using 1.4.25 Coppermine version
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on September 22, 2009, 08:36:53 am
Why don't you post a link to your gallery as suggested per board rules - that's much more helpfull than this guessing game.
Title: Re: LightBox Slideshow Plugin
Post by: danielco on September 22, 2009, 09:03:45 am
Sorry,
http://photos.danielco.ro (http://photos.danielco.ro)
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on September 23, 2009, 04:18:49 pm
Have you verified that you only have one version of the plugin installed on the plugin manager page?
Title: Re: LightBox Slideshow Plugin
Post by: danielco on September 23, 2009, 04:37:32 pm
I have no plugin installed.
Title: Re: LightBox Slideshow Plugin
Post by: danielco on September 28, 2009, 06:44:26 am
No hint?
Title: Re: LightBox Slideshow Plugin
Post by: dan_organ on September 30, 2009, 10:03:20 pm
Hi all,
i have the same problem. Is it posible to check the conflict?

My gallery: http://arbeiter4ever.com (http://arbeiter4ever.com)

i have the same problem, anyone know how to fix it?
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on October 01, 2009, 07:36:12 am
Then the same advice is for you as well:
Why don't you post a link to your gallery as suggested per board rules - that's much more helpfull than this guessing game.
Title: Re: LightBox Slideshow Plugin
Post by: dan_organ on October 01, 2009, 06:29:51 pm
oh sorry for that 

here it is http://sok.webatu.com/cpg14x/index.php
Title: Re: LightBox Slideshow Plugin
Post by: SjoerdSmeets on October 01, 2009, 07:49:29 pm
Hello, i just installed this plugin on 2 of my gallery's. On the first one it didn't work. The overlay is visible but it didn't show any images nor controls. This site is using a bridge with Joomla 1.5. Maybe this could be a problem??

On another site without a Joomla bridge, this plugin works excellent.

Do you have any suggestions to get this working with a joomla-bridge?
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on October 02, 2009, 07:30:07 am
Do you have any suggestions to get this working with a joomla-bridge?
Yes, as above:
Why don't you post a link to your gallery as suggested per board rules - that's much more helpfull than this guessing game.

here it is http://sok.webatu.com/cpg14x/index.php
you have the Imageflow (http://forum.coppermine-gallery.net/index.php/topic,51386.0.html) plugin installed as well as far as I can see. I'm not an expert on those two plugins, but I think I have read somewhere (either on this thread or the Imageflow thread as far as I remember out of the back of my head) that the two are not compatible because their JavaScript bits collide. Temporarily disable the Imageflow plugin to see if that's the case.
Title: Re: LightBox Slideshow Plugin
Post by: danielco on October 02, 2009, 10:00:32 am
I already posted the link of my gallery. In the debug i saw no errors regarding this.
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on October 02, 2009, 01:21:18 pm
danielco,

From the the outside your gallery installation looks ok.

So, based on some of my own experiences (and my talent for mistakes), try these.

1) Run versioncheck - login>>>admin tools>>>check versions - make sure all is good

2) Unzip the lightbox plugin on your computer. Then upload the complete light_box folder
to your gallery plugin folder. Login + install.

good luck
Title: Re: LightBox Slideshow Plugin
Post by: SjoerdSmeets on October 02, 2009, 05:24:47 pm
Why don't you post a link to your gallery as suggested per board rules - that's much more helpfull than this guessing game.

I've removed this plugin as it is not working in this setup so there is nothing to be seen. I can install it on another setup where this might be the same, but in this LIVE setup i want a working gallery not a broken one ;)
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on October 02, 2009, 05:52:18 pm
Hello, i just installed this plugin on 2 of my gallery's. On the first one it didn't work. The overlay is visible but it didn't show any images nor controls. This site is using a bridge with Joomla 1.5. Maybe this could be a problem??

On another site without a Joomla bridge, this plugin works excellent.

Do you have any suggestions to get this working with a joomla-bridge?

Since I made this plugin, I have switched to a Joomla bridge as well.  I have the exact same problem that you describe.  The problem is not the bridge. It's the visual integration.  The plugin works just fine when it's bridged but not visually integrated.  I can't really figure out what's causing it.  I think it's a javascript conflict, b/c the visual integration loads the Joomla header and all of the Joomla javascript.
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on October 05, 2009, 08:07:35 am
The Joomla stuff from Mehdi is not just a bridge file. As jeepguy suggested, it interferes with the visual representation as well, which is something a bridge file as we understand it should not do. That's one of the reasons why we (the coppermine dev team) are not that fond of the Joomla bridge and why we don't recommend it. However, as suggested by jeepguy as well, that's not the fault of this plugin, but the implementation of the Joomla hack. Hence this issue should not be discussed in detail in this thread imo.
Title: Re: LightBox Slideshow Plugin
Post by: jeepguy_1980 on October 05, 2009, 06:44:46 pm
One last comment on the Joomla integration.  The bridge can be used without visual integration if you rename or delete the joomla15.integ.php file.  Doing so will allow the bridge to function as a bridge only and allow for the LightBox plugin to work as it should.
Title: Re: LightBox Slideshow Plugin
Post by: gfxyer on October 23, 2009, 11:13:04 am
I am just installed coopermine ver. 1.4.25 (stable) and I would like to install the lightbox plugin on it.
My problem is that when I copied the files to the plugin directory and istalled it on the admin page,
then when I open the pictures, the lightbox plugin does not work. It is just throw the picture, without lightbox effect.
(But for example, the forum plugin works for me.)

Quote
Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Message: 'style' -  is null or not an object
Line: 201
Char: 6
Code: 0
URI-êîä: http://foto.bratska.ru/plugins/light_box/slideshow/js/lightbox_s.js

Why does not this plugin work?
URL-gallery: http://foto.bratska.ru (http://foto.bratska.ru)

Thank you for your help in advance.
Regards,
 NIck
Title: Bug in Lightbox 1.2 plugin when clicking on random images
Post by: GGPhilipp on October 24, 2009, 03:04:47 am
Hey Folks,

I am using Coppermine 1.4.25 in combination with the Light Box 1.2 Plugin. The plugin is very very nice, thanks for the great work! Everything works fine, except when clicking on random thumbnails. In this case I only get the message: "There was an error while processing a database query". The same problem was already reported for an older version of Coppermine in the following thread: http://forum.coppermine-gallery.net/index.php/topic,52160.0.html. But the solution posted in the mentioned thread doesn't fix the problem. The solution mentioned in the thread refers to an error in Coppermine, but imho it is caused by the plugin.
When the plugin tries to build its internal picture list, it uses the result of $_GET['album'] as album identifier. This is fine in most cases, but when clicking on one of the random thumbnails, "random" is passed as album identifier. Because the plugin doesn't change the album identifier to the random pictures actual album ID, it tries to build its internal picture list based on the random album, instead of the actual album related to the picture. This leads to an error when the plugin calls the get_pic_data function, as the parameters don't match for the random album.

In order to fix the bug, just one line in the codebase.php of the plugin file has to be changed.

Line 155:
   Original:
Code: [Select]
$aid = empty($_GET['album']) ? $picId['aid'] : $_GET['album'];
   Corrected:
Code: [Select]
$aid = (empty($_GET['album']) || ($_GET['album'] == 'random')) ? $picId['aid'] : $_GET['album'];

Thanks for your attention. If you want to do more investigations let me know, I will set an testgallery so you can check the scenario.

Take Care,
Philipp
Title: Possible Solution to Prob in Lightbox 1.2 plugin when clicking on random images
Post by: GGPhilipp on October 24, 2009, 03:09:30 am
Hey Guys,
I think I found the solution to the above mentioned problem ("There was an error while processing a database query") when clicking on random thumbnails. For details see:
http://forum.coppermine-gallery.net/index.php/topic,62228.0.html

Take care,
Philipp
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on October 24, 2009, 03:06:57 pm
Merged your separate thread back into this thread. Thanks for your readiness to help.
Title: Re: LightBox Slideshow Plugin
Post by: gismoat on October 28, 2009, 09:48:58 pm
Hi all,
i have the same problem. Is it posible to check the conflict?

My gallery: http://arbeiter4ever.com (http://arbeiter4ever.com)

Hi all,
more people have the same problem with ligthbox and forum plugin.
Have any one people a idea to fix the problem?

My gallery: http://arbeiter4ever.com (http://arbeiter4ever.com)

Many thanks
gismo
Title: Re: Showing the picture description
Post by: macsimski on October 31, 2009, 12:11:37 am
Hello!

When the slideshow is running it shows the pictures and the picture title. But is it possible to also showing the picture description at the bottom of the Lightbox slideshow box?

My gallery: http://web.brr.no/cpg-galleri/ (http://web.brr.no/cpg-galleri/)

Bjĝrn Roger Rasmussen, Norway


I would love to bring back into vieuw a unanswered question from brr regarding the possibility to show the picture description underneath the title and the file count on the bottom. maybe the filecount could go to the right hand side next to slideshow and exit. leaves two lines for description!

any ideas?
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on October 31, 2009, 01:09:54 am
I've tried one hack, still working on it (and a couple of other mods to this plugin)
Will post if results are satisfactory.
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on October 31, 2009, 04:05:42 am
This is a bit rough around the edges, but will give you the description under the title.

In codebase.php
find:
Code: [Select]
$pic_title = ($picture['title'] ? $picture['title'] : strtr(preg_replace("/(.+)\..*?\Z/", "\\1", htmlspecialchars($picture['filename'])), "_", " "));add below it this:
Code: [Select]
$pic_caption = ($picture['caption'] ? $picture['caption'] : strtr(preg_replace("/(.+)\..*?\Z/", "\\1", htmlspecialchars($picture['caption'])), "_", " "));find:
Code: [Select]
$picList .= "<a href=\"$picture_url_fullsize\" picpage=\"$picture_page\" rel=\"lightbox[list]\" pid=\"$picture[pid]\" title=\"$pic_title\" >";replace with:
Code: [Select]
$picList .= "<a href=\"$picture_url_fullsize\" picpage=\"$picture_page\" rel=\"lightbox[list]\" pid=\"$picture[pid]\" title=\"$pic_title<br \>$pic_caption\" >";find:
Code: [Select]
$picList .= "<a href=\"$picture_url_fullsize\" picpage=\"$picture_page\" rel=\"lightbox[list]\" title=\"$pic_title\"></a>\n";replace with:
Code: [Select]
$picList .= "<a href=\"$picture_url_fullsize\" picpage=\"$picture_page\" rel=\"lightbox[list]\" title=\"$pic_title<br />$pic_caption\"></a>\n";
Title: Re: LightBox Slideshow Plugin
Post by: macsimski on October 31, 2009, 11:53:57 am
Works like a charm. if the fields are empty, the old behavior remains. nice!
Title: Re: LightBox Slideshow Plugin
Post by: brr on November 01, 2009, 09:19:19 am
Hello!

Thanks i-imagine for the "hack"! Now I get the caption text to show up in my photo gallery.

Is there any changes for doing any formatting of the text? If you look at this picture in my gallery with using LightBox I think you will understand that I mean:

http://web.brr.no/cpg-galleri/displayimage.php?album=1&pos=-997

This picture has a rather long caption text. It only use a little part of the windows to show it. To show all the text it goes over several lines.

And that if I want to use "normally" text and not bold? It is possible without not to much hacking?

But. Thanks a lot for the solution! Now people get the caption text when they visit my gallery. And this is the most important!

Bjĝrn Roger Rasmussen, http://web.brr.no/cpg-galleri/

Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on November 01, 2009, 01:18:32 pm
Edit file: plugins/light_box/slideshow/css/lightbox.css

Look at the values for: #imageDataContainer   and     #imageData
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on December 01, 2009, 10:57:28 am
I have converted Sawey's (http://forum.coppermine-gallery.net/index.php?action=profile;u=40798) mod, LightBox JS for Full Size Popup Slideshow (http://forum.coppermine-gallery.net/index.php/topic,49596.0.html), into a plugin.  This is my first attempt to do any work in PHP, so I cannot really support this plugin.  As I learn more about PHP, I expect to enhance this plugin with a configuration panel.

v1.1 - Renamed for standards compliance, removed unneeded files, added readme.txt, modified credits
v1.2 - Fixes conflict with Nibbler's Displaying videos from Youtube in Coppermine (http://forum.coppermine-gallery.net/index.php/topic,37962.msg178982.html#msg178982) that caused videos to appear as pictures only.
v1.2 - Fixes random problem.  Contributed by pie86 (http://forum.coppermine-gallery.net/index.php/topic,49596.msg306924.html#msg306924)

Great plugin. ;) I'm still using v1.1 at the moment.  Can you tell me what version 1.3 fixes please, or is that a typo above?
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on December 01, 2009, 11:36:43 am
Is a typo. Corrected initial posting. To find out about different versions, use a diff viewer like WinMerge (http://winmerge.org/)
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on December 01, 2009, 08:33:15 pm
Is a typo. Corrected initial posting. To find out about different versions, use a diff viewer like WinMerge (http://winmerge.org/)

Thanks Joachim. ;)  That WinMerge looks like a handy program too.  Cheers.
Title: Re: LightBox Slideshow Plugin
Post by: jivernaw on December 22, 2009, 02:12:17 pm
Hello, many thanks for a plugin!!! ;-)

I was wondering how to make the plugin open a browser in a fullscreen mode when it starts and exit when it ends?!
Otherwise, for future version, I would propose to place a button for switching from/into fullscreen on the bar close to "play" and "exit" buttons.

Thanks in advance,
Dmitry

Title: Re: LightBox Slideshow Plugin
Post by: Heroe on December 24, 2009, 03:45:12 pm
Hello, first thank you for the grate plugin.

I think i found a bug in the plugin:
I just install the plugin couple of days ago, i saw something really strange when i open  picture with lighbox, the image counter donsn't show correct how many pictures i have in the album

For example i open album with 144 images in, and when i open image with the plugin i see "image xx of 100" (but in the album the pictures are 144).
Im doing something wrong ore this is bug ?

check here: http://abroadbg.com/displayimage.php?album=37&pos=-1125#nav_pic above the image u see "FILE 1/144" then open the image with lightbox u will see "image1 of 100"

URL: www.abroadbg.com

test account:

user: test
password: 123654

Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on December 27, 2009, 04:57:28 am
Open/edit   -> plugins/ight_box/codebase.php and find:
Code: [Select]
################################################
//Set max number of images
$max = 100; //(-1 for all pics in album)
################################################

you will see that it is not a bug - just configuration
Title: Re: Bug in Lightbox 1.2 plugin when clicking on random images
Post by: reyvee61 on December 28, 2009, 12:57:17 am
Hey Folks,

I am using Coppermine 1.4.25 in combination with the Light Box 1.2 Plugin. The plugin is very very nice, thanks for the great work! Everything works fine, except when clicking on random thumbnails. In this case I only get the message: "There was an error while processing a database query". The same problem was already reported for an older version of Coppermine in the following thread: http://forum.coppermine-gallery.net/index.php/topic,52160.0.html. But the solution posted in the mentioned thread doesn't fix the problem. The solution mentioned in the thread refers to an error in Coppermine, but imho it is caused by the plugin.
When the plugin tries to build its internal picture list, it uses the result of $_GET['album'] as album identifier. This is fine in most cases, but when clicking on one of the random thumbnails, "random" is passed as album identifier. Because the plugin doesn't change the album identifier to the random pictures actual album ID, it tries to build its internal picture list based on the random album, instead of the actual album related to the picture. This leads to an error when the plugin calls the get_pic_data function, as the parameters don't match for the random album.

In order to fix the bug, just one line in the codebase.php of the plugin file has to be changed.

Line 155:
   Original:
Code: [Select]
$aid = empty($_GET['album']) ? $picId['aid'] : $_GET['album'];
   Corrected:
Code: [Select]
$aid = (empty($_GET['album']) || ($_GET['album'] == 'random')) ? $picId['aid'] : $_GET['album'];

Thanks for your attention. If you want to do more investigations let me know, I will set an testgallery so you can check the scenario.

Take Care,
Philipp

I'm running the latest version of Coppermine with Lightbox 1.3 and the random pic issue has been resolved but after going tru this whole thread I was wondering if there was a fix for the last viewed imageblock as well.
When I am logged in as admin I get this error:

Quote
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content/r/e/y/reyvee61/html/imagenation/include/functions.inc.php on line 269

Mind you this does not happen when I am logged out

Link to site:

http://moonchyldsclan.com/imagenation/index.php

Thanks

This is a great plug in btw and I am thankful to all who contributed.

Rey

Title: Re: Bug in Lightbox 1.2 plugin when clicking on random images
Post by: Joachim Müller on December 28, 2009, 11:28:24 am
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content/r/e/y/reyvee61/html/imagenation/include/functions.inc.php on line 269
Reason is explained in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize
Being logged in as admin populates some extra output that might be the straw that breaks the camel's neck as far as memory consumption is concerned. Shouting "bug" is very bad in this aspect, as it's not a bug in the script but an error on your side. You're upsetting developers and supporters when shouting "bug" although it is not one - that's not a bright idea when actually asking for support, as it makes it much less likely that someone will be willing to look into your issues in detail.
Title: Re: Bug in Lightbox 1.2 plugin when clicking on random images
Post by: reyvee61 on December 28, 2009, 10:25:53 pm
Reason is explained in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize
Being logged in as admin populates some extra output that might be the straw that breaks the camel's neck as far as memory consumption is concerned. Shouting "bug" is very bad in this aspect, as it's not a bug in the script but an error on your side. You're upsetting developers and supporters when shouting "bug" although it is not one - that's not a bright idea when actually asking for support, as it makes it much less likely that someone will be willing to look into your issues in detail.

Thanks for your reply
I must have missed this as I thoroughly read through the entire thread here.
Nor at any point did I claim this to be a "bug", I merely quoted the post by GGPhillipp, my apologies to the developers as I said, this is a great plug in.
Title: Re: LightBox Slideshow Plugin
Post by: dolomites on January 08, 2010, 02:27:54 pm
How can I edit the slideshow speed?
Thank'you
Title: Re: LightBox Slideshow Plugin
Post by: mlap on January 09, 2010, 09:58:47 pm
How can I edit the slideshow speed?
Thank'you
read the tread,
somewhere in the beginning, you find the solution.

Mlap.
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on January 10, 2010, 09:46:59 am
Exactly: the answer is on the first page of this thread. Thanks for pointing that out.
how can i have a longer time betwen two pictures. it's to short for me ?
Look in here: lightbox_s.js

for this line
Code: [Select]
var loopInterval = 3000; // image swap interval
Title: Re: LightBox Slideshow Plugin
Post by: makk on January 26, 2010, 05:43:43 pm
Really don't know if this belong in the "Light-Box -area" area or in the "Picture annotation -area" but since the problem I have is with Light Box I'll try here first!
I have only 4 plugins installed:

OpenSearch v1.0     
Search Album v1.08    
Light Box v1.3
File replacer v1.0

All working fine! Then I was searching some kind of tag -plugin and found the "Picture annotation v1.1" which is awesome to say the least, but LightBox stops working after I install that and I get the regular popups again so I uninstalled it again, and LightBox works as it should again!

Example: http://private.htstart.org/displayimage.php?pos=-446 (http://private.htstart.org/displayimage.php?pos=-446)

Right now the "annotation" is uninstalled so LightBox should work fine.
I can (later.... just to show) install it again, to show annotation works great, but LightBox features totally disappeares

Any ideas would be appreciated!
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on January 26, 2010, 06:38:12 pm
Those two plugins interfere (as you found out already), which can not be fixed easily (if at all). So no, there is no solution for you, sorry. You'll have to decide for one or the other.
Title: Re: LightBox Slideshow Plugin
Post by: makk on January 26, 2010, 07:00:46 pm
Thanks for the quick response though!
That's not an easy choice to make but since I much much much rather have a working LightBox than a "simple" popup, I'll have to go with that one!

You can consider my post here as a request for future versions to include some kind of fix for it maybe =)
Title: Re: LightBox Slideshow Plugin
Post by: makk on January 28, 2010, 12:34:15 pm
Hi again all! Have another question, this time only concerning this particular plugin!

I have been going through the .js-files trying to see where I could change to get the pictures description (the one I always assumed was "caption") instead of the images title within this slideshow
If I don't have a title on the picture, the filename is used instead, but I very very rarely use titles at all on my pics. Its almost always just "description + keywords"

I will attach a screenie to try and show what I mean. In this particluar screenie:

the fileName is: "00293.jpg"
the title is: "[blank]"
the desc. is: "Short ice pass before leaving for home again" <= and this is what I want to see, but since title is blank, only fileName (without.jpg) is shown
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on January 28, 2010, 01:51:51 pm
I have been going through the .js-files...........

makk, You should have spent your time going through the board rules........

1) Read and search the board AND this thread too!

2) always post a link to your Coppermine when asking for support!
Title: Re: LightBox Slideshow Plugin
Post by: makk on January 28, 2010, 02:52:00 pm
Well Joe! Thanks!
Since I posted such a link in my post just above that one (2 posts in a row, I hope thats not spam?), I really didn't think that would be a demand! Maybe would be easier to put it in a signature ....... (I guess I have to do that) And yes, I actually did go through the 7 pages in this thread before posting. Maybe I did a crappy job at that then. I am very sorry for that.
Would it be to much to ask if you could point me in the right direction Joe, since you seem to know the answer, or atleast the location of the post that has the answer?

much appretiated


Title: Re: LightBox Slideshow Plugin
Post by: makk on January 28, 2010, 07:44:55 pm
@Joe Carver:
Now I am back home again with my regular computer, and I just wanted to say thanks again, and after re-reading the same thread again, I actually found the spot I guess you where reffering to!
So "problem" solved!

Next time, I will see to it that I also insert a link with my question!

/M
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on January 30, 2010, 05:21:27 pm
Not sure if it's this plugin causing the problem, but when clicking on a image in the  latest coments page of my gallery I get get the following error,

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 786465 bytes) in /home/cameracr/public_html/gallery/plugins/light_box/codebase.php on line 136

Others have reported a blank white browser window when they click a image from here too.  But viewing images from other pages seem ok.

Can someone help me to fix this please?  :'(

Link  http://cameracraniums.com/gallery  and other info in my signature.
Title: Re: LightBox Slideshow Plugin
Post by: Nibbler on January 30, 2010, 06:01:28 pm
Find

Code: [Select]
$aid = (empty($_GET['album']) || $_GET['album']=='random' || $_GET['album']=='lastup') ? $picId['aid'] : $_GET['album'];

Change to

Code: [Select]
$aid = (empty($_GET['album']) || !is_numeric($_GET['album'])) ? $picId['aid'] : $_GET['album'];
Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on January 30, 2010, 06:51:04 pm
Find

Code: [Select]
$aid = (empty($_GET['album']) || $_GET['album']=='random' || $_GET['album']=='lastup') ? $picId['aid'] : $_GET['album'];

Change to

Code: [Select]
$aid = (empty($_GET['album']) || !is_numeric($_GET['album'])) ? $picId['aid'] : $_GET['album'];

Nibbler, thanks for the reply.  where / what file do I edit please? is it the codebase.php file mentioned in the error?

Title: Re: LightBox Slideshow Plugin
Post by: lurkalot on January 30, 2010, 07:40:09 pm
ok, just checked the codebase.php file.

I don't have the code you mentioned in my file, I have,

Code: [Select]
$aid = empty($_GET['album']) ? $picId['aid'] : $_GET['album'];

This is probably because I'm using version 1.1 of the plugin.  Do I need to upgrade it, and will I still have to alter that code if I do?
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on January 31, 2010, 01:30:53 pm
Only up-to-date versions get supported at all. There are reasons why new versions get released: usually, errors in previous versions get fixed. This should answer your question as well wether you should upgrade.
Title: Re: LightBox Slideshow Plugin
Post by: yelymayta on March 01, 2010, 02:41:21 am
I installed it and the slideshow works fine but when I click on the thumbnail on the main page to go to the image page, it shows the full-sized image instead of the _normal pic. I understand that when you upload a pic..there is a thumbnail image created along with a _normal and then a full size pic. Is it the lightbox error or something else?
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on March 01, 2010, 09:24:35 am
You should have posted a link to your gallery (which appears to be http://galeria.effectsfx.com/). For you the same piece of advice I posted one posting above yours applies: you need to upgrade first. Your version: cpg1.4.24. Current stable release: cpg1.4.26.
Title: Re: LightBox Slideshow Plugin
Post by: yelymayta on March 01, 2010, 05:21:07 pm
i have the new version now, but lighbox still not working, i have the same problem
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on March 01, 2010, 06:56:48 pm
Attach a screenshot of your plugin manager page.
Title: Re: LightBox Slideshow Plugin
Post by: yelymayta on March 01, 2010, 07:24:59 pm
^ done
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on March 01, 2010, 07:29:35 pm
 ???

You need to install the plugin!!!

Click on the i in the small circle ..........

After you are done go to Config >> General Setting >> Enable Help icons >> Yes.

And please read your documentation - it will save time for all.
Title: Re: LightBox Slideshow Plugin
Post by: yelymayta on March 01, 2010, 07:53:41 pm
^ no, no, I had to delete it because it not work, and up again XD
Title: Re: LightBox Slideshow Plugin
Post by: yelymayta on March 01, 2010, 07:58:48 pm
sorry for 2 post but u can see the problem here http://galeria.effectsfx.com/displayimage.php?album=lastup&cat=0&pos=2
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on March 02, 2010, 10:44:40 am
I don't think that this plugin is compatible with Stramm's modpack.
Title: Re: LightBox Slideshow Plugin
Post by: yelymayta on March 02, 2010, 04:08:07 pm
I think the same, thanks Joachim
Title: Re: LightBox Slideshow Plugin
Post by: Desert Rider on April 04, 2010, 07:09:41 pm
@Joe Carver:
Now I am back home again with my regular computer, and I just wanted to say thanks again, and after re-reading the same thread again, I actually found the spot I guess you where reffering to!
So "problem" solved!

Next time, I will see to it that I also insert a link with my question!

/M
Would appreciate if you posted a link to the solution to your problem as I would like to include both the name and description in the Lightbox popup image. This seems to be automatically done in the Lightbox plugin for cpg1.5x.
Title: Re: LightBox Slideshow Plugin
Post by: makk on April 05, 2010, 01:36:10 am
I am not at home to check my computer, but I belive the file was "lightbox_s.js" in the js-folder under slideshow
Somehow I may have messed that part up though, cause it's not working anymore =)

Probably updated the plugin and missed that part.
Today I get the filename if I leave title and desc empty
I get the filename+desc if I only leave title empty

I know that I had only desc (without filename) if I only filled in desc though.
When I get back home I will try and find the edited previous version of that file that I had. If I still have it that is
Title: Re: LightBox Slideshow Plugin
Post by: makk on April 05, 2010, 01:42:44 am
Would appreciate if you posted a link to the solution to your problem as I would like to include both the name and description in the Lightbox popup image. This seems to be automatically done in the Lightbox plugin for cpg1.5x.

Ps. This was the link I was reffering to, by Joe Carter: http://forum.coppermine-gallery.net/index.php/topic,59013.msg309268.html#msg309268 (http://forum.coppermine-gallery.net/index.php/topic,59013.msg309268.html#msg309268)
Title: Re: LightBox Slideshow Plugin
Post by: Desert Rider on April 05, 2010, 03:53:15 am
Thanks for the reply makk. The link you supplied got me the information I needed. Now if I can just work on the style sheet to keep the title bold and the description normal weight and center all in the window it will look like it does in the Lightbox plugin for cpg1.5x.
Title: Re: LightBox Slideshow Plugin
Post by: makk on April 05, 2010, 05:01:28 am
Checking the CSS directly in my browser tells that
Code: [Select]
#imageData #caption {
font-weight:bold;
}
is for both the title(or filename) and the description so I guess that is not fixable with just manipulating the CSS

I would actually also want it a bit like:
________________________________
thefilename (or) image title
This is this images description text to bla bla bla.....

Image X of Y
Click to save..............
________________________________
Title: Re: LightBox Slideshow Plugin
Post by: Desert Rider on April 05, 2010, 06:40:00 pm
Yes, that is how I would like it also. Right now, I have both the title and description in bold weight text. Not being very proficient at css writing I'm unable to figure out how to add the necessary code to have the title bold and the description normal and to center it in the lightbox window. Here is what I have now in my cpg1.4.26 gallery
Code: [Select]
#imageDataContainer{
font: 10px Verdana, Helvetica, sans-serif;
color: #000000;
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
}

#imageData{
    font-style: normal;
padding:0 10px;
}
#imageData #imageDetails{ width: 60%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #flashPlayer{ float: right; }
#imageData #slideshowLink{ width: 34px; float: right;  padding-bottom: 1.3em;position: relative; top: 5px}
#imageData #bottomNavClose{ width: 34px; float: right;  padding-bottom: 1.3em; position: relative; top: 5px}
Here is the css code as used in the Lightbox plugin for cpg1.5.3
Code: [Select]
#lightbox-image-details-caption {
font-weight: bold;
color: #000;
display: block;
vertical-align: middle;
text-align: center;
padding: 0 10px 0 10px;
}

#lightbox-image-details-description {
font-weight: normal;
color: #000;
display: block;
vertical-align: middle;
text-align: center;
padding: 0 20px 0 20px;
Lightbox as used in cpg1.4.26 can be seen here (http://www.unclealice.com/gallery/index.php).
Lightbox as used in cpg1.5.3 can be seen here (http://www.unclealice.com/test/cpg15x/index.php).
Title: Re: LightBox Slideshow Plugin
Post by: makk on April 05, 2010, 07:30:59 pm
That looks really neat! (in the 1.5.3 gallery)
Maybe a nice note in the suggestion-box to Mr Carver (which I by mistake called Mr Carter the other day...sry about that :)) or plugin creator jeepguy or... any other of the nice ppl in here
Title: Re: LightBox Slideshow Plugin
Post by: Heroe on April 05, 2010, 09:53:29 pm
Hi,
How can i stop guests to view full size images with this plugin. I read the DOCS but the only protection for guest i found is this:

Code: [Select]
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
 :)

No idea if u need the gallery link for this ???

site: http://abroadbg.com
username: test
password:123654

Title: Re: LightBox Slideshow Plugin
Post by: Desert Rider on April 11, 2010, 09:05:47 pm
That looks really neat! (in the 1.5.3 gallery)
Maybe a nice note in the suggestion-box to Mr Carver (which I by mistake called Mr Carter the other day...sry about that :)) or plugin creator jeepguy or... any other of the nice ppl in here

Hoping someone might have the code changes necessary to make the title and caption lines in cpg1.4. lightbox plugin appear as they do for the lightbox plugin that is used in cpg1.5.3. Two different code and links to sites are posted above.
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on April 11, 2010, 11:24:48 pm
Hoping someone might have the code changes necessary to make the title and caption lines in cpg1.4. lightbox plugin appear as they do for the lightbox plugin that is used in cpg1.5.3.

That would not be a trivial thing to do - they work from a different .js core - there would be at least 3 different files to modify - then there would be testing for functionality, compatibility, etc. Since I am having enough trouble and invested time with my existing plugins, at the moment I myself could not commit to something so extensive for cpg 1.4.x.

Hint: you can at least 'un-bold' the text by changing values in lightbox.css file
Title: Re: LightBox Slideshow Plugin
Post by: Desert Rider on April 12, 2010, 06:39:28 am
That would not be a trivial thing to do - they work from a different .js core - there would be at least 3 different files to modify - then there would be testing for functionality, compatibility, etc. Since I am having enough trouble and invested time with my existing plugins, at the moment I myself could not commit to something so extensive for cpg 1.4.x.

Hint: you can at least 'un-bold' the text by changing values in lightbox.css file
Understand your commitment to the newer projects. Appreciate your efforts. It's not a major deal and hoping to use the existing cpg1.5x when it becomes a stable release although it seems to be functioning just fine for my limited purposes in 1.5.3. I am aware of the modification to lightbox.css in order to un-bold the data.
Title: Re: LightBox Slideshow Plugin
Post by: vizerg on April 23, 2010, 12:11:32 pm
Please someone help me!

When I install the cpgforum v2 plugin the Light Box plugin doesnt work anymore.
With the cpgforum v1 it works, but the v2 is much better, so I want to use it.

Help me please!

Thanks a lot!
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on April 24, 2010, 01:20:22 pm
Board rules / Forum policies: Post Links (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616)
Title: Re: LightBox Slideshow Plugin
Post by: wolle1969 on May 03, 2010, 12:11:30 pm
Helo,
I use Joomla 1.5.17 and coppermine 1.4.26 with medhi bridge and the Lightbox 1.4. The lightbox is opened but the "popup" is only white, without any symbols for play, stop, close. When I switch the brige off, it still works fine.
What can I do to use the bridge and the lightbox?


Thanks for your help
Title: Re: LightBox Slideshow Plugin
Post by: Joachim Müller on May 03, 2010, 04:18:24 pm
My reply just one posting above yours applies for you as well as for any other user looking for support.
Title: Re: LightBox Slideshow Plugin
Post by: wolle1969 on May 03, 2010, 04:36:39 pm
OK, you're right.

But while the lightbox doesn't work I'd deactivate it, so it is not very helpfull for my post to see the gallery without lightbox.

But here it is: http://www.svh-herbern.de/fotogalerie/index.php (with the non-working lightbox, I hope my other users wont' be angry ;) )

Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on May 03, 2010, 06:19:07 pm
Make certain that all of the LightBox files are in place - compare a locally unzipped copy to what shows on your server.

Then take a look at all of the other .js that you have loaded......
Quote
  <script type="text/javascript" src="/media/system/js/mootools.js"></script>
  <script type="text/javascript" src="/plugins/content/avreloaded/silverlight.js"></script>
  <script type="text/javascript" src="/plugins/content/avreloaded/wmvplayer.js"></script>
  <script type="text/javascript" src="/plugins/content/avreloaded/swfobject.js"></script>
  <script type="text/javascript" src="/plugins/content/avreloaded/avreloaded.js"></script>
  <script src="http://www.svh-herbern.de/plugins/content/1pixelout/audio-player.js" type="text/javascript"></script>

You very well could have a .js conflict occurring - try removing what you might not need or try redoing your template.html so that some of the .js loads after the LightBox.

Title: Re: LightBox Slideshow Plugin
Post by: wolle1969 on May 03, 2010, 09:01:20 pm
Thats was it, there is a conflict with the Plugin "Content - AllVideos Reloaded" in my Joomla. When I deactivate it, the lightbox works.

Thank you Joe!
Title: Re: LightBox Slideshow Plugin
Post by: m4rcu5 on May 11, 2010, 05:13:44 pm
Dear Develper,

I also have the problem that Lightbox does not work when having cpgforum v2 enabled.
You may see the problem at http://cpg.marcusvandam.nl.

Could someone direct me on how to get the combination of the both working. I love both plugins :-)

Thanks in advance, m4rcu5
Title: Re: LightBox Slideshow Plugin
Post by: coderoyal on June 20, 2010, 11:34:23 pm
Hi! I just wanted to say that this is the best plugin for Coppermine that I've ever used! I love it! Unfortunately, I discovered that it doesn't increase the counter in coppermine when the image is viewed.  :-[ I noticed in my galleries what appeared to be a large drop of visitors viewing photos except the first and last images, but found it was just because it doesn't modify the view counter.

Are there any plans to add this feature in the next release?

Please take care!
Alan
Title: Re: LightBox Slideshow Plugin
Post by: coderoyal on June 20, 2010, 11:40:48 pm
Hi! In regards to my latest post, Sorry! I just discovered my feature request was moot since the feature is included in the latest version of LightBox 3.0 for Gallery 1.5x

Thanks again for a great tool!
Alan
Title: Re: LightBox Slideshow Plugin
Post by: smdsg on November 08, 2010, 12:55:21 pm
Hello great plugin :) but i have small problem, i use bridge to e107 and when i change coppermine theme to e107 lightbox not work :(
Title: Re: LightBox Slideshow Plugin
Post by: stephanf on March 09, 2011, 08:32:56 am
hi
it´s a really great plugin!!
but I also have a little problem: I use coppermine with a bridge to joomla. the light box opens, but stays white, without pic or navigation inside.
I´ve tried all the things posted before.
can anyone help me?

my gallery: http://www.borsti.at/foto (http://www.borsti.at/foto)

mthx stephan
Title: Re: LightBox Slideshow Plugin
Post by: danielco on April 12, 2011, 10:15:07 pm
What about FF 4? The plugin does not work on Firefox 4. It's just grey and blinking. that's all. Any hints?
Title: Re: LightBox Slideshow Plugin
Post by: Joe Carver on April 13, 2011, 01:30:26 am
The plugin is for Coppermine 1.4.x which is not supported.

Please upgrade to Coppermine 1.5.12.

Locking Topic