Module: Fancybox Integration - v.1.5

Joe D
Joe D's picture

Joined: 2012-01-16
Posts: 11
Posted: Wed, 2012-01-18 03:09

Thanks, reloaded the module and works / Joe

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2012-01-18 05:52

Glad it worked
G3 is expecting certain folder structure when module is uploaded to the server :)

 
zoki

Joined: 2012-03-15
Posts: 2
Posted: Thu, 2012-03-15 10:47

Can somebody tell me why when viewing the album, when I click on thumbnail it takes me to that particular image? It doesn't open that image in the Fancybox popup? It opens Fancybox popup when I click the image in the image view.

For example, see my gallery: http://www.zoranraskovic.com/index.php/Rodos-2011 . WHen you click any image it should open the popup window but it doesn't.

Inside Fancybox settings I Have set for target: a.g-sb-preview;a.g-fullsize-link

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-03-15 11:24

try a.g-thumblink

*EDIT
Actually that would open the resulting page in fancybox, not just the image.
The album page would need to link directly to the image.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2012-03-15 16:51

Since you are using GD theme, then under "Advanced Options - Album Page", check "Disable Photo Page (use Slideshow Mode)"
This would disable photo page replacing it with FB overlay.

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
zoki

Joined: 2012-03-15
Posts: 2
Posted: Thu, 2012-03-15 20:49

Thanks, that worked.

 
turtlemotion

Joined: 2012-03-22
Posts: 1
Posted: Thu, 2012-03-22 11:55

Hello,

I have few problems using fancybox 1.5 with GD 3.1.4

1. Even tho I set opacity - #000 - 1 (opague) , its still somehow transparent.. Actually, doesnt matter what i set, from transparent to full 1, it still looks like 0.5 (half visible)

2. Whatever title position I choose, there is none..

I tried 2 other "boxes" colorbox and shadowbox and all their setting seems to work, but as I like fancyone more, spend hours digging to make it work and nothing. Thanks for any possible suggestions, I dont see anything i could be doing wrong

PS: one strange thing, it doesnt work on server, but it does on localhost :-/ .. ring a bell ?

aaarrrggghhhh... I found it.. dont know for what reason, but one file was 10b smaller so probably some copy trouble :)

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2012-03-22 17:32
turtlemotion wrote:
1. Even tho I set opacity - #000 - 1 (opague) , its still somehow transparent.. Actually, doesnt matter what i set, from transparent to full 1, it still looks like 0.5 (half visible)

Completely black on mine.

turtlemotion wrote:
2. Whatever title position I choose, there is none..

Works just fine.
I think either settings are not saved - check time stamp for fancybox-init.js - check write rights for js folder
or Check if you have any JS errors, as FB is not initialized properly for you.

turtlemotion wrote:
PS: one strange thing, it doesnt work on server, but it does on localhost :-/ .. ring a bell ?

yes, write rights and/or upload problems

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Tue, 2012-04-24 21:27

Anyway to adjust the size of the fancybox window? Mine are just slightly larger than the resized, and kinda defeats the 'full size' request.

Or, is there a way to 'supersize' the fancybox screen?

