Modules: Shadowbox 3 integration - v.1.9

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2011-08-31 02:50
sluggy wrote:
OK. I'm using the grey dragon theme now. I'm unable to get this behaviour. Do I need to add custom css to get this behaviour? Also how can I remove the space between the images similar to your site and can I do this on an album by album basis?

(let me know if I should punt this to the grey dragon theme thread).

did you install 3.1 beta? (it is special link from dedicated beta thread

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Tue, 2011-10-11 11:28

Feature request: Option for overlayOpacity

In previous versions (1.6) I was able to edit ui.support.js in the Greydragon theme (3.0.6) to include "overlayOpacity: 0.9" as a parameter. This means that the overlay stands out a lot better over the clutter of the resize page. I guess I could do the same to shadowbox-init.js in V1.8, but I'd need to repeat this each time I changed the admin settings.

U-G

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-10-11 14:06

Will check

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2011-10-13 19:04

version 1.9 is up:

  • Added support for overlay manipulation
 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Fri, 2011-10-14 00:41

V 1.9 with overlayOpacity works like a charm. Thank you.

 
eddy@inpulsearts.com
eddy@inpulsearts.com's picture

Joined: 2009-08-04
Posts: 14
Posted: Fri, 2011-10-14 02:27

After installing and activation I get the following error.
Kohana_404_Exception [ Page Not Found ]:
The page you requested, admin/shadowbox, could not be found.

?

Eddy
http://www.inpulsearts.com

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Fri, 2011-10-14 06:24

You're not using the Greydragon theme I take it. Some themes need modifications to be able to use Shadowbow. See the Codex for details for how to get it to work in the Wind theme.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sat, 2011-10-15 00:37
eddy@inpulsearts.com wrote:
After installing and activation I get the following error.
Kohana_404_Exception [ Page Not Found ]:
The page you requested, admin/shadowbox, could not be found.

you did not install module correctly
you are using G3 3.0.2, yes?
if so please make sure that module unpacked properly is in modules/shadowbox
indication would be that you see module.info right inside along with folders like controllers/css/helpers/etc...

 
Billan

Joined: 2003-09-12
Posts: 31
Posted: Mon, 2011-10-24 20:55

Is there a way to have the intermediate size image (set to 1280 in your theme) used for the shadowbox window? I see it shows (fullsize-link), can this be changed? My full size images are 5+mb so it takes a long time to open the window.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2011-10-24 22:50

in general it is up to the theme
what theme links in the page, SB will show
do you allow any user to see 5MB?

 
Billan

Joined: 2003-09-12
Posts: 31
Posted: Mon, 2011-10-24 23:13
Serge D wrote:
in general it is up to the theme
what theme links in the page, SB will show
do you allow any user to see 5MB?

My old G2 site had 3 sizes, inital page load, click to open intermediate, then a link to the full. Since this is a protected family gallery I want the ability for the full to be downloaded (for printing etc). I am using your GreyDragon theme and I don't see a place to set another image size. Any way around this?

Thanks!

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-10-25 06:14

Theme is not designed to provide such option at this time
May be in future versions

 
krishansen

Joined: 2011-11-17
Posts: 5
Posted: Thu, 2011-11-17 20:52

Ok, first, I LOVE shadowbox and fancybox! I'm using clean canvas wide, and am trying to figure a way to use either shadow or fancy in such a way that they display at 100% of the window size, and allow for full size download. I can find neither at the moment. Thanks!

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2011-11-18 00:28

you would need to play with settings - http://www.shadowbox-js.com/options.html adjusting shadowbox-init.js
similar for Fancybox - http://fancybox.net/api
once you figure out combination, I could add it into admin for the module

 
krishansen

Joined: 2011-11-17
Posts: 5
Posted: Sat, 2011-11-19 14:11

Serge,

Thanks for getting back to me! My issue is, I'm not a coder, so I need a little help. I suppose if I can be lead to where I can define the viewport padding, or something to make the displayed image as large as possible, that would be great. Also, is there a way to add the "download this image" link to the box?

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Sat, 2012-01-21 06:47

Hi Serge,

I love the Shadowbox, thank you for adding this to your great theme !

Although it is currently not working on my site, (opening the full pic but I guess it's some minor fix), I would love to have it take a bigger part on my website.
I would like to :
- be able to block the photo page (just like you can do in GD admin)
- and then activate Shadowbox by clicking on any thumbnail.
- Shadowbox would allow me to go to the previous/next photo, (by clicking on either left or right side of the picture) , I have seen the navigation option on Shadowbox demo but they are not very userfriendly).
- but the most important would be that G3 comments (and Facebook comments module) get included at the bottom of the box.... a little like Facebook is doing now

Do you think it is possible to customize Shadowbox this way ? I mean insert a G3 comment block inside it ?

------
Gallery 3 URL = http://www.coquille.org/gallery3
Version: 3.0.2 (Coollanta)
Operating system: Linux 2.6.18-194.32.1.el5
Apache: Apache/2.2.3 (Red Hat)
PHP: 5.2.6
MySQL: 5.0.77
Server load: 1.31 1.58 1.53
Graphics toolkit: gd

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sat, 2012-01-21 22:52

Shadowbox itself does not change the theme so there is no way to block the photo page
Nor does it make theme to list all the photos properly to allow gallery mode.
About comment integration, have not tried this. I believe some did make attempt to make it possible, I do not know if succeed

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Mon, 2012-01-23 23:58
Serge D wrote:
About comment integration, have not tried this. I believe some did make attempt to make it possible, I do not know if succeed

You may be referring to me, as I expressed a similar interest a while back. I've done nothing about it. Perhaps it was someone else.

Anything is possible. The questions are, how much work would it be and what skills would it need?

U-G

 
geodementia

Joined: 2012-02-16
Posts: 6
Posted: Thu, 2012-02-16 12:30

I cannot get Shadowbox to work :( I have installed gallery 3.0.2 on my linux apache server, with the GreyDragon 3.1.4 theme and Shadowbox 1.9.
Shadowbox certainly seems to be enabled, however when I click on any image it opens as a standard preview and shadowbox is not being called.
(I have also tried Fancybox with exactly the same problem) You can see the result here

If I view the page source of the album, the hrefs for the images themselves do not contain a rel="g-preview" directive - I believe this is the trigger within the CSS to launch shadowbox? (I compared the source with one of the demo sites for the GD theme)

If I check the gallery3 Advanced Settings, under Shadowbox I see shadowbox settings a:0:{} I'm not sure if this is the right string here....
Under shadowbox itself the Target string is default (a.g-sb-preview;a.g-fullsize-link)

Are there any tricks to getting it to work? I'd love to get it going so I can migrate all of my gallery2 albums over to gallery3.

Geoff

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2012-02-16 17:29
geodementia wrote:
I cannot get Shadowbox to work :( I have installed gallery 3.0.2 on my linux apache server, with the GreyDragon 3.1.4 theme and Shadowbox 1.9.
Shadowbox certainly seems to be enabled, however when I click on any image it opens as a standard preview and shadowbox is not being called.
(I have also tried Fancybox with exactly the same problem) You can see the result here

If I view the page source of the album, the hrefs for the images themselves do not contain a rel="g-preview" directive - I believe this is the trigger within the CSS to launch shadowbox? (I compared the source with one of the demo sites for the GD theme)

If I check the gallery3 Advanced Settings, under Shadowbox I see shadowbox settings a:0:{} I'm not sure if this is the right string here....
Under shadowbox itself the Target string is default (a.g-sb-preview;a.g-fullsize-link)

Are there any tricks to getting it to work? I'd love to get it going so I can migrate all of my gallery2 albums over to gallery3.

Geoff

I do not see init script loaded for SB. most likely you have not clicked Save button from SB Admin page at least once.
Can you try to do this and let me know, please?

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
geodementia

Joined: 2012-02-16
Posts: 6
Posted: Fri, 2012-02-17 00:55

Thanks Serge,

Yes I have saved the SB Admin page multiple times. It is showing up as activated, yet it is not being called.
Out of interest I set up a new test site with a clean install of gallery3, GD and Shadowbox (my main site has a gallery2 and drupal instance and I thought perhaps my rewrite rules may be causing problems). However with the new site (http://webdev.gatwards.org/gallery3) the same problem exists.

To rule out the Apache configuration I downloaded the shadowbox classes and set up a simple test page (http://webdev.gatwards.org/test.html) and that does work correctly....

Are there any logs I can check to see why the SB is not working under gallery3?

Regards,
Geoff

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2012-02-17 04:12

OK, let's try next step
Under /gallery3/modules/shadowbox/js/ do you see file called shadowbox-init.js?

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
geodementia

Joined: 2012-02-16
Posts: 6
Posted: Fri, 2012-02-17 05:05

Yep:

[root@webserver gallery3]# ls -l modules/shadowbox/js/
total 140
-rw-r--r-- 1 web65 client1 773 Jul 7 2011 expressInstall.swf
-rw-r--r-- 1 web65 client1 3210 Jul 7 2011 LICENSE
-rw-r--r-- 1 web65 client1 51669 Jul 7 2011 player.swf
-rw-r--r-- 1 web65 client1 2641 Jul 7 2011 README
-rw-r--r-- 1 web65 client1 94 Oct 13 12:05 shadowbox-init.js
-rw-r--r-- 1 web65 client1 65000 Jul 7 2011 shadowbox.js

Geoff

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2012-02-17 05:18

Oct 13 12:05 shadowbox-init.js

Oct 13? we are in February, aren't we? I do not think file was updated
is there anything in error log?

Average size of this file when saved is around 300 - 500 bytes. 94 is too little...

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
geodementia

Joined: 2012-02-16
Posts: 6
Posted: Fri, 2012-02-17 05:27

No there is nothing in the error logs, other than errors about not finding favicon.ico (I haven't defined one so that's expected at the moment)

2012-02-17 15:56:03 +11:00 --- error: File not found: Test/lib/images/favicon.ico
2012-02-17 15:56:07 +11:00 --- error: File not found: lib/images/favicon.ico
2012-02-17 15:56:09 +11:00 --- error: File not found: lib/images/favicon.ico

I've saved the shadowbox settings through the admin page many times (default values) and each time I get the green tick to say it's saved... BUT I think you have pointed us in the right direction. I changed the permissions on shadowbox-init.js to be globally writable and re-saved the parameters, and now I have:

-rwxrwxrwx 1 web65 client1 430 Feb 17 16:24 shadowbox-init.js

but it's still not working when I preview an image....

Regards,
Geoff

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2012-02-17 05:31

clicking on the image here http://webdev.gatwards.org/gallery3/index.php/Test/Chrysanthemum did open shadowbox popup allowing view of all 3 images

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
geodementia

Joined: 2012-02-16
Posts: 6
Posted: Fri, 2012-02-17 05:31

No there is nothing in the error logs, other than errors about not finding favicon.ico (I haven't defined one so that's expected at the moment)

2012-02-17 15:56:03 +11:00 --- error: File not found: Test/lib/images/favicon.ico
2012-02-17 15:56:07 +11:00 --- error: File not found: lib/images/favicon.ico
2012-02-17 15:56:09 +11:00 --- error: File not found: lib/images/favicon.ico

I've saved the shadowbox settings through the admin page many times (default values) and each time I get the green tick to say it's saved... BUT I think you have pointed us in the right direction. I changed the permissions on shadowbox-init.js to be globally writable and re-saved the parameters, and now I have:

-rwxrwxrwx 1 web65 client1 430 Feb 17 16:24 shadowbox-init.js

Now when I click on the thumbnail shadowbox is not working but going fullscreen it is...

Regards,
Geoff

 
geodementia

Joined: 2012-02-16
Posts: 6
Posted: Fri, 2012-02-17 05:37

Sorry for duplicate posting - my browser just went beserk!

I may have a cache problem here behind corporate firewall - I will try from home this evening and see if it's working there.
Full size is definitely OK now, I guess the previews will be too if I could refresh the data ;-)
Will let you know.

Thanks for your help - maybe worth a note on the shadowbox module page that the -init.js file should be writable by the webserver... I've locked it down further now that I know the problem

[root@webserver js]# ls -l
total 140
-rw-r--r-- 1 web65 client1 773 Jul 7 2011 expressInstall.swf
-rw-r--r-- 1 web65 client1 3210 Jul 7 2011 LICENSE
-rw-r--r-- 1 web65 client1 51669 Jul 7 2011 player.swf
-rw-r--r-- 1 web65 client1 2641 Jul 7 2011 README
-rw-rw-r-- 1 web65 apache 430 Feb 17 16:30 shadowbox-init.js
-rw-r--r-- 1 web65 client1 65000 Jul 7 2011 shadowbox.js

Regards,
Geoff

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Fri, 2012-02-17 23:46

You should be aware that shadowbox has a "feature" which means that it won't work if you click the resize image before the page is fully loaded. There are a number of things that can delay the completion of the loading of the page. Your server speed is one. The social plugin modules (e.g. Facebook Like) is another, although you don't seem to have these installed. Perhaps a corporate firewall is yet another, as would be a slow connection.

The other photobox modules don't have this "feature", because they're not javascript-activated. I'd really like to solve this "feature" of SB, as I prefer it to the others.

U-G

 
sickonede

Joined: 2012-04-12
Posts: 6
Posted: Fri, 2012-04-13 14:45

Hello Serge,

I use dragontheme and shadowbox and it is wonderful. Thank you for this great work.

I have two questions:

1) Some icons on the uper right menu bar ar cut at the bottom, becaus ethey hve a size of 34x27 pix (e.g. icons from module "Download Album" or "Exif GPS"). The other icons, which fit, are 26x21 and 22x22 pix. Is there a way to open up space (modify code / css?) that all icons are displayed correctly?

2)When I click on photo page on an image shadowbox opens up, but is loading very long (10-30sec for 3 images in the album with full size size of ca. 200kb each over a 20mbit dsl line) until the first image shows up. Only the loading animation is visible. Then I tried fancybox and the first image appears within a second. It seems to me, that shadobox first preloads alle the images of an album before displaying the first one. I couldn't find an option to change that. I would prefer continouus preloading and displaying the first image as soon as possible.

Is there a difference for fancybox or shadowbox if I encode my jpegs as progressive scans? I couldn#t see an advantage in loading speeds...

Would be nice, if you could help me, because I like shadowbox more.

Thanks for your help in advance :-)

Marcus

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2012-04-13 16:29
sickonede wrote:
1) Some icons on the upper right menu bar are cut at the bottom, because they have a size of 34x27 pix (e.g. icons from module "Download Album" or "Exif GPS"). The other icons, which fit, are 26x21 and 22x22 pix. Is there a way to open up space (modify code / css?) that all icons are displayed correctly?

