Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 05:12:58 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155544 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: jMenu - Help file missing! [solved]  (Read 1691 times)
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« on: February 07, 2011, 04:29:45 PM »

Hi there,

Just downloaded the jMenu plugin: http://jquery.websitebakers.com/plugins/others/jmenu.php

Download and install went fine but.....there's no help file  cry
I'm no coder so I'm not able to get this thing working.

How to get this plugin working? I would love to use this in a WB environment.
« Last Edit: February 08, 2011, 10:11:02 AM by Boudi » Logged

...:: Bake the Unbakable ::...
BlackBird
AddOn Development
*
Offline Offline

Posts: 2069



WWW
« Reply #1 on: February 07, 2011, 06:49:15 PM »

See the jMenu Homepage. http://www.myjqueryplugins.com/jMenu

Also, take a look at the source code of the page in the showroom.

This should give you all info you need.
« Last Edit: February 07, 2011, 06:51:01 PM by BlackBird » Logged

Alle großen Veränderungen beginnen im Kleinen
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #2 on: February 07, 2011, 07:10:15 PM »

Thnq.

I checked the author's code and the source.

Like I can see now it's not a menu that you can create dynamically? In other words, it can not be created the normal way you create menu's in wb?

Or do I need glasses  undecided
Logged

...:: Bake the Unbakable ::...
PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #3 on: February 07, 2011, 11:34:33 PM »

Did you see this page?...

http://jquery.websitebakers.com/plugins/others/jmenu-sm2.php
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #4 on: February 08, 2011, 10:03:00 AM »

I'm feeling the biggest dumbass in the world right now.......

1 Thing: I could not get the menu nicely placed in a div enviroment. There was a space around it. I had to disable the
Code:
display:table;
in the jMenu.css in order to get it placed correctly. After disabling this the menu is correctly placed in IE, FF, Safari.

After that when entering a submenu the jMenu doesn't show the menu correctly any more. (at least in my case).

So I'm going back to the old fashioned SM2.

Again...vote for me as being the dumbest guy over here.  undecided
« Last Edit: February 08, 2011, 10:10:47 AM by Boudi » Logged

...:: Bake the Unbakable ::...
BlackBird
AddOn Development
*
Offline Offline

Posts: 2069



WWW
« Reply #5 on: February 08, 2011, 12:17:15 PM »

Hm, without knowing/seeing what you did, it's not possible to find a solution. Wink Maybe you forgot to configure SM2 to use the correct id or something. I don't know.
Logged

Alle großen Veränderungen beginnen im Kleinen
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #6 on: February 08, 2011, 12:50:08 PM »

The menu itself did show corectly. But when clicking a sub-submenu the css style dissapeared.

Besides implementing the original code I didn't do any changes.

Next time I will give it another try on another project.

Thnq till so far.
Logged

...:: Bake the Unbakable ::...
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #7 on: July 11, 2011, 08:41:07 PM »

my try was also a desaster with this menu.
the sm2-call is the problem:
Code:
   show_menu2(
    $aMenu = 1,
    $aStart = SM2_ROOT,
    $aMaxLevel = SM2_ALL,
    $aOptions = SM2_ALL|SM2_PRETTY,
    $aItemOpen = '[li] <a href="[url]" target="[target]" class=[if(level==parent){"fNiv"}else{[page-id]}]>[menu_title]</a>',
    $aItemClose = '</li>',
    $aMenuOpen = '<ul id=[if(level==parent){"jMenu"}else{"my-id"}]>',
    $aMenuClose = '</ul>',
    $aTopItemOpen = false,
    $aTopMenuOpen = false
    );

level==parent is wrong, must be level==root or level==0.
now the menu works better but not perfect.
the down-arrow is also missing.

edit:  page-id must be page_id.
« Last Edit: July 12, 2011, 06:45:47 AM by dbs » Logged

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!