Lightbox Download Correct Version
-
- Posts: 16
- Joined: Sun Oct 14, 2007 10:52 pm
Lightbox Download Correct Version
Hi,
I just attempted to download and use the Lightbox code referenced in the WebYep documentation... but it appears that the latest available version (v2.51 available here: http://lokeshdhakar.com/projects/lightbox2/) no longer works with WebYep.
Is there someplace that I can download and utilize the v2.04 that seems to be the last known version to work with WebYep?
Or is there another way to get an Image Gallery to utilize a Lightbox function?
Thanks!
- John
I just attempted to download and use the Lightbox code referenced in the WebYep documentation... but it appears that the latest available version (v2.51 available here: http://lokeshdhakar.com/projects/lightbox2/) no longer works with WebYep.
Is there someplace that I can download and utilize the v2.04 that seems to be the last known version to work with WebYep?
Or is there another way to get an Image Gallery to utilize a Lightbox function?
Thanks!
- John
-
- Posts: 16
- Joined: Sun Oct 14, 2007 10:52 pm
-
- Posts: 16
- Joined: Sun Oct 14, 2007 10:52 pm
Re: Lightbox Download Correct Version
Still no one out there with any thoughts/input? I could really use some help.
Thanks!
Thanks!
-
- Posts: 18
- Joined: Tue Jul 14, 2009 12:00 pm
Re: Lightbox Download Correct Version
I'm having the same problem. Have you found a workaround? Is there a ticket system at Obdev?
-
- Posts: 16
- Joined: Sun Oct 14, 2007 10:52 pm
Re: Lightbox Download Correct Version
daviddelmonte wrote:I'm having the same problem. Have you found a workaround?
No... not yet. Still looking.
daviddelmonte wrote:Is there a ticket system at Obdev?
Not that I'm aware of... but not a surprise since the software is free, right?
-
- Posts: 18
- Joined: Tue Jul 14, 2009 12:00 pm
Re: Lightbox Download Correct Version
hmmpf. I wasn't free when I purchased it.
I will take this tack ..
1. Look into the web yep JS - see if I can patch what's wrong.
2. Consider moving to another CMS. sigh.
I will take this tack ..
1. Look into the web yep JS - see if I can patch what's wrong.
2. Consider moving to another CMS. sigh.
-
- Posts: 18
- Joined: Tue Jul 14, 2009 12:00 pm
Re: Lightbox Download Correct Version
Hi, I finally got around to playing with this. Lightbox now works.
The sequence I used was.
1. download Lightbox 2.
2. upload just the lightbox folder to your host/webyep-system/program/opt
3. In lightbox.js, the first function is:
LightboxOptions = (function() {
function LightboxOptions() {
this.fileLoadingImage = '/webyep-system/program/opt/lightbox/images/loading.gif';
this.fileCloseImage = '/webyep-system/program/opt/lightbox/images/close.png';
this.resizeDuration = 700;
this.fadeDuration = 500;
this.labelImage = "Image";
this.labelOf = "of";
}
return LightboxOptions;
})();
4. In your site, for each page, you have to add the following links to the js files:
<script src="../webyep-system/program/opt/lightbox/js/jquery-1.7.2.min.js"></script>
<script src="../webyep-system/program/opt/lightbox/js/lightbox.js"></script>
(your path may be different - just check the relative address). Also, the order of the scripts is most important. jQuery is first.
5. I added a path to the lightbox CSS files:
<link href="css/lightbox.css" rel="stylesheet" />
That's it!
The sequence I used was.
1. download Lightbox 2.
2. upload just the lightbox folder to your host/webyep-system/program/opt
3. In lightbox.js, the first function is:
LightboxOptions = (function() {
function LightboxOptions() {
this.fileLoadingImage = '/webyep-system/program/opt/lightbox/images/loading.gif';
this.fileCloseImage = '/webyep-system/program/opt/lightbox/images/close.png';
this.resizeDuration = 700;
this.fadeDuration = 500;
this.labelImage = "Image";
this.labelOf = "of";
}
return LightboxOptions;
})();
4. In your site, for each page, you have to add the following links to the js files:
<script src="../webyep-system/program/opt/lightbox/js/jquery-1.7.2.min.js"></script>
<script src="../webyep-system/program/opt/lightbox/js/lightbox.js"></script>
(your path may be different - just check the relative address). Also, the order of the scripts is most important. jQuery is first.
5. I added a path to the lightbox CSS files:
<link href="css/lightbox.css" rel="stylesheet" />
That's it!
Re: Lightbox Download Correct Version
Hi everyone I think I better try to explain a few mis understanding which a few seem to be having so if I am going over old ground please ignore but for those who don’t know here goes
WebYep can be made compatible with lightbox 2.5.
The problem lies in WebYeps assumption that the lightbox in question is using prototype/scriptacoluos as its js framework which was correct up until the launch of 2.5 of the light-box and at that point the lightbox creator started to use jQuery.
If you want to use the latest version you would need to write the script below in the config-inc.php file which can be found within the webyep-system folder:
after the line that reads:
Once you have done that all you would need to do is reference the jQuery library before the end of the head part of your php page, so something like this:
The result should be…. that WebYep won't create and reference the scripty prototype library and you have referenced the correct jQuery library by hand
So to recap:
Lightbox up-to 2.05
If you intend to use the original 2.05 version of the lightbox and you wont be adding any other scriptaculous/prototype references on a specific page, then you DO NOT need to suppress webyep’s automatic inclusion of the scriptaculous/prototype javascript references which will be placed into the head of your page.
On the other hand, if you are going to add an extra scriptaculous/prototype effect to the page and have already included the javascript references within the head then you DO need to suppress the webyep automatic inclusion of the javascript libraries. The reason for this is you must not have the scriptaculous/prototype libraries added multiple times. Please note if you supress this within the config-file then it will be global... in other words no javascript references will be added to any of your pages and you will have to add the scriptaculous/prototype references on all your pages your self.
Download for the original can be found here:
http://cl.ly/Ktlu
Lightbox from 2.5
If you are going to use the latest 2.5 light-box then you DO need to suppress the automatic inclusion of the scriptaculous/prototype libraries which webyep will automatically add into the head of your document and that's because Lokesh Dhakar who wrote the lightbox has moved over to using jQuery as the javascript framework. And you will need to manually add the jQuery javascript reference into the head of your page.
I hope that helps everyone have a better understanding
All the best Max
WebYep can be made compatible with lightbox 2.5.
The problem lies in WebYeps assumption that the lightbox in question is using prototype/scriptacoluos as its js framework which was correct up until the launch of 2.5 of the light-box and at that point the lightbox creator started to use jQuery.
If you want to use the latest version you would need to write the script below in the config-inc.php file which can be found within the webyep-system folder:
Code: Select all
// Turn off WebYep references of Scriptaculous/Prototype
$webyep_bDoNotIncludePrototype = true;
$webyep_bDoNotIncludeScriptaculous = true;
after the line that reads:
Code: Select all
$webyep_bDebug = false;
Once you have done that all you would need to do is reference the jQuery library before the end of the head part of your php page, so something like this:
Code: Select all
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
The result should be…. that WebYep won't create and reference the scripty prototype library and you have referenced the correct jQuery library by hand
So to recap:
Lightbox up-to 2.05
If you intend to use the original 2.05 version of the lightbox and you wont be adding any other scriptaculous/prototype references on a specific page, then you DO NOT need to suppress webyep’s automatic inclusion of the scriptaculous/prototype javascript references which will be placed into the head of your page.
On the other hand, if you are going to add an extra scriptaculous/prototype effect to the page and have already included the javascript references within the head then you DO need to suppress the webyep automatic inclusion of the javascript libraries. The reason for this is you must not have the scriptaculous/prototype libraries added multiple times. Please note if you supress this within the config-file then it will be global... in other words no javascript references will be added to any of your pages and you will have to add the scriptaculous/prototype references on all your pages your self.
Download for the original can be found here:
http://cl.ly/Ktlu
Lightbox from 2.5
If you are going to use the latest 2.5 light-box then you DO need to suppress the automatic inclusion of the scriptaculous/prototype libraries which webyep will automatically add into the head of your document and that's because Lokesh Dhakar who wrote the lightbox has moved over to using jQuery as the javascript framework. And you will need to manually add the jQuery javascript reference into the head of your page.
I hope that helps everyone have a better understanding
All the best Max
Re: Lightbox Download Correct Version
Hi Anyone what?
what are you asking for?
kindest regards max
what are you asking for?
kindest regards max