Hi all,

I have the following modules in drupal
views Gallery
Views Slideshow
Views Slideshow: Galleria
jquery 1.3*

When I use views slideshow it all works fine
but with the "Views Slideshow: Galleria" I don't
see anything...

All are current versions.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

same difficulty here...

thumbnails appear in "live preview" of the view, however nothing is shown when I go to the page.

mariacha’s picture

It looks like the latest version of galleria requires jquery 1.4.2. However, switching Drupal to jquery 1.4.2 breaks a lot of other pages, including the views page.

So unless someone has an old commit of galleria.js (one not requiring jquery 1.4.2), this mod (and any others using Galleria) is out of date.

mangus580’s picture

Well if anyone locates an older version of galleria, please let me know....

mangus580’s picture

I went looking, and think I found a previous version, but it still didnt work. I did notice the galleria directory in /sites/all/libraries contains the 1.4.2 version of Jquery... not sure if its referring to it there or not...

TDR’s picture

I'v hardcoded this line in page template:

<script src="http://code.jquery.com/jquery-1.4.2.js"></script>

but it did not solve it. So I guess it not that ^^

edit:
now also added this to a custom template: "node-gallery.tpl.php"

    <script>
    
    // Load the classic theme
    Galleria.loadTheme('https://website.com/sites/all/libraries/aino-galleria-c2f7a2b/src/themes/classic/galleria.classic.js');

    // Initialize Galleria
    $('#views-slideshow-galleria').galleria();
    
    </script>

I get the thumbs now, but no main image...

edit 2:
Oh wait it is there. image is just HUGE.

TDR’s picture

@mariacha which one will it be?

you can find all the releases here:

http://drupal.org/node/849934/release

mangus580’s picture

@TDR I think mariacha meant the actual galleria version, not the module version.

Also, can you describe a little more in depth what you did to make it work above? The image being huge might just be a setting.

TDR’s picture

@mangus580 Well the jquery script I put in the page template (just to be sure of the right version)
and the other part I pasted right before $content in the "node-gallery.tpl.php"

I found also out that
https://website.com/sites/all/libraries/aino-galleria-c2f7a2b/src/themes...
does link the right .js and that the module links
?=sites/all/libraries/aino-galleria-c2f7a2b/src/themes/classic/galleria.classic.js

which pasting does not link the right .js

TDR’s picture

Is there somebody who has been able to get this module working?

If so what are the modules you are using and what versions?

That would really help us out.

mangus580’s picture

@TDR - got an example of what you have accomplished so far? Link? I have not figured out yet where you put your code above, or I would have tried it :-)

mangus580’s picture

See here - this worked for me... essentially you need the jquery update module.

http://drupal.org/node/853204

TDR’s picture

!!!

started with a clean install and id did not work
but looking in the sourcecode of the renderd code I notiched an error
I found that the link to the js did not work:

<script type="text/javascript">
<!--//--><![CDATA[//><!--
Galleria.loadTheme("/drupal/?q=sites/all/libraries/aino-galleria-c2f7a2b/src/themes/classic/galleria.classic.js")
//--><!]]>
</script>

So I hardcoded it in the page.tpl.php of the theme

<script type="text/javascript">
<!--//--><![CDATA[//><!--
Galleria.loadTheme("https://beta.mysite.nl/drupal/sites/all/libraries/aino-galleria-c2f7a2b/src/themes/classic/galleria.classic.js")
//--><!]]>
</script>

it WORKES!

well so far. it flickers like crazy and it doubles the number of images in the gallery
2 img in gallery is 1/4

TDR’s picture

even easier, just add your new or standard .js link to
the custom link inside the settings page.

Voila all works!

TDR’s picture

Status: Active » Closed (fixed)
jimmb’s picture

Status: Closed (fixed) » Active

Sorry to re-open this thread, but I've tried the suggestion in #13 and it's not working.

A little background:

  • I first made a views slideshow, which displays correctly
  • I then installed the Views Slideshow Galleria module as instructed

But when viewing the slideshow, I see nothing. So I installed the 6-x-2.x branch of the JQuery Update module as per #10 here. This also made no difference.

