2011-12-09, 01:25:15
Hi Guys,
First of all thanks for this great plugin, great work!
Unfortunately I've a little problem with this plugin. I'm using jQuery for my menu (lavalamp) and a little slideshow in the header of my page (cycle), I allready had some problems with let that work together but figured that out allready. Unfortunately I'm getting a similair problem with my template and this plugin. The problem is that I include the jQuery-library twice, first in my template (jquery-1.6.4.min.js) and second in the i18n_gallery-plugin (jquery-1.4.3.min.js). If I don't include the first (jquery-1.6.4.min.js) both work, my template and the gallery if I'm on a gallery-page, but if I'm on my index-page for example my template won't work (because there is no jQuery-library available).
I'm using the prettyphoto-plugin so I started looking where the jQuery-library is included there. I found out that it is included in the function i18n_gallery_prettyphoto_header:
But if I change the code above in the code down here, it won't work:
Maybe you guys know what I do wrong?
Another solution maybe that if I know that I'm on a gallerypage I won't include the library used in my template, but I think that is a bit hard to make. But if you can help me on that it will be a good solution for me too.
Thanks in advance for helping me!
First of all thanks for this great plugin, great work!
Unfortunately I've a little problem with this plugin. I'm using jQuery for my menu (lavalamp) and a little slideshow in the header of my page (cycle), I allready had some problems with let that work together but figured that out allready. Unfortunately I'm getting a similair problem with my template and this plugin. The problem is that I include the jQuery-library twice, first in my template (jquery-1.6.4.min.js) and second in the i18n_gallery-plugin (jquery-1.4.3.min.js). If I don't include the first (jquery-1.6.4.min.js) both work, my template and the gallery if I'm on a gallery-page, but if I'm on my index-page for example my template won't work (because there is no jQuery-library available).
I'm using the prettyphoto-plugin so I started looking where the jQuery-library is included there. I found out that it is included in the function i18n_gallery_prettyphoto_header:
Code:
function i18n_gallery_prettyphoto_header($gallery) {
if (i18n_gallery_check($gallery,'jquery') && i18n_gallery_needs_include('jquery.js')) {
?>
<script type="text/javascript" src="<?php echo i18n_gallery_site_link(); ?>plugins/i18n_gallery/js/jquery-1.4.3.min.js"></script>
<?php
}
if (i18n_gallery_check($gallery,'js') && i18n_gallery_needs_include('prettyphoto.js')) {
?>
<script type="text/javascript" src="<?php echo i18n_gallery_site_link(); ?>plugins/i18n_gallery/js/jquery.prettyPhoto.js"></script>
<?php
}
if (i18n_gallery_check($gallery,'css') && i18n_gallery_needs_include('prettyphoto.css')) {
But if I change the code above in the code down here, it won't work:
Code:
function i18n_gallery_prettyphoto_header($gallery) {
//if (i18n_gallery_check($gallery,'jquery') && i18n_gallery_needs_include('jquery.js')) {
?>
<script type="text/javascript" src="<?php echo i18n_gallery_site_link(); ?>plugins/i18n_gallery/js/jquery-1.4.3.min.js"></script>
<?php
//}
if (i18n_gallery_check($gallery,'js') && i18n_gallery_needs_include('prettyphoto.js')) {
?>
<script type="text/javascript" src="<?php echo i18n_gallery_site_link(); ?>plugins/i18n_gallery/js/jquery.prettyPhoto.js"></script>
<?php
}
if (i18n_gallery_check($gallery,'css') && i18n_gallery_needs_include('prettyphoto.css')) {
Another solution maybe that if I know that I'm on a gallerypage I won't include the library used in my template, but I think that is a bit hard to make. But if you can help me on that it will be a good solution for me too.
Thanks in advance for helping me!