Elxis CMS Forum
Support => General => Topic started by: ROUBOS on December 22, 2009, 06:44:23
-
Hi,
I have installed both the Rolling Images menu and the Simple image gallery bot, and they both work fine. Apart from when they are both displayed on the same page. then the Rolling Images menu does not work.
Any thoughts?
-
javascript conflict
-
oh ok
so cannot fix it?
-
I never used Simple Image Gallery, but if the problem is the same of Easy Gallery (image window not opened when click on the image) you must do this: (
open the index.php of your template, at the bottom of the page before the tag </body>
insert the lines that called the mootools and slimbox like these: (to be sure, get a look to see which javascript files use simple image gallery)
<script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/mambots/content/plugin_jw_sig/mootools.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/mambots/content/plugin_jw_sig/slimbox.js"></script>
example
bla bla bla.............
bla bla bla.............
bla bla bla.............
</div>
<script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/mambots/content/plugin_jw_sig/mootools.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/mambots/content/plugin_jw_sig/slimbox.js"></script>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------------------------------
if in the control panel of the bot you have the possibility to enable or disable the two javascripts as in easy gallery, you must set no (not use mootools and slimbox), if in the control panel they aren't, open the bot file and comment the two lines that called the two javascripts.
----------------------------------------------------
if you test your site under IE6 and IE7 and one of the browsers gives you an error (this error happen usually using image rotator with extensions that use lightbox or slimbox) you must edit also the
slimbox.js of the bots.
open slimbox.js
got to the end of file and comment this line under, but i don't know if is the same of easy gallery
// window.addEvent('domready', Lightbox.init.bind(Lightbox));
and insert these two lines:
var load_method = (window.ie ? 'load' : 'domready');
window.addEvent(load_method, Lightbox.init.bind(Lightbox));
good luck ;)