I then tried these paths at /admin/build/views/views_slideshow_galleria:

  • sites/all/libraries/aino-galleria/src (the default)
  • sites/all/libraries/aino-galleria/src/galleria.js
  • sites/all/libraries/aino-galleria/src/themes/classic (since I've selected "Classic" in the views slideshow Galleria settings)
  • /sites/all/libraries/aino-galleria/src/themes/classic/galleria.classic.js

But in all cases (except when using the default path), I get this message:

"To use Galleria, you must first download the plugin package, extract it, and place the entire contents into the folder on your server specified here. (An attempt at autodiscovery will be made if it is within the sites/all/libraries or sites/example.com/libraries folders.)"

... At this point I'm running out of ideas. Any further assistance will be much appreciated!

Jim

mangus580’s picture

Jim, i was unable to get it to work until I totally uninstalled all the views slideshow modules, jquery update, etc, and then installed them again. Worked instantly then.

Mike

jimmb’s picture

Hi Mike, thanks for the suggestion. Unfortunately, it didn't work for me:

First, I uninstalled/deleted: JQuery Update and Views Slideshow Galleria.
I then re-installed those modules, enabled them, etc., but nothing changed.

So then I uninstalled/deleted: JQuery Update, Views Slideshow, and Views Slideshow Galleria.
I re-installed those modules, enabled them, and re-configured the content type/view. Unfortunately, it's still not showing up.

Note that I didn't uninstall the main Views module, because I have other views on the website and don't want to re-do them if it's not needed. So, let me know if you also uninstalled the base Views module...

Otherwise... any other ideas?

Jim

TDR’s picture

Uhm lets see if I can remember.

I've used:

-jQuery Update 6.x-2.0-alpha1
-Views Gallery 6.x-1.3
-Views Slideshow 6.x-2.3
-Views Slideshow: Galleria 6.x-1.x-de

galleria in Library

galleria settings: custom.
Custom theme options: http://www.yoursite.nl/sites/all/libraries/aino-galleria-c2f7a2b/src/the...

worked for me ^^

TDR’s picture

Assigned: TDR » Unassigned
ChristianP’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev

I can't get this to work. I've tried all things in this thread. The gallery just flashes for a quick second and disappears. It is there though, because I can see it in the source code but everything has "style='display:none'" for some reason. If I enable full screen mode, I get the same thing except the whole bottom part of the website is black.

miaoulafrite’s picture

same for me
i tried using jquery update 2.x but still nothing appears
don't understand what i'm doing wrong.

arpieb’s picture

Has anyone had any luck so far? I've managed to nail down it's not a jQuery 1.3 vs 1.4 version issue. I just snagged the latest Galleria plugin from gitHub and tested it using the version loaded by my Drupal installation by changing the themes/classic/classic-demo.html to load jQuery from /sites/all/modules/jquery_update/replace/jquery.min.js?X instead of Google's CDN, and I'm loading jQuery v1.3.2.

On closer inspection, it appears that in the latest dev build of this module the template_preprocess_views_slideshow_galleria() hook is never getting invoked (where all the drupal_add_js() calls exist). I have no

tags for the Galleria JS files (module or plugin), nor any evidence of the Drupal.settings.viewsSlideshowGalleria array being set in the browser. I'm running on D6.20 with:
  • Views 6.x-2.12
  • Views Slideshow 6.x-2.3
  • Views Slideshow: Galleria 6.x-1.x-dev (as of 2011-01-05)
  • jQuery 1.3.2 (via jQuery Update 6.x-2.x-dev)
Time to do some more digging...
julient’s picture

I've spent a long time ready various comments here and there and trying various options. I had the same problem as many, the view on my page was blank. But finally I got it working :)

So here is what I did on a clean D6 install :
1. Under admin/settings/language, check that the "Path Prefix" is empty for your default language
2. Install Jquery Update module 6.x-2.x-dev
3. Edit /sites/all/modules/views_slideshow_galleria/themes/css/views_slideshow_galleria.css to add

.galleria-container {
  width: 725px;
  height: 400px;
}

Thanks for that module and to those who gave the solutions.

cwgriesel’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta3

#23 worked for me! Although I don't have any other languages installed, so I didn't have to do step 1. But I got it to work by installing Jquery Update module 6.x-2.x-dev and editing views_slideshow_galleria.css

Ironmike2’s picture

-----------------------------To make Views Slideshow Galleria Work on drupal 6-------------------------

After playing around alot with drupal and Views i decided i would not be beaten by the galleria module.

Here is what i have put together to make it work.

Modules you need:

Module Version

- Views 6.x-2.12 or the lastest version ( Do not know if previous versions work)

- Views Slideshow 6.x-2.3

- Views Slideshow: 6.x-1.x-dev
Galleria

- jQuery Update 6.x-2.x-dev

Fist things first, if you have any of these modules already but not the versions shown ( most important jQuery Update) then you should disable them on your modules page. JQuery Update should be uninstalled which you can also do on this page at the very top.

Download all modules and enable them all.

You will also need to download Galleria from https://github.com/aino/galleria/downloads

you must download Version 1.2 Click 1 other download tab at the bottom

extract the content of the .zip folder to sites/all/libraries

Now you need to go to Views Slideshow Galleria folder, either on your computer or on your FTP, You need to edit:
sites/all/modules/views_slideshow_galleria/themes/css/views_slideshow_galleria.css

add this at the bottom of the .css file

.galleria-container {
width: 725px;
height: 400px;
}

This will create a container for the galleria view, you may change the dimentions if needed. I think this is nessassery due to Galleria not changing the size of the images uploaded.
*Note Galleria will not show up if you do not do this.

Now you can change your View to style slideshow and change the settings to Galleria, this will give you Galleria options to play about with.
Update options and save to the view, give it a try out. I would advice that you make sure your view works as a normal slide show before switching to galleria just to make sure Views is working correctly.

I would be happy to make a full install instruction for this including creating a slideshow with views, either as a write up or as a tutorial video, if anyone would be interested in this please could u let me know, Cheers Mike

rami attallah’s picture

Status: Active » Needs review
FileSize
771 bytes

I had an issue with Views Slideshow: Galleria and i18n. The problem was that views galleria is working only if "Path Prefix" is empty for default language as Julient described, in my case i'm using "Path prefix with language fallback". The url will contain "en" and galleria will not find the path for galleria.js file.

Here is the patch.
I hope it will help you :)

