I wanted to be able to enter a new skin name, instead of just using the built-in tango skin, so I patched the module to allow this. Leaving the field empty removes the skin and leaves a nice, clean layout that uses the imagecache thumbnail preset. See the attached patches. Works well on my setup: Drupal 6.13 with jCarousel 6.x-1.1.
I actually also wanted to put it in an option for setting the autoscroll delay. But for some reason jCarousel ignored the setting completely (I did add the option to the integer check function to ensure it came out an integer), so I removed that from this patch.
| Comment | File | Size | Author |
|---|---|---|---|
| galleria-admin-skins.patch | 1000 bytes | davemybes | |
| galleria-module-skins.patch | 472 bytes | davemybes |
Comments
Comment #1
Mark Theunissen commentedAs far as I'm aware, you can just change the Skin in the jCarousel admin screen. Why do you need to patch Galleria for this?
Comment #2
davemybes commentedI didn't find any admin screen for jCarousel, actually. Looking through the module's code, there are no actual admin settings. However, there might be some when using the jQ module with jCarousel. *edit* actually, there aren't any there either.
That said, I thought it might also be nice to be able to use a different skin for a Galleria.
However, if you feel its not needed, no worries. Having this post here will at the very least give me an easy place to find the patch again if I want it in the future :)
Comment #3
ndwilliams3 commentedI was also trying to do this and could not find an admin option for jcarousel. I implemented your patch, Works Great! but also added a couple lines to declare the skin_path variable, so that the skin can be put in your theme folder. Sorry, I don't do much coding, so I don't have the ability to create a patch file.
galleria.admin.inc
galleria.module
Comment #4
dsp1 commentedwhere is the admin menu item?
Comment #5
SkullSplitter09 commentedthanks a lot :)
works very fine :)
Comment #6
Pierco commentedYou can also add a dropdown to select the skin name:
galleria.admin.inc
galleria.module
jcarousel.module
Comment #7
aww commentedThank you for improving this great module.
galleria.module
should be => jcarousel_add('.gallery', $options, variable_get('galleria_jcarousel_skin','NULL'));
Comment #8
macmladen commentedI managed to figure out where to add first two in galleria module, but I have no clue where to add this line in jCarousel module?
Comment #9
youlikeicecream commentedWorks like a charm for me. Although I made this change to jcarousel.module
if ($skin == 'tango' || $skin == 'ie7' || $skin == variable_get('galleria_jcarousel_skin','tango')) {