I would suggest to make icons smaller instead, it would be easier.

sickonede wrote:
2)When I click on photo page on an image shadowbox opens up, but is loading very long (10-30sec for 3 images in the album with full size size of ca. 200kb each over a 20mbit dsl line) until the first image shows up. Only the loading animation is visible. Then I tried fancybox and the first image appears within a second. It seems to me, that shadobox first preloads all the images of an album before displaying the first one. I couldn't find an option to change that. I would prefer continuous preloading and displaying the first image as soon as possible.

it is two different systems so they may work differently :) I am not aware of any options.

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
shidarin

Joined: 2005-09-27
Posts: 14
Posted: Sun, 2012-09-09 16:43

Shadowbox 1.9 with Greydragon 4 beta and Gallery 3.0.4 are working great on my gallery.

Shadowbox is exactly what I need- way better than Colorbox or Fancybox- but it doesn't do captions :(

Any chance for a future version of Shadowbox with optional caption hacks (as seen here and here) built in?

 
smallIT

Joined: 2012-10-28
Posts: 7
Posted: Tue, 2012-10-30 08:38

Hi,
I must be missing something obvious, because on my install I am not getting any sort of slideshow or keyboard navigation. Instead, the image expands into a shadowbox with a pretty animation as it should, "View Full Size" is in the top left corner, and an "x" to close is in the lower right corner. It seems as though the Gallery Mode Settings (countertype settings) and Enable Keys are being ignored in the Module Settings. All suggestions are welcome. ;-)
Thank you.