Hopefully this make sense. (maybe it's theme specific? If so, how/where)

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2012-04-25 03:43
jnash wrote:
Anyway to adjust the size of the fancybox window? Mine are just slightly larger than the resized, and kinda defeats the 'full size' request.

Or, is there a way to 'supersize' the fancybox screen?

Hopefully this make sense. (maybe it's theme specific? If so, how/where)

Usually it adjust to size of the image, but there are also margins, you can adjust those via settings

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Wed, 2012-04-25 12:49

I'll have to take a better look, but my rather large images are only showing up slightly larger than the resize... maybe I'm going nuts... I'll look into it.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2012-04-25 15:36
jnash wrote:
I'll have to take a better look, but my rather large images are only showing up slightly larger than the resize... maybe I'm going nuts... I'll look into it.

as I said above, you need to "hack" fancybox-init.js for each .fancybox call you need to add margin: NNNN
I do not have this setting exposed via admin section, so you would need to remember to add it every time you change the settings for the module, sorry

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Wed, 2012-04-25 16:41
Serge D wrote:
jnash wrote:
I'll have to take a better look, but my rather large images are only showing up slightly larger than the resize... maybe I'm going nuts... I'll look into it.

as I said above, you need to "hack" fancybox-init.js for each .fancybox call you need to add margin: NNNN
I do not have this setting exposed via admin section, so you would need to remember to add it every time you change the settings for the module, sorry

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

Gotcha, thanks, worked a charm!

 
eeldivad

Joined: 2005-09-19
Posts: 42
Posted: Mon, 2012-05-14 21:21

i want to be able to click outside of the frame window of the fancybox to auto close fancybox, but it doesn't work. i have to hit the close link, but its so much easier to click outside the box. i checked the box "close on content click" but that doesn't seem to do anything cuz when i click on the image or outside the frame, nothing happens. bug? the esc key to close works though.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2012-05-14 21:37
eeldivad wrote:
i want to be able to click outside of the frame window of the fancybox to auto close fancybox, but it doesn't work. i have to hit the close link, but its so much easier to click outside the box. i checked the box "close on content click" but that doesn't seem to do anything cuz when i click on the image or outside the frame, nothing happens. bug? the esc key to close works though.

Works on mine
make sure that generated fancybox-init.js does not have

,'hideOnOverlayClick' : false

or it is true

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
eeldivad

Joined: 2005-09-19
Posts: 42
Posted: Mon, 2012-05-14 21:54

it does have it, see below. i also verified in firebug that its there when fancybox opens. what can i do to fix it or is this something you have to fix in next release?

// ******* Auto-generated file. Please do not change. ***

$(document).ready(function() {
$("a.g-sb-preview").fancybox({
'overlayColor' : '#000'
,'overlayOpacity' : 0.6
,'titleShow' : false
,'transitionIn' : 'elastic'
,'transitionOut' : 'elastic'
,'hideOnOverlayClick' : false
,'cyclic' : true
});

$("a.g-fullsize-link").fancybox({
'overlayColor' : '#000'
,'overlayOpacity' : 0.6
,'titleShow' : false
,'transitionIn' : 'elastic'
,'transitionOut' : 'elastic'
,'hideOnOverlayClick' : false
,'cyclic' : true
});

});

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2012-05-14 22:15
eeldivad wrote:
it does have it, see below. i also verified in firebug that its there when fancybox opens. what can i do to fix it or is this something you have to fix in next release?

if you set the option properly and saved the settings, it would regenerate the file and remove the line
is timestamp changes when you save the settings?

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
eeldivad

Joined: 2005-09-19
Posts: 42
Posted: Mon, 2012-05-14 22:20

oh but i have the module installed to gallery3\modules\fancybox, which doesn't have global write permission. only my gallery3\var folder has global write. can i install this module to gallery3\var\modules? this way i don't have to remember setting specific folder permissions next time i upgrade gallery.

 
eeldivad

Joined: 2005-09-19
Posts: 42
Posted: Mon, 2012-05-14 22:36

i updated the permission to fancybox-init.js so its now writable and its working now. but if you could have that file written to the var\modules\ folder in the next update, that would be great so we don't have another place to allow write permissions. thanks again!

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2012-05-15 00:49
eeldivad wrote:
i updated the permission to fancybox-init.js so its now writable and its working now. but if you could have that file written to the var\modules\ folder in the next update, that would be great so we don't have another place to allow write permissions. thanks again!

Hm, would consider

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2012-05-15 17:33
eeldivad wrote:
i updated the permission to fancybox-init.js so its now writable and its working now. but if you could have that file written to the var\modules\ folder in the next update, that would be great so we don't have another place to allow write permissions. thanks again!

did some quick check on that, with JS it is not as easy as I want file be part of the aggregated g3 js file.
let's find out how to do this first without hacking the G3 :)

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Mon, 2012-06-04 08:11

delete

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Mon, 2012-06-04 09:56

Serge,

How can I take out the pagination at the bottom of the Fancybox window?

image x/x:

I don't want to take off the title of the image. I need that.

ty

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2012-06-04 16:50

it is not exposed as tag which could be then hidden with CSS, so option you have is to define your own titleFormat event and format title
it is not supported by default by this module

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter