Module: Fancybox Integration - v.1.5

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2010-10-22 19:56

Adds Fancybox integration for Gallery 3.
After installation, fine-tune the startup settings by visiting module's admin page

---
Problems? Report it here | Get latest version | Coffee Fund | My Library | Blog

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Fri, 2010-10-22 23:49

Hi -- I installed the module, but on the configuration screen can't figure out what I need to enter in for the "Target Link Element" field as shown here: http://screencast.com/t/OpUK7kMsRvMw. Do I just leave as is? If so, then for some reason when I click on images in my gallery the fancy box doesn't show up. I just get the standard "View Full Size" as shown here.

Thanks,

Marc

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Sat, 2010-10-23 00:48

Hey, this isn't showing up on the G3 Modules namespace page (http://codex.gallery2.org/Category:Gallery_3:Modules), so it isn't being included in GalleryModules. I'm not a wiki genius, so i'm not quite sure what's going on...

edit: fixed it for you...you had your category link incorrect. view the history on the page to see what i mean.
--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sat, 2010-10-23 04:33

@shecter: please try "#g-item #g-photo .g-fullsize-link" (no quotes)
Please note, it is still work in progress, since there are lot of options to cover
Default state is for GD theme

@dmolavi: yes, forgot to change this. Thanks!

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Sat, 2010-10-23 05:03

Hi Serge,

Thanks for the note. I entered in the new information as shown here. But it seems like this module isn't even really turned on. See this brief video of my experience. In it, you'll notice that the images does enlarge when clicked, but it is using the standard gallery3 enlargement method and not fancy box. Besides your module, was I supposed to install some other FancyBox software on my server?

-Marc

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sat, 2010-10-23 14:28

i have not tested it with default wind theme, yet, so i may be missing something
does it work for you if you wisit my web-site?
and,no, no additional code need to be installed - check the code of the page to see if fancybox refernces are there

PS. did you turn off index.php by the g3 for your site?

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Sat, 2010-10-23 23:57

Hi Serge,

I installed grey dragon theme v2.4 and shadobox (the theme admin panel said i had to). when i look at a photo page, i can't click anywhere on the image to see the enlarged view. i must click on either of these two elements, and then i think i'm seeing the shadowbox and not fancy box. see this screen shot.

1. how do i make it so clicking anywhere on the image brings up the enlarged view?
2. how do i make the graydragon theme work with fancybox?

EDIT:
I uninstalled shadowbox, and gray dragon theme, both deactivating them and removing them from my server. then i ensured the fancy box and wind were both active. It appears now that FancyBox is working, sort of. See this screen capture. It appears to be missing back/next arrows. and there is a strange bit of text towards the bottom of the image.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-10-25 02:18

Look here - http://photo.dragonsoft.us/Hawaii/bigisland/Diving/2008_03190126
both shadowbox and fancybox would act the same - you click on the image
something in your configuration is not right, because [Full View Link] is part of the sidebar and not an image itself
what 3rds party modules you have installed?

for EDIT coment: again, something is wrong there since it is a caption/image name should be in the bottom area...

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Mon, 2010-10-25 03:33

Hi,

here's the modules i have installed: http://screencast.com/t/K2O0RRBB.

here's what's currently in my sidebar: http://screencast.com/t/4vQ1GuVx

Please let me know if you see anything strange in my config.

-Marc

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-10-25 05:46

Oh! well, it is hard to say how each of this modules can interfere/hack the theme
you can try disabling 3rd party modules one-by-one and see which causes the problem
I would suggest to try from "download" one...

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Mon, 2010-10-25 15:25

Hi Serge,

I turned off all modules except "Fancy Box", and activated the Grey Dragon Wind Theme. See my current list.

The box still appears to have some issues. It is missing the next/back errors, and it has that text at the bottom of the box. See this screen capture.

-Marc

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-10-25 18:00

Wind or GD Wind theme, they both are based on the same JS structure
you have to disable default preview functionality of the theme
To do so:

  • in page.html.php comment out line
    <?= $theme->script("gallery.show_full_size.js") ?>
  • in photo.html.php comment out lines
    $(".g-fullsize-link").click(function() {
    $.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, full_dims[0], full_dims[1]);
    return false;
    });
  • in fancybox module configuration, specify .g-fullsize-link as a target

