Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2008
    Location
    San Diego, California
    Posts
    54
    Plugin Contributions
    0

    Default How To Display Log In Box on Main Page?

    I am using the split log in box. I actually changed the lay out of it to display as vertical instead of horizontal.

    I want to display the box on my homepage. I am not using the left column - only the right - so my main page displays in in this entire area (where the left column would be as well as the center display area.

    So I want to insert code to display split log in box on my main page. Currently I have a 2 column table for my main page and want it to look like this:

    Column 1 Column 2
    Log In Box Narrative Here.


    Possibly it's easier to display a left column and login sidebox on home page? If I did that though, I would want to change to 2 column no left sidebox column on all other pages.

    I tried just inserting the code from the tpl_login_default.php page like this but did not work:


    <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 ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>

    <!--------------- BOF PPEC split login- DO NOT REMOVE --------------->

    <!--------------- changed split log in to display vertical --------------->

    <fieldset class="floatingBox back">
    <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_LOGIN, BUTTON_LOGIN_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" />

    <fieldset class="floatingBox left">
    <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_CREATE_ACCOUNT, BUTTON_CREATE_ACCOUNT_ALT); ?></div>
    </form>
    </fieldset>
    1.3.8
    Go Daddy Hosted

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

    Default Re: How To Display Log In Box on Main Page?

    You want folks to have to login before they can view the site?
    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
    Dec 2008
    Location
    San Diego, California
    Posts
    54
    Plugin Contributions
    0

    Default Re: How To Display Log In Box on Main Page?

    No - nothing that complicated.

    Just want the split log in box to appear on the home page for the customers convenience.

    Similar to this site:

    http://www.rotr.com/
    1.3.8
    Go Daddy Hosted

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: How To Display Log In Box on Main Page?

    Why not just install the "Login Box" sidebox? You can set it to display on either side. And, it only takes a couple of minutes to install. I can be found HERE.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Dec 2008
    Location
    San Diego, California
    Posts
    54
    Plugin Contributions
    0

    Default Re: How To Display Log In Box on Main Page?

    Does anyone know how to do this?
    1.3.8
    Go Daddy Hosted

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How To Display Log In Box on Main Page?

    If you get the Login box from the Free Software Add Ons, as Get Em Fast suggested, you would probably have what you want ...

    You can then customize that further if you only want it to show on the Home Page ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Dec 2008
    Location
    San Diego, California
    Posts
    54
    Plugin Contributions
    0

    Default Re: How To Display Log In Box on Main Page?

    I'll give it it a try now. The only issue I will have is that I will need to turn back on my left column to display the login box - this is my preferred location for the login - but want the left column to display only on the home page.

    For now I will install it and display in the right column to get going.

    Thanks.
    1.3.8
    Go Daddy Hosted

  8. #8
    Join Date
    Dec 2008
    Location
    San Diego, California
    Posts
    54
    Plugin Contributions
    0

    Default Re: How To Display Log In Box on Main Page?

    I installed the login box. Had a couple of issues:

    Instructions say to copy over the following files, but some were not in the download file:

    login_box.php - Found and uploaded.
    tpl_login.php - Not found.
    tpl_login_box.php - Found and uploaded.
    layout_box.php - Not found.
    login_box_defines.php - Found and uploaded.

    Possibly I missed something in the instructions?

    At any rate, the box appeared in admin box controller and I added it. But I had a problem with the display of the box - everything appeared double:





    What I'd like to do is change the look of the box on the login - to look like the ZC login here:



    I really like this sidebox - especially the account menu choices after they have logged in.

    Any assistance would be helpful!
    1.3.8
    Go Daddy Hosted

 

 

Similar Threads

  1. How do I display EZ-Pages on main page?
    By dmcracing in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Nov 2012, 07:28 PM
  2. Main page Category box display - break between Title & Image?
    By cjsmiff in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 Feb 2010, 01:32 AM
  3. display model number on side box and main page
    By nishajh in forum General Questions
    Replies: 0
    Last Post: 17 Jun 2009, 06:27 AM
  4. how can I set up a "customer log in" side box on the main page?
    By lina0962 in forum Basic Configuration
    Replies: 3
    Last Post: 9 Jun 2006, 11:56 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