I tried upgrading to alpha2 and it wouldn't record the file path of the custom template.

Also, with alpha2 it's not necessary to hack the code to only preload imagecache thumbnails linked to image. Creating the Views field template file that only prints the content variable works.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaron’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.x-dev
Status: Active » Fixed

sorry; a fix for this has been committed now. will make a new release shortly.

paul.moloney’s picture

* double post *

paul.moloney’s picture

Status: Fixed » Active

I've had a similar problem, although in my case none of the Galleria option parameters are being saved. They all stay as default no matter what is input - autoplay, height, max size ratio, transition... the galleria works, but only ever uses the default settings.

I've tried with the alpha2, beta1 and the latest dev release but they've all had the same issue. I'm using views 6.x-2.11 and using a recent commit of the Galleria jQuery plugin (commit c2f7a2bc27f97a1c08f6, to be exact).

flexgrip’s picture

Same problem here. I have not tried the latest beta 3 because the commits don't mention this problem being fixed. Should I? All I really want it autoplay to work but it seems that not a single setting in the "Style: Slideshow" settings works. I set them up how I want and then the jquery.extend functionality seems to be printed out, but it must not be changing the right objects.

<script type="text/javascript"> 
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/-------.com/", "viewsSlideshowGalleria": { "views-slideshow-galleria-images-1": { "theme": "classic", "carousel": 0, "carousel_speed": 200, "data_image_selector": "img", "data_source": "", "data_type": "auto", "debug": 0, "image_crop": 0, "image_margin": 0, "image_position": "center", "keep_source": 0, "popup_links": 0, "queue": true, "show": 0, "thumb_crop": true, "thumb_margin": 0, "transition": "fade", "transition_speed": 400, "themeURL": "/------.com/sites/all/libraries/galleria/themes/classic/galleria.classic.js", "autoplay": 3000, "carousel_steps": 0, "height": "auto", "preload": 0, "thumb_quality": 1, "thumbnails": 1 } } });
//--><!]]>
</script> 

Those are my settings and should be extending the galleria objects but they are not.

syturvy’s picture

Same problem over here.

mangus580’s picture

Has anyone found the fix for this yet?

Thanks

thinkact’s picture

Status: Active » Needs work
FileSize
7.92 KB

Galleria is very impressive. With this module, I have have a flexible contents displaying using Galleria.

I tried to make it work with the latest version of Galleria. After some investigation, the routine passing parameters to Galleria is not compatible. This version of Galleria stops displaying if some true/false fields passing the "0". So, these field values are updated according to Galleria documentation. New settings, transition (pulse) and thumbnail (numbers), are added too.
Due to the lack of time, new options has not been added.
However, I cannot use the code from Galleria documentation to use the "extend" function. Anyway, the autoplay should be working with this patch.

(I'm using the 6.x-1.x-dev version)

jamesbenison’s picture

I have fixed the extend problem in a D7 version that I made. The other variables aren't visible in this code, but they are there in the settings array passed from the theme file, and they get passed to the Galleria, and it works. It should be possible to backport this code to D6. Only difference being in D6 being the 'attach' is not there.

(function($) {
Drupal.behaviors.viewsSlideshowGalleria = {
  attach: function (context) {
    for (id in Drupal.settings.viewsSlideshowGalleria) {
      $('#' + id + ':not(.viewsSlideshowGalleria-processed)', context).addClass('viewsSlideshowGalleria-processed').each(function () {
        var _settings = Drupal.settings.viewsSlideshowGalleria[$(this).attr('id')];

        // Eval settings
	var galDataSource = _settings['data_source'];
	if (galDataSource) {
          eval("_settings['data_source'] = " + galDataSource);
        }
	var galDataConfig = _settings['data_config'];
	if (galDataConfig) {
          eval("_settings['data_config'] = " + galDataConfig);
        }
	var galExtend = _settings['extend'];
	if (galExtend) {
          eval("_settings['extend'] = " + galExtend);
        }
		
        // Fire up the Galleria.
        $(this).galleria(_settings);
     });
    }
  }
}

})(jQuery);

I would do this except that I'm wicked busy for one and also my testing boxes have php 5.3 on them, which d6 doesn't like.

Galleria.loadTheme should be added inline. And both the loadTheme and module javascript should be in the footer. ThemeURL does not need to be passed with the settings array.

jamesbenison’s picture

I'm working on Galleria now and noticed a couple things with this code.
if statement should check if the _setting is present before creating a new variable
I don't think data source needs eval

jrstmartin’s picture

Small adjustment to patch in #7 in order to load purchased themes. Path to the theme's JS file began with two forward-slashes no matter what. This patch fixes it for my case.

patch -bp0 < path/to/patchfile.patch from the modules directory (sites/all/modules).

HS’s picture

Status: Needs work » Needs review