* Gallery Version: 3.0.4 (Ricochet) * Gallery Wind Theme *

 
mike365
mike365's picture

Joined: 2012-10-30
Posts: 1
Posted: Tue, 2012-10-30 11:44

Did you get resolution to the above?

 
solareclipse2

Joined: 2013-07-19
Posts: 1
Posted: Fri, 2013-07-19 21:06

I just installed shadowbox on my gallery3 gallery and removed the plugin but my photos are still shadowboxing.

When shadowbox was installed I could not see the close icon or anything else butt he photo. If I clicked off of the photo it would close but I'd like the icons. Furthermore, if it was a small photo it would not center on the screen it would display at the top. Only large photos would be centered on the screen.

Can someone either help me remove shadowbox completely (deleting the plugin from my ftp did not work) or help me fix the issues that I have?

Thanks

 
costu

Joined: 2013-08-23
Posts: 2
Posted: Fri, 2013-08-23 15:31

I am using Gallery 3.0.9 and the latest version of Shadowbox and have two questions.
1. I have 50+ images in my photo gallery, and I have my gallery set to display 15 images on a page. Shadowbox works great, and display's the images on a specific page just fine. Say I click the first photo and proceed forward with shadowbox. When shadowbox gets to the 15th image on a page, it either stops there and won't go forward any more (depending on my settings) or shadow box will wrap around to image 1. Is there any way to get shadowbox to go to image #16 on the next page of the gallery?
2. Is there a way to get shadowbox to work with an android phone browser (IE Chrome) or other mobile phones? Alternatively, is there a way to disable shadowbox based on browser type?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-08-23 16:33

