Forums / Templates, Stylesheets, Page Layout / How to move and resize login area?

How to move and resize login area?

Views: 817

Results 1 to 2 of 2
22 Jun 2011, 9:55 PM
#1
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

How to move and resize login area?

Hi,
I'd like to move the login area from the position on the main page to the header where the twitter and facebook icons.
Here is the link to the page: http://www.com-shop.co.uk
This is the code in tpl_index-default.php that defines the log-in box.

div id="homelog">

<?php if ($_SESSION['customer_id']) { ?> <div id="homeloghead">Your Account</div> <p><?php echo '<a href="index.php?main_page=account">View Account</a>'; ?></p> <p><?php echo '<a href="index.php?main_page=account_edit">Account Settings</a>'; ?></p> <p><?php echo '<a href="index.php?main_page=logoff">Log Out</a>'; ?></p> <?php } else { if (STORE_STATUS == '0') { ?> <div id="homeloghead">Log-in</div> <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', 'id="loginForm"'); ?>

<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address" style="width:190px;"'); ?> <br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>

<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password" style="width:190px;"'); ?> <br class="clearBoth" /> <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div> <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">Forgotten your password?</a>'; ?></div> <div class="buttonRow back important"><?php echo 'No account yet?<br /><a href="index.php?main_page=create_account">Create an Account</a>'; ?></div> </form> <?php } } ?> </div> <br class="clearBoth" /> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php Do I need to cut all lines of the code from my tpl_index_default.php file and paste it in tpl_header.php? If so, how I can get login area smaller than is now to better fit the new position in the header? Thank you.
23 Jun 2011, 8:46 AM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: How to move and resize login area?

look in Free addon section for a module that already dose that.

i think is called header login . or something like that .