GuMaxdd Submenu does not show up

If you are having problems with GuMax, post here.
Post Reply
User avatar
Georges
Rank 1
Rank 1
Posts: 5
Joined: May 29th, 2009, 9:00 am

GuMaxdd Submenu does not show up

Post by Georges »

I use actually your nice skin SGuMax on my site. But in order to use drop down menus, I've tried GuMaxDD 1.0. I modified my sidebar (mediawiki:sidebar) like you explain it, but I only the top menus work, the sub menus aren't displayed.
I'm working with firefox 3, but also IE does not work.

Any idea? Or should I wait better for your next release 1.1?

regards
Georges
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: GuMaxdd Submenu does not show up

Post by Paul »

What version are you running on your wiki? how do you update your sidebar?

Give me the link so I can take a look the root cause...
User avatar
Georges
Rank 1
Rank 1
Posts: 5
Joined: May 29th, 2009, 9:00 am

Re: GuMaxdd Submenu does not show up

Post by Georges »

The version of MediaWiki is 1.13.3 and the version of GuMaxDD is 1.0.
You can reach the site at www.mediterraner-garten.lu where I actually use a slightly modified version of your SGuMax. You must create a new account in order to change the skin.
But in this productive version the sidebar doen't contain submenus. I've tested the submenus only on my local installation (the same version), but without succes.

Regards
Georges
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: GuMaxdd Submenu does not show up

Post by Paul »

This doesn't help me with investigation, if you had this issue on your local machine, then I would check web setting and make sure you enable javascript on your web. Also the path of the web server is the factor too...
User avatar
Georges
Rank 1
Rank 1
Posts: 5
Joined: May 29th, 2009, 9:00 am

Re: GuMaxdd Submenu does not show up

Post by Georges »

I've read the following post from kevindank
viewtopic.php?f=7&t=308 here in the forum. I have istalled the LightboxThumbs extension, which uses prototype.js and scriptaculous.js. There lies the conflict with gumaxdd.
When I disable the LigtboxThumbs extension, gumaxdd works fine.
So it seems as if I'need to stay with sgumax, since I want to use LightboxThumbs as well as Picasa2gallery which uses the both JS as well.

It's really a pity, since your gumaxdd is really a great and easy to use navigation script.

Mabe someone finds out an issue to use these phantastic software together.

greetings

Georges
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: GuMaxdd Submenu does not show up

Post by Paul »

I know, jQuery has conflicts with these javascripts... kind of headache.
User avatar
Georges
Rank 1
Rank 1
Posts: 5
Joined: May 29th, 2009, 9:00 am

Re: GuMaxdd Submenu does not show up

Post by Georges »

After looking at the jQuery-Homepage, I've found a way how to avoid the conflict, that is caused using several JS-libraries.

JQuery has a 'noConflict' mode that can be used.
You need to do the following steps:

1. in jquery-1.3.2.min.js ad the following code at the end of the script:

Code: Select all

jQuery.noConflict();
This forces jQuery to use the standard 'jQuery', instead of the shorter $ as variable-name in the scripts.

2. in jquery.droppy.js
change all instances of '$' to 'jQuery'

3. in GUMaxDD.php
change the line, after the jquery.droppy.js is loaded (around line 96)

Code: Select all

	<script type="<?php $this->text('jsmimetype') ?>"> $(function() { $'#gumax-nav').droppy({speed: 100}); }); 
	</script>
to, so that the script uses 'jQuery' instead of '$'.

Code: Select all

	<script type="<?php $this->text('jsmimetype') ?>"> jQuery(function() { jQuery('#gumax-nav').droppy({speed: 100}); }); 
	</script>
For more information about the noConflict-mode and to use jQuery with other libraries see:
http://docs.jquery.com/Using_jQuery_wit ... _Libraries

Might be, that there is a more elegant way to solve ist, but for me everything works fine (LightboxThumbs and Picasa2Gallery).

Georges
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: GuMaxdd Submenu does not show up

Post by Paul »

Thanks Georges for sharing this... this looks like a good fix to solve the compatibility of jQuery.

I will put this fix in my next release... thanks again. :D
Post Reply