Ironmike2’s picture

No worries Rami_at i seen that comment above, i didnt put it in since i only have one language, thanks for keeping me right though. I do think that when i get some time i will do a tutorial video for this, and add in all things to try if you can not get it to work.

Ironmike2’s picture

Hey guys, does anyone know how to fix views Slideshow settings, ever since i got galleria working, my slideshow options shows ddlock, galleria, single frame and hoverover settings all at the same time, instead of the drop down box only picking the one.

sgabe’s picture

@rami_at: A patch to fix that issue has been committed already, please see #931354: Wrong theme URL on multilingual sites and report back there if you encounter any problems.

eme’s picture

Following #25 helped me out. Thanks to you Ironmike2.

flacoman91’s picture

big thanks to you IronMike2!

I got it working as well, and I figured out how to get autoplay to work as well. I had to change it in the galleria.js file. autoplay seems to be hardcoded as false.

netentropy’s picture

Ironmike2,

Great post. Saved me some time after I actually found it.

After some configured and renaming some files I almost have the fullscreen theme working however the loader gif is "stuck." The images only load after an initial click.

http://alpha.469ride.com/galleria

I can't find anything in the code to relates to this behavior. I have checked all my paths in head.

Any ideas?

bhavinv’s picture

I tried the above steps (#25) a lot of times . . still i cant get this awesome module to work . .I uninstalled the listed modules on my current site. . .dint work. Then i did a fresh drupal install, still it dint work. . i uninstalled n reinstalled several times but to no avail.It is really annoying not to be able to crack this . The maximum i could get was a black rectangle with the nav buttons on it. . but now i cant even get that. Any help or a tutorial will be greatly appreciated. I want to know the exact path of the galleria plugin too.

Thanks in advance.

netentropy’s picture

Did you change the galleria js file name from gallieria-1.4.js to just galleria.js?

bhavinv’s picture

I did not have to . .it was already galleria.js. I downloaded it from the github site as is .

netentropy’s picture

Did you add the galleria stage dimension to the modules theme css? Not the galleria library but the actual modules css file.

bhavinv’s picture

I have edited the module css.
Is it necessary to use only image fields for display in Galleria ?
I have given the path to galleria plugin as sites/all/libraries/aino-galleria-a2c1c16/src/themes/classic/galleria.classic.js
Is it correct?

prateekS’s picture

Hi,

I have installed views slideshow galleria module and follow same steps as suggested by 'Ironmike2' on comment#25, also passed
sites/all/libraries/src/themes/classic/galleria.classic.js in admin/build/views/views_slideshow_galleria page but still found no galleria slideshow in frontend page but those thumbnails appear in "live preview" of the view. Any one have idea what is the problem ?

lunazoid’s picture

I was having trouble getting anything to show up, following the steps in #25. Then I noticed that IronMike2 had said to download version 1.2 of Galleria. I had been using the current 1.2.5 version, so I rolled back to 1.2.0, and it shows up! I don't have it totally tweaked yet, but it's closer. It does appear to only be working with the classic theme, however.

HS’s picture

Status: Needs review » Active
unc0nnected’s picture

It should be noted that the previous download link to 1.2 doesn't work.. If you want to grab the older 1.2 version you need to get it from here: http://galleria.aino.se/static/galleria-1.2.zip

Even with all that NONE of the above solutions work.. I've tried every config, every version of every module mentioned above and this god damn galleria still doesn't work. Views slideshow works just fine but not galleria, oohh nooo.. I'm at my ropes end so if anyone has any last minute suggestions before I light myself on fire I would greatly appreciate it

EDIT: Turns out it was a jquery problem after all .. The only solution was to uninstall the jquery update module and then download 1.3.2 and copy it overtop of jquery.js in the /misc directory.. That let to a bunch of other errors which got fixed in the theme's css files and of course 1.3.2 completely breaks views. So I went back and grabbed jquery.1.3.2 and my view errors went away and galleria still works.. So that seems to do it for me