PS. Added to module's description page

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Mon, 2010-10-25 18:04

Is the best bet to use "GreyDragon" v2.4 to get fancy boxes or shadow box to work? Would "GreyDragon" v2.4 require any changes?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-10-25 20:25

inside GD theme, you would need to wait for 2.4.4 which is coming out soon :)

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2010-11-02 20:05

Almost forgot, version 1.1 is out

  • Options, Options, more options
  • Dynamic JS generation improved
 
EmmetMoore

Joined: 2009-07-24
Posts: 11
Posted: Wed, 2010-11-10 12:12

Hi,

as an FYI to anyone else having a similiar problem (like me). I discovered that the Photo Annotation module was causing the error of seeing the "view full size" on the photo. I'm guessing it is because of layers in the page? I used the "module order" module to see if re-organising the modules would make any difference - unfortunately not :-(

Update:
I've narrowed it down to the file items_face.php located in /modules/photoannotation/models. I don't know anything about kohana, but I'll update if I find a solution.

Hope it helps someone.

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Wed, 2010-11-24 05:53

Fancy box is working for me now. But How do I get the nav arrows to show as shown in this capture: http://www.screencast.com/t/lRHEavU36M.

I checked the file jquery.fancybox-1.3.2.js, and it shows the setting "showNavArrows" as set to true, so I'm not sure why its not working. Here's what the fancy box implementation looks like on my site: http://screencast.com/t/SVJzxgAFbJ.

-Marc

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2010-11-24 17:46

For arrows to work, Fancybox need to be started in Image gallery mode - see section here
for that special code need to be introduced to the photo.htnl.php
you can refer to GreyDragon theme for more details

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Wed, 2010-11-24 21:18

Sorry...would you simplify your response? I couldn't figure out what code to insert into photo.html.php of wind.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2010-11-24 22:07

Experiment with this. This is direct snippet from my theme, so you may need to adjust it a little.

    <? $siblings = $item->parent()->children(); ?>
    <? $siblings_count = count($siblings) - 1; ?>
    <div class="g-resize" >
    <? for ($i = 0; ($i <= $siblings_count); $i++): ?>
      <? if ($siblings[$i]->rand_key == $item->rand_key): ?>
         <a title="<?= $theme->bb2html(html::purify($item->title), 2) ?>" <?= ($include_single)? "class=\"g-sb-preview\"" : "target=_blank;"; ?> <?= ($include_list)? "rel=\"g-preview\"" : null; ?> href="<?= (access::can("view_full", $item))? $item->file_url() : $item->resize_url(); ?>">
         <?= $item->resize_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize", "alt" => $_title)) ?>
         </a>
      <? else: ?>
        <? if ($include_list): ?>
          <? if (!$siblings[$i]->is_album()): ?>
          <a title="<?= $theme->bb2html(html::purify($siblings[$i]->title), 2) ?>" class="g-sb-preview g-hide" rel="g-preview" href="<?= (access::can("view_full", $siblings[$i]))? $siblings[$i]->file_url() : $siblings[$i]->resize_url(); ?>">&nbsp;</a>
          <? endif; ?>  
        <? endif; ?>
      <? endif; ?>
    <? endfor; ?>
</div>
 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sat, 2010-12-11 01:54

version 1.2 released:

  • Fixed syntax error in IE7/IE8 Compatibility Mode
  • FancyBox core updated to 1.3.4
  • Admin form backend optimization
 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2010-12-15 23:53
shecter wrote:
Sorry...would you simplify your response? I couldn't figure out what code to insert into photo.html.php of wind.

I do not know if it was you or not, but there is some info from FancyBox forum on how to specify list of images to be displayed in FB without invisible links

http://groups.google.com/group/fancybox/browse_thread/thread/c8000121907eb362

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sun, 2010-12-19 03:20

version 1.3 is out:

  • ADMIN: Added support for [Overlay Dynamic] title position
  • ADMIN: Added option to allow cyclic navigation
  • Fixed issue with [Title Position = Hide] still showing title
 
pelipen

Joined: 2009-08-02
Posts: 2
Posted: Mon, 2010-12-20 15:19

