This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Module for creating a dynamic drop down menu for Drupal

Hi to all!

I am currently trying to figure out how I can create a drop down dynamic menu for my drupal site...

I have a javascript menu (dropdown) running on my site which is great...it would be greater if I was able to make it dinamic in order to present nodes/subnodes etc...

however this would be (easily) feasible if the xtemplate.xtmpl could accept php coding but it is pretty obvious that this cannot happen...

I am wondering this: from where does the xtemplate.xtmpl drill the {site_name} or logo or other info? which are dynamic!!!!!

Is it from modules?I want to createa php script (module) gathering all info about menu and call the rendered dynamic menu from my xtemplate.xtmpl like {dmenu} or something like this....

ANY IDEAS will be Appreciated...
Other drupal users will also be interested since Jsdomenu is not very flexible and it doesnt work as a cascading drop down menu

thx in advance

ps:
my current javascript works like this in the body section:
<--

  • -->
    and it is converted to a menu by the javascript located in the head....

    TeleAuth Two-Factor Authentication Module

    Hi,

    I posted this in the "News and Announcements Forum", but I thought I'd get some technical criticism here.

    I've written a module that enables two-factor Authentication in Drupal. How it works:

    1) User logs in with username and password.
    2) Drupal verifies password and proceeds to call user on his registered phone number.
    3) User answers phone and is prompted for a PIN code.
    4) Drupal verifies PIN code an lets user into site.

    authentication with IMAP server

    I wrote a new auth module for authentication with remote IMAP servers. My hook_auth implementation returns TRUE but users can't login. Should I implement another hooks?

    Any hint? This is the code:

    <?php

    ...

    /**
    * Implementation of hook_auth().
    */
    function imapauth_auth($username, $password, $server) {

    //IMAP extension not loaded
    if (!function_exists('imap_open')) {
    watchdog('php', t('IMAP extension not loaded. IMAP module couldn\'t be used to authenticate users.'), WATCHDOG_WARNING);
    return false;
    }

    if (variable_get('imapauth_enabled', 0) == 0) {
    return false;
    }

    $domains = split("/\r\n|\n|\r/", variable_get('imapauth_domains', array()));

    $valid = false;
    foreach ($domains as $d) {
    $domain_settings = split(",", $d, 2);

    if ((trim($domain_settings[0]) == $server) or trim($domain_settings[0]) == '*') {
    $valid = true;

    if (array_key_exists(1, $domain_settings)) {
    $mailbox = trim($domain_settings[1]);
    }
    else {
    $mailbox = "{" . $server . ":143}INBOX";
    }
    }
    }

    //This domain is not valid for IMAP authentication
    if (!$valid) {
    return false;
    }

    $mbox = @imap_open($mailbox, $username, $password);

    if ($mbox) {
    $minfo = @imap_mailboxmsginfo($mbox);

    if ($minfo) {
    $login = true;
    }
    else {

    Image Alignment using the Image Module

    I am using the image module and for the life ofme cannot figure a way to make the thumbnails align to the left:

    http://crown-internet.com/drupal/

    It would be great for the thumbnails to align to the left instead of to the top of the content.

    Any ideas would be greatly appreciated.

    Thanks,

    John.

    Authentication Module for local users

    Hi,

    I've managed to write an authentication module, however, users are
    required to enter the username as "username@server" before it gets activated.

    Is it possible to direct all logins (with and without the @server part)
    to an authentication module?

    Best regards.

    Frank

    Guestbook for Drupal 4.6.2

    Hello,

    I need a guestbook for Drupal 4.6.2.

    I have tested the "guestbook-4.6.0.tar.gz" but it functioned not correctly. If you can, please help me.

    Pages

    Subscribe with RSS Subscribe to RSS - Module development and code questions