Fork me on GitHub

Dynamenu 2.0 released - Dynamic multi-menu block  Bottom

Go to page [-1] 1 - 2 - 3 - 4 ... 40 - 41 - 42 [+1 +10]:

  • Would someone be able to tell me where I'd go to change the following images:
    tree_leaf.png
    tree_folder_closed.png
    tree_folder_opened.png

    These are located in the tree menu and I have it installed here:
    www.nubiint.com

    The problem is that I don't like those Netscape lookin icons. What file do I edit to remove them totally? I removed them from the images folder but all that did was leave an empty space.

    Thanks
  • You'll find those in the includes/blocks/dynamenu/images folder

    Some alternate tree images were included with the latest release under the docs_extras folder. Simply overwrite the existing images. Check the readme for details.

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Thanks!
  • I have been successful in installing this block, setting the style, and creating a test link in the edit section. Once I attempt to go to the main page to view this block in action, I get the following error:

    "Fatal error: Cannot instantiate non-existent class: layersmenu in /home/httpd/vhosts/mpclans.com/httpdocs/includes/blocks/dynamenu.php on line 111"

    *shrugs*
  • Hmm... make sure you have the dynamenu "subdirectory" and the library files contained therein under the includes/blocks/ directory... (see the unpacked ZIP for the correct structure)

    i.e. includes/blocks/dynamenu which includes the lib (where that class is), the libjs, images and templates directories (and their files)...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • UPDATE NOTICE:

    There's seems to have been an erroneous include statement in the dynamenu.php block file (including template.inc.php).

    I have taken this statement out, though it wasn't generating an error in my tests. But if anyone has gotten an error referring to a included file that couldn't be found, they can download the new distro at the address in the first post, or comment out ('//') this line:

    Code

    include ("includes/blocks/dynamenu/lib/template.inc.php");

    Sorry for any incovenience... icon_redface

    BTW, Any more feedback, input as to the block's operation? Alignment problems, etc...

    P.S. If using Xanthia, a DynaMenu user noted you can use the following code to include directly in your Xanthia theme:

    Code

    <!--[php]-->
    $block = pnBlockGetInfo('37');
    $block['bid'] = '37';
    pnBlockShow('Core', 'dynamenu', $block);
    <!--[/php]-->

    The "comment" style PHP tags instead of the "real" ones, basically. Of course, you could replace the "37" with the actual block ID of the block you want to include... ;)

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • hi nate,

    a couple of issues, maybe -

    after installing the block (as shown here http://www.machinehasnoagenda.com), the Pagesetter admin and pubEdit pages aren't rendering properly, nor is htmlArea (Pagesetter plugin) showing up at all. Pagesetter admin and pubEdit pages both use javascript menus - htmlArea is java plugin, too, i think - would this be causing conflict?

    Code

    $GLOBALS['dm_not_render_index']


    is this config part of the solution? i've got the other part set to "render inactive menu block".

    here's a visual of the problems:

    http://www.machinehasnoagenda.com/themes/machinehasnoagenda/images/pagesetter_menu.jpg

    if you look at the top picture, Pagesetter's drop down menu is rendered as a list, with its sub-menu items rendered erratically down the page. the bottom one show how the menu should appear. i get this error: "psmenu.currentListener" is null or not an object in this piece of code:

    Code

    psmenu.openMenu = function(listener, menuDivElement, pos)
    {
      if (psmenu.isOpen())
      {
        psmenu.closeCurrentMenu();
      }
      else
      {
        menuDivElement.style.visibility = "visible";
        menuDivElement.style.left = pos.left;
        menuDivElement.style.top = pos.top;

        psmenu.currentListener = listener;
      }
    }


    psmenu.closeMenu = function(menuDivElement)
    {
      psmenu.cancelDelayedCloseMenu();

      menuDivElement.style.visibility = "hidden";
      psmenu.currentMenuDivElement = null;

      psmenu.currentListener.menuClosed();
    }


    http://www.machinehasnoagenda.com/themes/machinehasnoagenda/images/pagesetter_htmlarea.jpg

    this is the Publication Edit Screen, the one on the left shows the current rendering with dynamenu, the one on the right without. dynamenu one has shrunken the circled HTML input forms to almost nothing - this is where htmlArea plugin is supposed to be appearing but is not (i get the error "htmlArea" undefined).

    2. In Netscape, the sub, and sub-sub, menus are a bit wonky, as witnessed to their wierd positioning in these screen shots:

    http://www.machinehasnoagenda.com/themes/machinehasnoagenda/images/netscape_menu.jpg

    can i fix this in the styleNN.css?
  • Wow, those are some issues, alright... Javascript conflicts are always a possibility when using more than one on a page, often of the "event handler" variety... The HtmlEdit Java probably wouldn't cause a conflict with the Java portion, but it likely uses Javascript to call up the menu when a textarea is clicked.

    I can't offer much of a way to solve these conflicts, without intimate knowledge of Pagesetter, et al; except to suggest you set your theme up to not render the JS dynamenu blocks on those module pages.

    If using a regular theme, you could in the start of the themesidebox function place something like the following code:

    Code

    if ($GLOBALS['ModName'] == 'PageSetter' && $block['bid'] == 'x') {
        return;
    }

    Where "x" is the block id # of the block in question. You should not experience a conflict if rendering non-JS menu types: tree and plain menus.

    As for fly-out/drop-down menu submenu positioning, that is something of aknown issue... It pops up on some themes in some browsers (usually for the vert flyouts) and not for others. The odd thing is when you click on the Pagesetter link (when not logged in) and get the "broken" page, the horizontal menu that appears down the page appears to align correctly. There is likely some conflict with some HTML and/or a style sheet setting you could use to override it, unfortunately I don't have the answer for you.

    The styles, horizsubmenu, horizsubframe, horizitem pertain to the submenus and their styles but I wouldn't know what to alter of offset this effect. I would definitely check the HTML of your theme to check that it's semi-valid (no open
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • actually, after all the effort to clearly explain the "conflict" to you, i think i've nailed down the problem, and i'm sure it's got nothing to do with dynamenu. i switched to a non-Xanthia theme, and Pagesetter stuff worked fine :? with dynamenu (it didn't help taking it off the Pagesetter pages in Xanthia theme).

    i've had a similar problem before, i just remembered, which i somehow cured by re-uploading Xanthia, so i'll give that another shot and let you know.

    as for the netscape positioning - i'll try tweaking the .css, but in the end i don't get too many netscape visitors, so ....

    once again, thanx for the fast responses, and great work!!!!!
  • ok installed and workin correctly as a vertical flyyout .. but not at all as horizontal dropdown cause work fine dropping down the menus only on home page

    change to others modules it does not drop down the menus

    home works: www.spupuz.it

    other module not work: http://www.spupuz.it/ironandfire/pncms/index.php?name=PNphpBB2&file=index

    look here

    http://www.spupuz.it/

    using PN 7.50 RC2 and xanthia theme
  • Hi, Mr. Machine - thanks for the feedback... If you do think you can nail down at least what is causing the alignment problem (and maybe how to fix it) I'm all ears... This Block would be kick-ass if we could figure that out! (The PHPLayers Menu library seems to be somewhat "finicky" with respect to placement of it's code and other HTML on the page)

    bellonia, your problem stems from one of the "known issues" where if all the Javascript menus that are "pre-rendered" are not shown on a page, you will get a Javascript error, see the readme.txt for details.

    The developer suggested in the JS for those types of menus, I could alter the script to first check for the existence of an object on the page before attempting to alter it. I'm afraid I never really embraced OO programming, so if anyone want's to give me a clue that would really help!

    Normally bellonia, you could adjust the config in the dynamenu.php (again, see readme) to not pre-render certain block zones (left, for example - right & center set by default) if not on the index page... I think you are best just including the left block on all your PN pages, or changing the left menu to a tree-type menu which won't cause the JS error...

    Clever use of menu icons, BTW! :)

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • ok now it works correctly ... only tune the dimension of the orizzonatal droop down... how to do?
  • Check out the menu style sheets, they are well commented...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • UPDATE! A FIX has been added to the bottom of the first post for the submenu alignment issues some users have experienced with certain themes and the drop-down/fly-out menus...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Just wanted to point out I'm using this mod too (in addition to the PayPalCart mod). Great stuff! You can check it out on my website. :D

Go to page [-1] 1 - 2 - 3 - 4 ... 40 - 41 - 42 [+1 +10]:

This list is based on users active over the last 60 minutes.