1.3 seems to have broken... everything.
1.2 was working mostly fine with Dark Canvas theme (same php preview edits as Wind). In 1.2 the image title never worked, it was always "View full size". I upgraded to 1.3 so I could hide titles, and...

1.3 now opens the image directly in the browser, as if it was just a link to a jpg.

To install 1.3, I deactivated the module, deleted the module directory, unziped the new one, re-enabled the module, saved the settings.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-12-20 16:26

"works on my machine" :)
can you pm me your fancybox-init.js?

 
geewee

Joined: 2003-10-24
Posts: 41
Posted: Thu, 2010-12-30 17:44

Over here FancyBox (1.3) is not working, either. Using GD 2.7.2, when I click on a photo or hit the fullscreen icon, I get the fullsize photo on white bg. I have disabled all modules except Info, Kbd Nav and Thumb Nav., but no improvement.

G3 shows this:

fancybox settings a:0:{}

I reset and saved FB default settings, but my fancybox-init.js is smaller than the original one:

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

$(document).ready(function() {
  $("a.g-sb-preview").fancybox({
    ,'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {         return 'Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' : ' + title;
      }
  });

  $("a.g-fullsize-link").fancybox({
    ,'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {         return 'Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' : ' + title;
      }
  });

});

Do you have a clue what's going on here?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2010-12-30 19:12

yes, I do... Thanks
Try to replace this file and save settings again

 
geewee

Joined: 2003-10-24
Posts: 41
Posted: Thu, 2010-12-30 21:44

I did, but no change...

OK, after changing the file I de-/installed the plugin and now it works... great!

Thanks a lot! :-)

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2010-12-31 00:18

version 1.4:

  • Fixed issue with module in default state not properly creating JS with settings
  • Some layout cleanup
 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Mon, 2011-01-10 09:58

Serge,

(1) I switched from Shadowbox to Fancybox and I can't see how to enable "Image Gallery" to get the navigation arrows after opening the image in Fancybox.

(2) The "elastic" setting doesn't work for me. It's not bouncing when opening or closing. It works when I go to your demo page though.

(3) Using Firebug, I'm getting this script error, even though I deleted Shadowbox from the modules directory:

Shadowbox is not defined
Line 57
Shadowbox.setup("a.g-fullsize-link", {player: 'img'});
58 Shadowbox.setup("a.g-sb-preview", {player: 'img', gallery: "preview", animate: true, continuous: true, counterType: "skip", animSequence: "wh", slideshowDelay: 7 });
59 } catch (e) { }

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2011-01-10 15:15
dwdallam wrote:
(1) I switched from Shadowbox to Fancybox and I can't see how to enable "Image Gallery" to get the navigation arrows after opening the image in Fancybox.

Please backup your fancybox-init.js to be compared with later...
Have you saved your FancyBox admin settings at least once?

My settings, if it would help (in admin order for FancyBox):

  • a.g-sb-preview;a.g-fullsize-link
  • checked
  • 10
  • checked
  • #000
  • 0.6
  • overlay
  • elastic
  • elastic
  • 300
  • 300
  • 300
  • checked
  • unchecked
  • unchecked
  • unchecked
  • checked
  • checked
dwdallam wrote:
(3) Using Firebug, I'm getting this script error, even though I deleted Shadowbox from the modules directory:

yes, there is hidden error as I do not analize in js for SB presence. I will add the check at some point. it should not affect FB though
Theme's admin panel should say in requirements that FB is present.

 
buzzz

Joined: 2010-12-12
Posts: 6
Posted: Mon, 2011-01-10 21:11

Hello,

Thank you for this module.
I just have one "problem"/request: currently, when the visitors click on the picture to see it in fullscreen, they download the fullsize image. As most of my pictures are photos of 7MB, the display is very slow.
So, I would like to change something to use the resized picture in full screen view.
Should I change something in the FancyBox module or somewhere else in the code/theme? I already tried to change the value of Target (but cannot find the correct value) and I don't want to use the permission "Deny full size picture".

Info:
Gallery 3.41
Theme : GreyDragon 2.7.5
Module : Fancybox 1.4
OS: Linux 2.6.18 (CentOS 5.5)
Web server: Apache 2.2.14 + PHP 5.3.1

Thank you,

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2011-01-10 22:48