I have a new slideshow for G3 almost complete http://testr.suprsidr.com/gallery3/index.php/diffs <- click the slideshow button.

All I have left to do is add tag support.
https://github.com/suprsidr/gallery3/tree/master/modules/slideshow

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Sat, 2013-08-24 04:16
costu wrote:
I am using Gallery 3.0.9 and the latest version of Shadowbox and have two questions.
1. I have 50+ images in my photo gallery, and I have my gallery set to display 15 images on a page. Shadowbox works great, and display's the images on a specific page just fine. Say I click the first photo and proceed forward with shadowbox. When shadowbox gets to the 15th image on a page, it either stops there and won't go forward any more (depending on my settings) or shadow box will wrap around to image 1. Is there any way to get shadowbox to go to image #16 on the next page of the gallery?

Which theme are you using? I have been working with rWatcher to solve problems with the Greydragon theme, and one of them was pretty much this. There is a patch rWatcher provided at the end of the tag albums thread:

http://galleryproject.org/node/102022?page=4#comment-405593

which I think should also work for shadowbox. If it's another theme then it won't work.

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Sat, 2013-08-24 04:32
suprsidr wrote:
I have a new slideshow for G3 almost complete http://testr.suprsidr.com/gallery3/index.php/diffs <- click the slideshow button.

