I'm getting double // preceding the relative url path for the image galleries..
is this a problem or am i doing something wrong ? thanks

Comments

Gre’s picture

I just installed the modul and I have the same problem:

"//" at start of the url

jackhutton’s picture

In D7 I reviewed the settings ; under configuration --- media ---Public file system path -- the path is correct: sites/default/files

Under field 'galleria_image' the
url is rendered uri (String, 48 characters ) public://gallery-images/example.jpg - doubling up on the '//'
the url is called in the
jquery.galleria.js
thickbox-compressed.js
galleria.theme,inc (include file)

so. how is this ..public getting written..
hmm.

jackhutton’s picture

there is a function Galleria.addTheme..
that refers to the path.. in 3315

 // look for the absolute path
        $('script').each(function( i, script ) {

            // look for the theme script
            var reg = new RegExp( 'galleria\\.' + theme.name.toLowerCase() + '\\.' );
            if( reg.test( script.src )) {

                // we have a match
                css = script.src.replace(/[^\/]*$/, '') + theme.css;

                Utils.addTimer( "css", function() {
                    Utils.loadCSS( css, 'galleria-theme', function() {
                        Galleria.theme = theme;
                        $doc.trigger( Galleria.THEMELOAD );
                    });
                }, 1);

but i don't know enough to work with this..just a stab in the dark..

jackhutton’s picture

if I create a standard 'Article' and add an image..the double "//" doesn't get laid down..so it must be within the writing of the galleria..

jackhutton’s picture

-- it doesn't look to me, as though the galleria images are picking up the image cache in Drpal 7..
i've changed image cache locations..

in D7 under content types
Administration » Structure » Content types » myGalleryContentType
under Manage Display tab, format , Galleria is selected with the settings selected for Zoomed image style: galleria_zoom
Preview image style: galleria_thumb

I see various image cache directories under
for example:
sites/default/files/styles/galleria_thumb/public/modules/image
sites/default/files/styles/large/public/field/image
..
but the galleria isn't saving content there.. its saved at the main default/files level. ..
anyone have success w. this module in Drupal 7?

hmm

Wesgro’s picture

Anyone looked at galleria.theme.inc line 96?

//....
$basepath = '/' . variable_get('file_public_path', '/sites/default/files') . '/';

Remove the leading / and you have a fix

jackhutton’s picture

thanks.
I've tinkered with this line of code and it does work..
this would be a bug of some type, right..?

thank you for volunteering that bit of infomation.. i can move forward..

jackhutton’s picture

now that i've hard written the path..
.. and i'm able to render content i want to customize the display..
I've purchased the site's 'Twelve' Theme..
got it to render standalone..
uploaded the directory 'Twelve' to sites/all/modules/galleria/js/themes/twelve

how do i get galleria to render the twelve theme..
http://jackhutton.com/ruschmeyer/content/brustin-4#overlay-context=conte...
renders classic ..

i see the the gallery.loader.js
line 18

	    $('.galleria-content', context).galleria(opt);

is 'opt' option.. do i add 'twelve' here..
i searched on 'classic' but didn't find the theme called out..
thanks

gopherspidey’s picture

Try the patch out in #1082882: Public/private paths and using the image styles. It fixes the public/private paths and uses imagecache to resize both the primary image and the thumbnail.

jackhutton’s picture

posted a patch question in the other queue.. thanks

jackhutton’s picture

still trying to use the purchased 'Twelve' theme w. the drupal 7 install..
In sites\all\modules\galleria\js
jquery.galleria.js
line 488 in the

Galleria = function() {

    var self = this;

    // the theme used
    this._theme = undef;

i tried changing 'undef' to 'twelve' .. of course, it didn't work :)
any ideas as to how to integrate the new 'twelve' theme here. .. it sure would look nice.. :)

thanks

jackhutton’s picture

documentation on the galleria site refers to this function

http://galleria.aino.se/docs/1.2/themes/using_themes/
Galleria.loadTheme('galleria/themes/classic/galleria.classic.js');

the function
within the drupal 7 module has these comments

/**
    loadTheme loads a theme js file and attaches a load event to Galleria

    @param {String} src The relative path to the theme source file

    @param {Object} option Optional options you want to apply
*/

Galleria.loadTheme = function( src, options )

so..where is this 'src' being derived? can it be modified to the path to the 'twelve' directory in the modules js/themes directory?

thanks

jackhutton’s picture

I applied the patch from comment #9 manually - and it successfully renders from the imagecache files..
Thank you gopherspidey

jackhutton’s picture

Had success applying the 'twelve' theme.. posted the steps here:
after using the patch in comment #9 and lots of head scratching..

http://drupal.org/node/802206#comment-4231154

gilzero’s picture

sub

jackhutton’s picture

i have to work through an problem with IE 8 - the page bombs out w an 'tried 2 times' 'endless loop' warning/error message.. so, still not there.
it renders well with chrom, mozilla, safari..but not IE.. .. any thoughts?

gopherspidey’s picture

What is the url that you are working on?

I do not have any problems with my page. http://dev.shiningcity.org/content/dong-wang-clinic

jackhutton’s picture

looks good & renders in IE8..
(you have some error messages ..you know. fb.. )

http://jackhutton.com/ruschmeyer/carolands
this is a test gallery.. test images.. I want to use their 'Twelve' gallery.. which i purchased..and integrated w. the module.. some hacks..
seems to work in Chrom, Mozilla, Safari but IE blows out.. javascript.. have to figure it out.. any ideas/tools for troubleshooting the javascript errors..or looping ..that IE is sensing..? thanks

its a good looking module if it would be supported, fixed..

thanks for your help here..

gopherspidey’s picture

Wow that page crashes my IE 8!

(I would expect some errors, I am still working on the site)

jackhutton’s picture

yeah.. it does crash ie8.. how do i troubleshoot that .. i get no meaningful error messages..

s_leu’s picture

@eggonbeagle

Just finished implementing theme select support in my local repository. This will be committed soon.

jackhutton’s picture

thanks.. I'm chomping at the bit :)
you have an amazing product here & can sell custom themes..but, def could use help - i have been trying to get this functional for an anxious friend/client..
reinstallled the module w. the Galleria 7.x-1.x-dev (2011-May-04) version and having problems - wondering whether to work through the or wait for your posting.. Thank you for working on this!!

miro_dietiker’s picture

eggonbeagle, i believe none of us is the origin of the jquery galleria plugin..
At least we as maintainers do our work without having any profit from the commercial galleria versions.

We (for s_leu to implement) even bought today a commercial theme to test the theme selector... Because we didn't have any access to a different custom theme.

jackhutton’s picture

wow.. thanks doubly. then. I would think the originators of galleria would be interested in the Drupal integration.. So. Thank you guys for expending the time, effort & $ I'm not as strong w. the .js and code

would you have any clue as to why the 'format column' (line 4 in the read me text) would no longer appear ? I cannot figure out how to bring that column back so I can select different imagecache versions.. I'll keep at this as well.

I reverted back to my previous install of galleria w. the twelve theme integration.. and will watch this thread..
again. Thank you all!

miro_dietiker’s picture

I think pathes are clean now. Please reopen if needed.

miro_dietiker’s picture

Status: Active » Patch (to be ported)
kroimon’s picture

Status: Patch (to be ported) » Closed (fixed)