test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • z0z0 Friend
    #118430

    I have moved the TopMenu from User 3 to User 9 position at the bottom of the page.

    I wanted to move the login to User 3 – to have it more visible but the formatting turns out really bad.
    I have tried all sorts of variations in the settings but I just can’t get the login to look good.

    What I want is a horizontal layout with username followed by password

    Ideally – the best thing would be to have the login integrated into the site tools button.

    Chinaman Friend
    #213426

    <em>@z0z0 6583 wrote:</em><blockquote>I have moved the TopMenu from User 3 to User 9 position at the bottom of the page.

    I wanted to move the login to User 3 – to have it more visible but the formatting turns out really bad.
    I have tried all sorts of variations in the settings but I just can’t get the login to look good.

    What I want is a horizontal layout with username followed by password

    Ideally – the best thing would be to have the login integrated into the site tools button.</blockquote>
    There is an extension at Joomla for horizontal login

    z0z0 Friend
    #213428

    Chinaman;6586There is an extension at Joomla for horizontal login

    Where is it?

    I checked in

    Extensions
    Free Joomla Extensions
    Joomla commercial extensions

    I did a search for “login” – nothing

    z0z0 Friend
    #213545

    Any answers?

    Khanh Le Moderator
    #213550

    I suggest that you should modify the default joomla login module to get the horizontal login. Here is an example modification to get the horizontal login displaying in user3 in this template:

    1. Open for edit file modules/mod_login.php, search this code (arround from line 82 to 124)
    [php]
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center”>
    <tr>
    <td>
    <label for=”mod_login_username”>
    <?php echo _USERNAME; ?>
    </label>
    <br />
    <input name=”username” id=”mod_login_username” type=”text” class=”inputbox” alt=”username” size=”10″ />
    <br />
    <label for=”mod_login_password”>
    <?php echo _PASSWORD; ?>
    </label>
    <br />
    <input type=”password” id=”mod_login_password” name=”passwd” class=”inputbox” size=”10″ alt=”password” />
    <br />
    <input type=”checkbox” name=”remember” id=”mod_login_remember” class=”inputbox” value=”yes” alt=”Remember Me” />
    <label for=”mod_login_remember”>
    <?php echo _REMEMBER_ME; ?>
    </label>
    <br />
    <input type=”submit” name=”Submit” class=”button” value=”<?php echo _BUTTON_LOGIN; ?>” />
    </td>
    </tr>
    <tr>
    <td>
    <a href=”<?php echo sefRelToAbs( ‘index.php?option=com_registration&task=lostPassword’ ); ?>”>
    <?php echo _LOST_PASSWORD; ?></a>
    </td>
    </tr>
    <?php
    if ( $registration_enabled ) {
    ?>
    <tr>
    <td>
    <?php echo _NO_ACCOUNT; ?>
    <a href=”<?php echo sefRelToAbs( ‘index.php?option=com_registration&task=register’ ); ?>”>
    <?php echo _CREATE_ACCOUNT; ?></a>
    </td>
    </tr>
    <?php
    }
    ?>
    </table>
    [/php]

    replace with this code
    [php]
    <div>
    <label for=”mod_login_username”>
    <?php echo _USERNAME; ?>
    </label><input name=”username” id=”mod_login_username” type=”text” class=”inputbox” alt=”username” size=”10″ />
    <label for=”mod_login_password”>
    <?php echo _PASSWORD; ?>
    </label>
    <input type=”password” id=”mod_login_password” name=”passwd” class=”inputbox” size=”10″ alt=”password” />
    <input type=”submit” name=”Submit” class=”button” value=”<?php echo _BUTTON_LOGIN; ?>” />  
    </div>
    [/php]

    2. Still in this mod_login.php file, search following code (arround line 51 to 69)
    [php]
    <form action=”<?php echo sefRelToAbs( ‘index.php?option=logout’ ); ?>” method=”post” name=”logout”>
    <?php
    if ( $greeting ) {
    echo _HI;
    echo $name;
    }
    ?>
    <br />

    <div align=”center”>
    <input type=”submit” name=”Submit” class=”button” value=”<?php echo _BUTTON_LOGOUT; ?>” />
    </div>

    <input type=”hidden” name=”option” value=”logout” />
    <input type=”hidden” name=”op2″ value=”logout” />
    <input type=”hidden” name=”lang” value=”<?php echo $mosConfig_lang; ?>” />
    <input type=”hidden” name=”return” value=”<?php echo sefRelToAbs( $logout ); ?>” />
    <input type=”hidden” name=”message” value=”<?php echo $message_logout; ?>” />
    </form>[/php]

    Replace with this code:
    [php]
    <form action=”<?php echo sefRelToAbs( ‘index.php?option=logout’ ); ?>” method=”post” name=”logout”>
    <div align=”center”>
    <?php
    if ( $greeting ) {
    echo _HI;
    echo $name;
    }
    ?>

    <input type=”submit” name=”Submit” class=”button” value=”<?php echo _BUTTON_LOGOUT; ?>” />  
    </div>

    <input type=”hidden” name=”option” value=”logout” />
    <input type=”hidden” name=”op2″ value=”logout” />
    <input type=”hidden” name=”lang” value=”<?php echo $mosConfig_lang; ?>” />
    <input type=”hidden” name=”return” value=”<?php echo sefRelToAbs( $logout ); ?>” />
    <input type=”hidden” name=”message” value=”<?php echo $message_logout; ?>” />
    </form>
    [/php]

    3. Open the template_css.css file, add this style:


    #mod_login_username,
    #mod_login_password {
    width: 100px;
    }
    #ja-topnavwrap label {
    padding: 0 10px;
    color: #DDDDDD;
    text-decoration: none;
    line-height: 24px;
    }
    #ja-topnavwrap div {
    margin: 0;
    padding: 0;
    float: left;
    background: url(../images/topnav-right-bg.gif) no-repeat top right;
    height: 26px;
    }
    #ja-topnavwrap {
    color: #DDDDDD;
    }

    You will have a horizontal login module on the user3 position. Remember that this is only an example modification. You could make your own modification for your use.

    ErikThorsen Friend
    #213569

    I don’t understand why people are whining. This is not a “SOLVE ALL YOUR PROBLEMS WITH ANYTHING ON YOUR WEBSITE forum.

    Please people. A little respect for the people who work their ass off to help us, support us and provide this entire universe best templates. I say we should have a Joomlart day! 🙂

    z0z0 Friend
    #213741

    Thank you Khanh.

    Erik – I did ask for a partial refund when I found out how much these things need modification. I am envious of you Erik if you are technically proficient to do this on your own. I unfortunately am not. To learn this would take me weeks and I do not have the time nor the inclination to do something like that.

    A horizontal login feature is probably something that many people would like. In the configuration for login it asks if you want it horizontal or vertical but vertical does not work. All I asked for was how to make it work.

    As I said – give me a partial refund and I will gladly go away in search of another solution.

    ErikThorsen Friend
    #213771

    Hello zOzO.

    I am just a member like you and like you I appreciate all the help I can get here because I am not too good at this stuff either. But I don’t expect people selling me a design to help me with everything else that is a problem on my site. Like anything in the world, if you change the design, there are going to be problems when you have modules, components and other stuff “not standard” Joomla installed.

    What I am trying to say isn’t that you shouldn’t ask these questions, because by all means, asking is the only way to find out but, we, the club members can’t possibly expect Joomlart team to solve everything for us. As long as the template works perfectly on a clean Joomla installation, the template is also working as it should. 🙂

    Either way, just wanted to let you know that I am also new to many things here and that sometimes it is difficult to find your answer but I think we are complaining a bit much about stuff we can’t expect to be included in our membership. Perhaps there should have been added another aspect to membership? Pro membership where you can get expertise/help for placement of modules, fixing alignment and other stuff for the site you are putting the template on.

    Well, enough rantering from me. Have a great weekend everyone! Spend 4-5 hours in the forum of joomla and joomlart EVERY DAY and in just a few weeks you will know as much as I know. LOL…

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 4 voices, and was last updated by  ErikThorsen 17 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum