Page 1 of 2 12 LastLast
Results 1 to 10 of 36

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default login boxes in header!?

    i am currently using zencart 1.3.8a and a number of mods including the login sidebox mod.

    this is working great but i am considering resizing my header and adding a div on the left hand side with login/password input boxes to sign in directly form the header. i have installed the login_header mod but it seems to disagree with any mods i already have, and it doesnt seem to place within the header it just adds a bar at the bottom much like the ezpages nav bar.

    just wondering if theres an easier way of doing this by perhaps using another mod or using the sidebox coding i already have installed?

  2. #2
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Sidebox Help?

    Hi guys! I'm trying to find out how I would be able to get a "sidebox" in the header of my page vs being in the colums below the nav bars.

    Thank you!

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Sidebox Help?

    The only way I know to actually place a sidebox in the header is to use the position:absolute; tag in the stylesheet.

    A little more info about what you're trying to accomplish woul help.

  4. #4
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Sidebox Help?

    I want to get a sidebox in the header of the page where I can place items within. I'm thinking of doing a "subscribe" form for newsletters or "login/password" there. Thanks!

  5. #5
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Sidebox Help?

    So if I use what you're suggesting, I could add a blank sidebox then set the absolute positioning? That would work?

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sidebox Help?

    Yes, it would, as long as you have #mainWrapper {position: relative;} in your stylesheet so there is a reliable positioning reference.

  7. #7
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: login boxes in header!?

    Try adding a div in the header and put this code inside it:
    Code:
    <div id="log_in_header">
    <?php echo zen_draw_form('loginheader', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
    <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
    <?php echo zen_draw_input_field('email_address', '', 'size="18" id="login-email-address"'); ?>
    <br class="clearBoth" />
    <label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
    <?php echo zen_draw_password_field('password', '', 'size="18" id="login-password"'); ?>
    <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
    <?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?>
    <br class="clearBoth" />
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . TEXT_CREATE_ACCOUNT_HEADER . '</a>'; ?></div>
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN_HEADER . '</a>'; ?></div>
    </form>
    <br class="clearBoth" />
    </div>
    I'm not 100% sure it will work, but you can try it and let us all know if it works...

  8. #8
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default Re: login boxes in header!?

    yep works fine, after floating one left and one right and a little tweaking of the logo wrapper width and my logo width it works a treat, slightly misaligned but nothing that cant be sorted with a little css.

    thanks your a star

  9. #9
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: login boxes in header!?

    Hi Bonnie, where exactly did you place that div code to create the login box in your header? I've been trying to figure this out. But I'm stuck. Thank you!

  10. #10
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: login boxes in header!?

    Moderator's note: two threads on the same topic have been merged. Please continue in this thread.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Header Login Boxes
    By ray-the-otter in forum General Questions
    Replies: 4
    Last Post: 5 Jun 2013, 08:17 PM
  2. Want the Login link in header to take customer to Secure Login page
    By mom2da3ks in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Feb 2011, 04:50 PM
  3. header boxes
    By lilijama in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Oct 2010, 06:09 AM
  4. Move Login/Password Boxes to Main Page Header?
    By jbalcony in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Dec 2008, 01:59 PM
  5. Help! Login page Boxes
    By kburner in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Dec 2008, 10:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg