Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Menu Problem with Simple Galerie

More
15 years 7 months ago - 15 years 7 months ago #23652 by plwst
Menu Problem with Simple Galerie was created by plwst
Hi
i just installed :  JoomlaWorks "Simple Image Gallery PRO" Plugin v2.0.4 for Joomla! 1.5.x

I added: {gallery}Asphalt:200:260:1:0{/gallery} to my content which works fine!
But i got a problem with my accordeon menu since that as soon as i open the menuentry which leads to the content where the plugin is embededd it opens all sub menu entries.

If i disable the plugin or remove the plugin entry in the content everything is fine.

I use: mod_accordionmenu as mainmenu vertikal.

I guess something triggers a java event (just a guess dont know that)
I dont import any java scripts in my template here is the java script of mod_accordionmenu:
/*
*Mod_Accordionmenu by James Frank
*
* License: GNU/GPL
*
*Based off of  v1.0 - by ah72, July 2008
*
*/


function accordionMenu(menuId, srcExpandImage, srcCollapseImage, accOptions, accHoverDelay, bDoHover) {
if($(menuId)){

    // getting accordion parent items ("li" tags with class "parent")
    $(menuId).accParentItems = [];

    for(var i = 0; i < $(menuId).childNodes.length; i++) {

        if($(menuId).childNodes[i].className.indexOf('parent') >= 0){
            $(menuId).accParentItems.push($(menuId).childNodes[i]);
        }
    }


    $(menuId).accTogglers = [];
    $(menuId).accElements = [];
    var startItem = -1;

    for(var i = 0; i < $(menuId).accParentItems.length; i++) {

		if(srcExpandImage.length > 0){

			// creating accordion togglers
			var accToggler = document.createElement("img");
	
			accToggler.setAttribute("title","Expand");
			accToggler.setAttribute("src",srcExpandImage);
		}
		else
		{
			var accToggler = document.createElement("span");	
		}
			$(menuId).accParentItems[i].insertBefore(accToggler, $(menuId).accParentItems[i].firstChild);
		
			$(menuId).accTogglers.push(accToggler);
		

        // accordion elements
        $(menuId).accElements.push($(menuId).accParentItems[i].getElementsByTagName('ul')[0]);

        // searching for active menu item to make the accordion show its sub-items when page loads
        if ( $(menuId).accParentItems[i].className.indexOf('active') >= 0 ) {
            startItem = i;
        }
   }

    //create our Accordion instance
    if ( $(menuId).accParentItems.length > 0 ){
        $(menuId).Accordion = new Accordion($(menuId).accTogglers, $(menuId).accElements, $merge({
            opacity: false,
            alwaysHide: true,
            show: startItem,
            duration: 600,
            transition: Fx.Transitions.Bounce.easeOut,

            onActive: function(toggler, element){
                element.parentNode.parentNode.setStyle('height', 'auto');
                toggler.setAttribute("src", srcCollapseImage);
                toggler.setAttribute("title","Collapse");
            },
            onBackground: function(toggler, element){
                element.parentNode.parentNode.setStyle('height', 'auto');
                element.setStyle('height', element.offsetHeight+'px');
                toggler.setAttribute("src", srcExpandImage);
                toggler.setAttribute("title","Expand");
            }

            }, accOptions)

        );
    }


    accTimer = null;
    if (!accHoverDelay) var accHoverDelay = 200;
	
    for(var i = 0; i < $(menuId).accParentItems.length; i++) {

        eval("function accOnclickFunc(){return function(){ if( $('"+menuId+"').accElements["+i+"].style.height == '0px' ) { $('"+menuId+"').Accordion.display("+i+") }}}");
		eval("function accOnMouseoverFunc(){return function(){if( $('"+menuId+"').accElements["+i+"].style.height == '0px' ){accTimer = $('"+menuId+"').Accordion.display.delay("+accHoverDelay+", $('"+menuId+"').Accordion, "+i+");}}}");
		eval("function accOnmouseoutFunc(){return function(){if($defined(accTimer)){$clear(accTimer);}}}");

        $(menuId).accParentItems[i].firstChild.nextSibling.onclick = accOnclickFunc();
		if (bDoHover==1) {
			$(menuId).accParentItems[i].firstChild.nextSibling.onmouseover = accOnMouseoverFunc();
        }
		$(menuId).accParentItems[i].firstChild.nextSibling.onmouseout = accOnmouseoutFunc();
    }


    for(var i = 0; i < $(menuId).accElements.length; i++) {
        $(menuId).accElements[i].setAttribute('id', menuId+'_'+i);
        accordionMenu(menuId+'_'+i, srcExpandImage, srcCollapseImage, accOptions, accHoverDelay, bDoHover)
    }

}
}

thanx for help in advance

EDIT:

Problem has to do with Popup engine for image galleries. Powered by jQuery provokes the error, mootools works fine

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #23653 by mp_berlin999
Replied by mp_berlin999 on topic Re: Menu Problem with Simple Galerie
Hi...I have exactly this problem with accordion menu and Simple Image Gallery. 
I'm a raw beginner in this area - can I convert the Simple Image Gallery to mootools,
or just use a different image gallery?  Thanks..

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
15 years 5 months ago #23654 by Yiota
Replied by Yiota on topic Re: Menu Problem with Simple Galerie
Could you both provide a link to your site?

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #23655 by mp_berlin999
Replied by mp_berlin999 on topic Re: Menu Problem with Simple Galerie
Yes, I have got as far as working out that the problem is in slimbox.js.
My Site is at
www.linc.org.au/test/index.php?option=com_content&view=article&id=64&Itemid=99
Thanks for the reply

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
15 years 5 months ago #23656 by Yiota
Replied by Yiota on topic Re: Menu Problem with Simple Galerie
The link you provided doesn't go to a page. It has a 404 error. Could you provide a different link where the SIG Pro is in it?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum