| | | |  |  | |  |
13.05.2004, 03:46
|
#1 (permalink)
| | Junior Mamber
Join Date: May 2004 Location: Ontario
Posts: 26
| Macs rock Mambo If you have a Mac you know the problems of the pop-up menus in the Mambo administrator. It is because the Mambo guys used a javavscript plug-in, that never worked with anything but Windoz browsers.
I really like Mambo, but the admin menus prevented me from using it with my Mac clients. It has been over a year and no fixes so I did it myself.
Simple replace the file called JSCookMenu.js in the js folder inside the includes folder.
It hardwires the menus to Safari and only Safari, but does not effect other Windoz browsers, incase you have two administrators.
It could be changed for IE , Fire Fox, Mozilla etc. Just change the pixel positions in the large 'case' function. It is marked, but takes hours of trial and error.
The replacement 'Safari-fied' file is attached to this posting
Have fun..
Chris. |
| |
13.05.2004, 09:37
|
#2 (permalink)
| | Professional Mamber
Join Date: Apr 2004 Location: Marikina, Manila, Philippines
Posts: 776
| Re: Macs rock Mambo Just to clarify.
This replacement js file allows the JSCook menu's to function in Safari?
What do you mean by "hardcoded"
Does this mean that if I view the mambo backend in IE, the menus wont work.
Just wondering as I've released a module called Display Menu - JSCook, which allows people to integrate the JSCook Script to 'replace' their normal menu.
However, i know the JS Script I have included in the module wont work in Safari, if their is a way to allow Safari functionality, i would love to add it to the module.
__________________ Joomla! Core Team Member
Software Coding & Design - Stability Team Leader www.joomla.org Former Mambo Core Team Member |
| |
13.05.2004, 15:46
|
#3 (permalink)
| | Mamber
Join Date: Apr 2004 Location: Quebec City, Canada
Posts: 57
| Re: Macs rock Mambo Chris,
Thanks for sharing this with us!!!
Do you have a site where we could view the JSCook menu horizontal dropdown that I could ask my Mac friend to visit? |
| |
13.05.2004, 20:22
|
#4 (permalink)
| | Mamber
Join Date: Apr 2004
Posts: 79
| Re: Macs rock Mambo Quote: |
Originally Posted by old_mac If you have a Mac you know the problems of the pop-up menus in the Mambo administrator. It is because the Mambo guys used a javavscript plug-in, that never worked with anything but Windoz browsers. | A correction is in order - it worked with most of the browsers except Safari. The fact that they are running on Windows or Mac OS does not affect the operation of the menus.
Of course, being a Mac user, I will try your fix  |
| |
14.05.2004, 02:21
|
#5 (permalink)
| | Baby Mamber
Join Date: Apr 2004
Posts: 9
| Re: Macs rock Mambo Well, it seems to work ok in Safari, though sometimes the sub menu's don't appear to the right of the items (i.e components). But at least you can click and select the items, and not have to use another browser. I've been using Netscape to admin my site. |
| |
14.05.2004, 03:27
|
#6 (permalink)
| | Junior Mamber
Join Date: May 2004 Location: Ontario
Posts: 26
| Re: Macs rock Mambo To correct a correction. JsCookmenus does not work on all browsers except Safari. It does not work with Netscape X, works partially with Mac IE 5.22.,
it does not work with Opera, iCab X, Komodo, Gecko, OmniWeb. With the various flavours of Mozilla, it works the best with Firefox and Camino.
The script is hardwired to the admin menu. That is why the components menu does not function. Adding components changes the menu layout. I am looking into this at the moment to find a solution.
JsCookmenu is actually terrible. There are at least 20 better scripts that do the same thing and actually does work on ALL browsers. One that comes to mind is HVmenu.
To this end I am working on replacing JsCookmenu with an alternative. Somebody mentioned htmlarea3 menus too. I haven't looked at their menus but I bet it is JSCookmenu too.
I am working on a version of Mambo to use SPAW, a far superior WYSIWIG editor.
My version of JSCookmenu does not change anything in the original. It just adds a test for a Safari browser and then runs through a Case statement.
hth
Chris admin@cllcanada.com |
| |
14.05.2004, 03:59
|
#7 (permalink)
| | Junior Mamber
Join Date: May 2004 Location: Ontario
Posts: 26
| Re: Macs rock Mambo re: Stingray...
I tried it on your site and I am not certain what you are doing with JSCookmenu. I could get menu rollovers, but nothing else.
Are you using the file in Mambo for the module or do you have another version?
I guess if you had a Safari browser, it would affect the module menus.
Since you are a programmer I will explain what the problem is. JSCook reads the html and builds the menus. But on the Mac the drop down menus and pop-ups are not read. Also the arrays that are built are not complete on the Mac. Most object parameters are never filled. cmGetYAT returns 0.
None of the menu offsets are filled. The only values available are left pixel position of the item in the menu bar and RowItem of the drop down menu
Interesting some menu arrays start with RowItem=1 and some start with RowItem=0.
Finally there is not a line of error checking in the script.
hth
Chris |
| |
14.05.2004, 06:56
|
#8 (permalink)
| | Mamber
Join Date: Apr 2004 Location: Quebec City, Canada
Posts: 57
| Re: Macs rock Mambo To those who use browsers other than Explorer,
I was wondering if you could test a free horizontal dropdown menu that I found.
This is the link: http://javer.narod.ru/
Please state your brower (and version) and state if this horizontal dropdown menu works for you or not.
Thanks in advance for testing!!! |
| |
14.05.2004, 20:21
|
#9 (permalink)
| | Mamber
Join Date: Apr 2004
Posts: 79
| Re: Macs rock Mambo old_mac, jscook work fine in Opera 7.5 and the latest Netscape...but anyway, I agree with you, there are a lot of menu systems out there that work everywhere. Actually, Mambo developers said that in the future the menu engine will change to something more compatible, but as it seems it won't make it in until version 5
Aslo, I have replaced the original file with your modified one, but it did not help. I haven't had time to play with it, but I will take a closer look. |
| |
14.05.2004, 20:31
|
#10 (permalink)
| | Mamber
Join Date: Apr 2004
Posts: 79
| Re: Macs rock Mambo mibi, I tested the menu on javer using Safari - works pretty well except for one quirk: if the menu item text spans over two lines, it gets truncated on the bottom.
Well, as they say, picture is worth a thousand words:  |
| | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT +2. The time now is 10:46. | | | |