Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Location
    NNJ
    Posts
    212
    Plugin Contributions
    0

    help question Futz'n with Login

    Hello.

    I've been futz'n with the login page and now when I try to login as a returning customer, it always pops up with a "Confirm Password Change" dialog box which contains a drop down box with a list of email addresses for me to choose from.

    I don't recognize this behavior, it never did that before.
    Does any one know what causes that to happen?

    Please don't yell at me for try to modify my site, I just need a clue or two.
    Elliot

    The loves of my life are a good white zinfandel and my dog Homer.

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

    Default Re: Futz'n with Login

    Zin, honey - we kinda need to know more about what you did.
    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.

  3. #3
    Join Date
    Feb 2007
    Location
    NNJ
    Posts
    212
    Plugin Contributions
    0

    Default Re: Futz'n with Login

    hamana, hamana, hamana, hamana...

    Well, I, I, I moved stuff around... here let me show you...


    The split login was what I wanted (not stacked), but I didn't like the default set up.

    So, I hardcoded it to false, and set up the normal login exactly the way I like it. I know, I should have done it the other way around... I still can. eh?
    1. if there's something in the cart and $ec enabled, the PPEC fieldset is on top and takes up 100% width. Under the fieldset but within the DIV there is an "Or... some text and some images.
    2. Nothing in the cart, then no top PPEC fieldset or text/images and the two fieldsets below rise up.
    3. Login new now floats left width 55%
    4. Login returning floats right width 45%
    It was working great until I added the second img just below the Express Checkout fieldset.

    I know something is not quite right, when I enter an email address and the correct password, the dialog box comes up. Bear in mind this is a redesign and still on my localhost

    Oh, Kim, Zin is happy that you're willing to help.

    Code:
    <?php
    /**
     * Page Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2007 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_login_default.php 5926 2007-02-28 18:15:39Z drbyte $
     */
    ?>
    
    <div class="centerColumn" id="loginDefault">
    
    <h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    
    <?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>
    
    
    <?php if (false) {  // ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
    <!--BOF PPEC split login- DO NOT REMOVE-->
    <fieldset class="floatingBox back">
    <legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
    <?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
    <?php if ($ec_button_enabled) { ?>
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
    
      <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
    <hr />
    <?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_DIVIDER; ?>
    <?php } ?>
    <?php // ** END PAYPAL EXPRESS CHECKOUT ** ?>
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_SPLIT; ?></div>
    
    <?php echo zen_draw_form('create', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); ?>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
    </form>
    </fieldset>
    
    <fieldset class="floatingBox forward">
    <legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT; ?></legend>
    <div class="information"><?php echo TEXT_RETURNING_CUSTOMER_SPLIT; ?></div>
    
    <?php echo zen_draw_form('login', 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']); ?>
    <br class="clearBoth" />
    
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . 
    
    '</a>'; ?></div>
    </form>
    </fieldset>
    <br class="clearBoth" />
    <!--EOF PPEC split login- DO NOT REMOVE-->
    <?php } 
    
    else  { ?>
    
    <!--BOF normal login-->
    
    <?php if ($_SESSION['cart']->count_contents() > 0) 
        { ?>
    <div class="advisory"><?php // echo TEXT_VISITORS_CART; ?></div>
    <div class="loginFloatingBox back"> 
    <fieldset>
    <legend><?php echo HEADING_EXPRESS_CHECKOUT; ?></legend>
    <?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
    <?php if ($ec_button_enabled) { ?>
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
    <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
    <?php } ?>
    <?php // ** END PAYPAL EXPRESS CHECKOUT ** ?>
    </fieldset>
    <p> Or... Use our own safe and secure checkout with any of your credit cards, PayPal, check or money order, by entering your information  below...</p>
    <img src="includes/templates/CUSTOM/images/credit_card_paypal_logos_2.png" alt="Credit Cards Accepted" />
    <img src="includes/templates/CUSTOM/images/check_sm.png" alt="Check / Money Order Accepted" />
    </div>
    
    <?php // echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_DIVIDER; ?>
    <?php  } ?>
    
    <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
    
    <div class="loginNew back">
    <fieldset> 
    <legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>
    
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>
    
    <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). 
    
    '/tpl_modules_create_account.php'); ?>
    
    <?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . 
    
    zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
    
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
    </fieldset>
    </form>
    </div>
    
    <div  class="loginReturning">
    <h4>Returning Customer? Enter your information for faster checkout.</h4>
    <fieldset >
    <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>
    
    <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"'); ?>
    <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"'); ?>
    <br class="clearBoth" />
    <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . 
    
    '</a>'; ?></div>
    </fieldset>
    </form>
    </div>
    
    <!--EOF normal login-->
    <?php } ?>
    </div>
    Elliot

    The loves of my life are a good white zinfandel and my dog Homer.

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

    Default Re: Futz'n with Login

    Hhhhhmmm - I took a quick look at the code - I am only seeing one <form> opening and I see 2 </form> closes - perhaps there is something missing?
    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.

  5. #5
    Join Date
    Feb 2007
    Location
    NNJ
    Posts
    212
    Plugin Contributions
    0

    Default Re: Futz'n with Login

    Well, this is the absolute truth about Zen Cart, when futz'n and fail'n, you can always rename what you got, get a fresh copy from template_default and try it again.

    You gotta love it...

    And now since I did some reading in a PHP book, I have a better idea of what I've been looking at for over a year... still no doctor , parakeet or elf.

    Thanks Kim.
    I'm grateful
    Elliot

    The loves of my life are a good white zinfandel and my dog Homer.

 

 

Similar Threads

  1. Can't login to admin after upgrade; can login with new install
    By dietcokelemon in forum Upgrading to 1.5.x
    Replies: 14
    Last Post: 9 Feb 2014, 05:16 PM
  2. Replies: 2
    Last Post: 3 May 2013, 02:49 AM
  3. Login using Safari cannot login with firefox or IE
    By ambivert in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 18 Jul 2007, 07:11 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