All I have left to do is add tag support.
https://github.com/suprsidr/gallery3/tree/master/modules/slideshow

This would be a great leap forward! The Cooliris slideshow is not very good. By which I mean that it's slow to load and its image resizing produces terrible image quality.

Tag support is highly relevant for me. My gallery relies heavily on being able to navigate tags and tag albums and other dynamic pages. I rely very much on the new tag navigation code introduced around 3.0.3 0 3.0.4 and also on rWatcher's tag albums module. He and I have been working offline in recent days to fix some bugs regarding the way that all this works in Greydragon. I'll post our findings when we've finished. (When I say "he and I have been working" what I really mean is that I've been finding problems and rWatcher has been kind enough to fix them, and I'm very, very grateful for his assistance.)

But something that we haven't been able to do is get the cooliris slideshow to work with such dynamic albums, given its dependence on RSS. It would be really great if yours could.

Is your new slideshow something that we're likely to be able to use with G3.0.9 or will we have to wait for G3.1, as I see that your site is running build 365 of the beta for G3.1?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-08-24 13:20
undagiga wrote:
Is your new slideshow something that we're likely to be able to use with G3.0.9 or will we have to wait for G3.1

I was asked to create a new slideshow module for 3.1 to replace cooliris, but I see no reason it would not work for 3.0.x
Its based on the free open source Galleria slideshow that I had demoed previously.
Currently my code is in review, and the tag functionality will be added as soon as I get a few moments to work on it. It is safe to try in it current condition(just won't work in tag album).

BTW Galleria has other themes. I have purchased Twelve and Miniml <- Don't think Miniml would work for G3

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Sun, 2013-08-25 00:19

I'd like to ask some further questions, but rather hijack the Shadowbox thread, perhaps you could start a new one and I could then ask?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-08-25 02:05
 
costu

Joined: 2013-08-23
Posts: 2
Posted: Sun, 2013-08-25 21:26

I am using the CleanCanvas theme so what you mention doesn't seem like it will work.