FB uses references from the page (defined by the theme)
Theme (GD) injects full size if full size view is allowed and resize if it is not allowed.
if full size is allowed, then to show resize is possible but it would require theme changes
See line 65 in photo.html.php (access::can("view_full", $item) reference)

 
shecter
shecter's picture

Joined: 2006-12-30
Posts: 130
Posted: Tue, 2011-01-11 01:41

Hi,

What does the cyclic navigation do? And does it work with the default Wind theme?

-Marc

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-01-11 02:17
shecter wrote:
What does the cyclic navigation do? And does it work with the default Wind theme?

when you reach last item in the list, it starts over...
yes and no,
read more about wind theme integration here

Also note that wind theme's photo page does not have any extra information for the gallery mode (multiple images need to be referenced in the page). you can introduce this by making similar changes as in GD theme for photo.html.php file

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Tue, 2011-01-11 07:15

Yes I always save the setting of mods right after I install them.

That's pretty much how mine is too but I can't get the elastic effect to work or the arrows for the navigation to show. I know it's not my browser because the elastic effect and the navigation arrows work on your demo site:

http://www.dwdallam.com/G3_DWDALLAM/index.php/Archive/Landscape/13x7_2006_12_03_HdPtSS_116
Se here for what I mean.

Serge D wrote:
dwdallam wrote:
(1) I switched from Shadowbox to Fancybox and I can't see how to enable "Image Gallery" to get the navigation arrows after opening the image in Fancybox.

Please backup your fancybox-init.js to be compared with later...
Have you saved your FancyBox admin settings at least once?

My settings, if it would help (in admin order for FancyBox):

  • a.g-sb-preview;a.g-fullsize-link
  • checked
  • 10
  • checked
  • #000
  • 0.6
  • overlay
  • elastic
  • elastic
  • 300
  • 300
  • 300
  • checked
  • unchecked
  • unchecked
  • unchecked
  • checked
  • checked
dwdallam wrote:
(3) Using Firebug, I'm getting this script error, even though I deleted Shadowbox from the modules directory:

yes, there is hidden error as I do not analize in js for SB presence. I will add the check at some point. it should not affect FB though
Theme's admin panel should say in requirements that FB is present.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-01-11 15:12
dwdallam wrote:
Yes I always save the setting of mods right after I install them.

That's pretty much how mine is too but I can't get the elastic effect to work or the arrows for the navigation to show. I know it's not my browser because the elastic effect and the navigation arrows work on your demo site:

http://www.dwdallam.com/G3_DWDALLAM/index.php/Archive/Landscape/13x7_2006_12_03_HdPtSS_116
Se here for what I mean.

