Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Reduced Space Login
  • Posted: 04.01.2003, 10:58
     
    chemaster
    rank:
    Freshman Freshman
    registered:
     July 2002
    Status:
    offline
    last visit:
    22.05.04
    Posts:
    45
    I needed a Login Block that was much smaller (height) then the standard login.php block. Look at my hacking result:

    http://www.godesoto.com : Upper right-hand side of page

    Here's the code change that I used. This probably could have been completed a lot cleaner but it works and is less then half the height as the original. :)

    $boxstuff = '<form action="user.php" method="post" style="display:inline">';
    $boxstuff .= '
    ';
    $boxstuff .= ''."Username"."      "."Password".'
    ';
    $boxstuff .= '<input type="text" name="uname" size="6" maxlength="25" /> <input type="password" name="pass" size="6" maxlength="20" />
    ';
    $boxstuff .= '
    ';
    $boxstuff .= '<input type="hidden" name="module" value="NS-User" />';
    $boxstuff .= '<input type="hidden" name="op" value="login" />';
    $boxstuff .= '<input type="hidden" name="url" value="' .$HTTP_SERVER_VARS['REQUEST_URI'].'" />';
    $boxstuff .= '<input type="submit" value="'._LOGIN.'" />
    ';
    $boxstuff .= '
    '._ASREGISTERED.'
    </form>';

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula