Head ache trying to embed an image gallery

Permalink
Hello all,

First I would like to say thanks in advance.

I am trying to embed an image gallery but there is something stoping me.

This is how it should look like (without using any C5 php code):

http://www.greyhound-designs.co.uk/demo/web3000/themes/web3000/fash...

But this is what I get at the moment:

http://greyhound-designs.co.uk/demo/web3000/index.php/fashion/...

According to Bugzilla the problem is in the line 75:

$('#galleria').galleria(); is not a function

I don't have that warning when I use it 'outside' C5. As far as I know all the paths are correct. I've also tried using relative paths, moving the script to other parts of the code, diffent ways to call that function, change folder permissions... but I still have the same warning.

What am I doing wrong? Why this function is not happy inside C5?

Thank you very much

Cheers

RafaelGP
 
RafaelGP replied on at Permalink Best Answer Reply
RafaelGP
Solved!

It was a conflict between the gallery's javascript and jquery.

So firstly, I stop loading jquery-min.js, as C5 loads it already.
Secondly, I placed the gallery's javascript underneath C5. Like this:

<?php Loader::element('header_required'); ?>
<script src="http://www.greyhound-designs.co.uk/demo/web3000/gallery/src/galleria.js" type="text/javascript"></script>

I'm happy!