Ah, ok
then it is a different story.
transformation rule in jquery.fancybox-1.3.4.css is not set (is mentioned on the module's codex page)

in file above look for '/modules/fancybox/core/' next to DXImageTransform...
it has to directly reference location of the respected PNG (there are few of them there)
for your setup I think it would be
'/G3_DWDALLAM/modules/fancybox/core/'

 
buzzz

Joined: 2010-12-12
Posts: 6
Posted: Tue, 2011-01-11 21:07
Serge D wrote:
FB uses references from the page (defined by the theme)
Theme (GD) injects full size if full size view is allowed and resize if it is not allowed.
if full size is allowed, then to show resize is possible but it would require theme changes
See line 65 in photo.html.php (access::can("view_full", $item) reference)

Thank you Serge, it works fine when changing lines 65 and 81(to also use the resized picture when pressing left or right button).

Good job for your great theme and modules.

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Tue, 2011-01-11 23:21
Serge D wrote:
Ah, ok
then it is a different story.
transformation rule in jquery.fancybox-1.3.4.css is not set (is mentioned on the module's codex page)

in file above look for '/modules/fancybox/core/' next to DXImageTransform...
it has to directly reference location of the respected PNG (there are few of them there)
for your setup I think it would be
'/G3_DWDALLAM/modules/fancybox/core/'

I changed all of them to

/G3_DWDALLAM/modules/fancybox/core/

and nothing happened. I noticed that all of these changes are for IE6+ but not Firefox? I teste3d in Firefox 3.6+ and IE8, still no elastic nor navigation arrows.

eg:
.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/G3_DWDALLAM/modules/fancybox/core/fancy_shadow_nw.png/fancy_shadow_n.png', sizingMethod='scale'); }

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-01-11 23:47

hm,

well, for once photo.html.php does not produce list of hidden image items, so there is no gallery mode and so you have Image 1/1... there is no next or prior image
this would be the case if you set FancyBox mode in Theme's admin panel to Preview Only instead of Default
you do not allow visitors to see full image, so elastic would only mean that picture slides into center position

PS: I also looked at the page, there is an error in CSS definition
#fancybox-bg-n has progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/G3_DWDALLAM/modules/fancybox/core/fancy_shadow_nw.png/fancy_shadow_n.png', sizingMethod='scale')
notice that png file is referenced twice - should be just fancy_shadow_n.png

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Wed, 2011-01-12 06:21

Serge everything works fine now except the "elastic" option. That still isn't working. And I don't know if the image is suppose to fly off the left side of the page when you close it, but that's what it does. Go to the page. click on the image, then navigate to the next image. After it loads, "close" the image and it will fly of the page to the left--lol. Not a bad effect, but not the one your demo page shows. And still no elastic effect :(

http://www.dwdallam.com/G3_DWDALLAM/index.php/Portfolio/People/_OUG0741

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2011-01-12 06:33

it seems like it should be for the mode you have selected
you do have elastic effect - when going from different photo orientation, photo resizes in "elastic" fashion
left corner effect... interesting, but I do not control it...

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Wed, 2011-01-12 06:40

Serge, on the Fancybox demo page

http://www.fancybox.net/

The elastic when opening the image and closing the image is different. When opening, it grows large then snaps back to normal size. When closing it, it does the same thing, grows a few pixels then snaps closed. Mine looks nothing like that.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2011-01-12 07:09

Ah-ha. well, you are looking for another option which I do not support right now - easingIn, easingOut

Some samples - 1, 2
I have understanding on what need to be done, but just did not have time to add support for it

For the example you are refering to settings are

("a#example2").fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'easingIn' : 'easeOutBack',
'easingOut' : 'easeInBack'

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Wed, 2011-01-12 07:17

So I've been trying to get it to do something it cannot do? LOL Thank Serge. Do you like that "easout" effect? I think it's pretty cool.

Serge D wrote:
Ah-ha. well, you are looking for another option which I do not support right now - easingIn, easingOut

Some samples - 1, 2
I have understanding on what need to be done, but just did not have time to add support for it

For the example you are refering to settings are

("a#example2").fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'easingIn' : 'easeOutBack',
'easingOut' : 'easeInBack'

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-01-25 21:05

version 1.5 is out:

  • Added reminder to make sure that module is initialized before first use
  • Optimized so that G3 does combine JS/CSS code
 
vhenninot

Joined: 2008-09-26
Posts: 32
Posted: Tue, 2011-01-25 21:40

Hello,

I just upgrade with my 3.0.1 gallery.. but still not working...
(Full size images are opening in a new tab)

And with greydragon theme :
- login is not visible
- admin submenu are not showing !

Vincent

 
vhenninot

Joined: 2008-09-26
Posts: 32
Posted: Tue, 2011-01-25 21:45

Sorry, it was the Fancybox option "Title Position (default: Outside)" set to Hide !
When set to "outside" Everything is working again... just PERFECT !

Vincent

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-01-25 22:33

I thought I have uploaded proper version
try the get latest from the codex again and "hide" should work

 
EJNeilsen

Joined: 2011-03-28
Posts: 21
Posted: Mon, 2011-03-28 20:55

I was just checking my 404 on my site and it has many issues with fancy box. So I must have missed a few steps. In looking at the install section, I need to include some lines of code. I am VERY new at this and not too well studied.

comment out is being referred to.

in page.html.php comment out line< ?= $theme->script("gallery.show_full_size.js") ?>
in photo.html.php comment out lines $(".g-fullsize-link").click(function() { $.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, full_dims[0], full_dims[1]); return false; });
in fancybox module configuration, specify .g-fullsize-link as a target

I am looking for these lines to change, but are they even there or am I to write and insert them. If so, where.

i am using this with Gal 3.0.1 and grey dragon.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2011-03-29 07:56

if you use latest version of the theme and the module only thing you need to do is enable module
no changes to the code itself necessary