Page 9 of 27 FirstFirst ... 789101119 ... LastLast
Results 81 to 90 of 270
  1. #81
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by Doodlebuckets View Post
    Uh Oh! Now there is no tab at all!
    For now restore it back to your original code (with the double tab).

    I'm trying to get the mod to work on my test site but for some reason the function call doesn't seem to work. My error log keeps telling me the function is undefined although I've included it in fuctions_customers.php

    I'll do some work and see what I can come up with.

  2. #82

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by clydejones View Post
    For now restore it back to your original code (with the double tab).

    I'm trying to get the mod to work on my test site but for some reason the function call doesn't seem to work. My error log keeps telling me the function is undefined although I've included it in fuctions_customers.php

    I'll do some work and see what I can come up with.
    I appreciate it. No rush. I don't plan to launch just yet :)

  3. #83
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by Doodlebuckets View Post
    I appreciate it. No rush. I don't plan to launch just yet :)
    I've been looking at the issue and I think it has something to do with how the function is structured but can't pinpoint exactly where the problem is.

    This is the function:

    /// bof Personalized My Account Link by bigjoed
    function zen_customer_store_account() {

    if (isset($_SESSION['customer_id']) && $_SESSION['customer_first_name']) {
    $store_account_string = sprintf(TEXT_STORE_ACCOUNT_PERSONAL, zen_output_string_protected($_SESSION['customer_first_name']), zen_href_link(FILENAME_ACCOUNT));
    } else {
    $store_account_string = sprintf(TEXT_STORE_ACCOUNT_GUEST, zen_href_link(FILENAME_LOGIN, '', 'SSL'), zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
    }

    return $store_account_string;
    }
    /// eof Personalized My Account Link by bigjoed

    When you're logged in the first part of the function works just fine. As far as I can tell it has something to do with the else statement (or when you're not logged in.
    There seem to be two links calls (actually 3, if you count the link in this define statement (TEXT_STORE_ACCOUNT_GUEST)) that may be causing the double tab. I just can't figure out how to correct it.

    The mod works just fine using the default tpl_header.php (that is just using the unordered list without moving things around. In the default the My Account link doesn't display until you're logged in.

    I'll keep working on it (but at this point, You may have to modify the navbar a little bit to ge the personal account information to show properly.)

    I'll let you know.

  4. #84
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Ocean Front Template Support Thread

    Originally Posted by Doodlebuckets View Post
    I appreciate it. No rush. I don't plan to launch just yet :)
    I think I got it fixed:

    Open includes/languages/ocean_front/english.php

    find this section and delete the highlighted portions:

    Code:
    /// bof Personalized My Account Link by bigjoed
      define('TEXT_STORE_ACCOUNT_PERSONAL', '%s\'s Account');  
      define('TEXT_STORE_ACCOUNT_GUEST', '<a href="%s">Your Account</a>');
    /// eof Personalized My Account Link by bigjoed
    This link was causing the double tab.

    The tab will now show Your Account when not logged in and User Name Account when logged in

    So the navigation section of
    includes/templates/ocean_front/common/tpl_header.php

    Should now look like this

    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    </ul>
    <ul class="forward">
    <li class="contact"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
    
    <!--bof Personalized My Account Link by bigjoed-->
        <?php if (SHOW_CUSTOMER_GREETING == '1') { ?><li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT); ?>"><?php echo zen_customer_store_account(); ?></a></li><?php } ?>
    <!--eof Personalized My Account Link by bigjoed-->
    
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
        <li class="viewCart"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    </ul>
    
    </div>

  5. #85

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by clydejones View Post
    I think I got it fixed:
    Thanks so much Clyde! That did it...

    I have another quandry: My login page doesn't display nicely even with the centercolumn fix you have. Maybe if you looked at the current css, you could see something to fix. I have messed and messed with it, but I just don't know css well enough to fix it:

    [scr]
    PHP Code:
    /**
     * Login CSS Stylesheet
     *
     * @package easy signup and login
     * @copyright Copyright 2007 Numinix Technology http://www.numinix.com
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: login.css 2 2008-07-31 01:49:39Z numinix $
     */

    #login-password {
        
    margin-left0px;
        }

    #login-email-address {
        
    margin-left0px;
        }

    .
    centerColumn {
        
    margin-bottom2.5em;
        
    marginauto;
    }

    #loginColumnLeft {
        
    width60%;
        
    margin-left:0;
        
    floatleft;
        }

    #loginColumnRight {
        
    width35%;
        
    padding-left:2.4em;
        
    floatleft;
        }
        
    .
    loginFieldsetRight, .loginFieldsetLeft {
        
    width:100%;
    }

    fieldset {
        
    border1px solid #cccccc;
        
    padding6px;
    }

    legend {
        
    border1px solid #4A4A4A; /*#cccccc;*/
        
    background-color#F0FFF0; /*#E8E8E8;*/
        
    color#4A4A4A;
    }
    .
    buttonRow {
        
    padding-top5px;

    [/scr]

  6. #86
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by Doodlebuckets View Post
    Thanks so much Clyde! That did it...

    I have another quandry: My login page doesn't display nicely even with the centercolumn fix you have. Maybe if you looked at the current css, you could see something to fix. I have messed and messed with it, but I just don't know css well enough to fix it:

    [scr]
    PHP Code:
    /**
     * Login CSS Stylesheet
     *
     * @package easy signup and login
     * @copyright Copyright 2007 Numinix Technology http://www.numinix.com
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: login.css 2 2008-07-31 01:49:39Z numinix $
     */

    #login-password {
        
    margin-left0px;
        }

    #login-email-address {
        
    margin-left0px;
        }

    .
    centerColumn {
        
    margin-bottom2.5em;
        
    marginauto;
    }

    #loginColumnLeft {
        
    width60%;
        
    margin-left:0;
        
    floatleft;
        }

    #loginColumnRight {
        
    width35%;
        
    padding-left:2.4em;
        
    floatleft;
        }
        
    .
    loginFieldsetRight, .loginFieldsetLeft {
        
    width:100%;
    }

    fieldset {
        
    border1px solid #cccccc;
        
    padding6px;
    }

    legend {
        
    border1px solid #4A4A4A; /*#cccccc;*/
        
    background-color#F0FFF0; /*#E8E8E8;*/
        
    color#4A4A4A;
    }
    .
    buttonRow {
        
    padding-top5px;

    [/scr]
    Amy,

    Try adding a width to the .centercolumn declaration

    .centerColumn {
    margin-bottom: 2.5em;
    margin: auto;
    width: 790px;
    }

  7. #87

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by clydejones View Post
    Amy,

    Try adding a width to the .centercolumn declaration

    .centerColumn {
    margin-bottom: 2.5em;
    margin: auto;
    width: 790px;
    }
    Yes, I've done that and nothing changes. https://www.babygiftbasketstores.com...ain_page=login
    I just put it to 10px and it didn't budge! It's just not affecting the width at all...

  8. #88
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by Doodlebuckets View Post
    Yes, I've done that and nothing changes. https://www.babygiftbasketstores.com...ain_page=login
    I just put it to 10px and it didn't budge! It's just not affecting the width at all...
    Amy can you post your tpl_login.php file.

    I can use it and the css on my test site and see whats what.

  9. #89

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by clydejones View Post
    Amy can you post your tpl_login.php file.

    I can use it and the css on my test site and see whats what.
    This is from my tpl_login_default.php fileL

    [scr]
    PHP Code:
    <?php

    /**

     * Page Template

     *

     * @package templateSystem
    - Easy Sign-Up and Login
     * @copyright Copyright 2007-2008 Numinix Technology http://www.numinix.com
     * @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 2 2008-07-31 01:49:39Z numinix $

     */

    ?>


    <div id="centerColumn">
    <?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>
    <div id="loginColumnLeft">


    <?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
    <!-- BOF SHOPPING CART -->
    <?php

      
    if ($fec_order_total_enabled) {
        include(
    DIR_WS_TEMPLATE 'templates/tpl_modules_esl_ordertotal.php');
      } 
    ?>
    <!-- EOF SHOPPING CART -->
    <!-- BEGIN CHECKOUT WITHOUT ACCOUNT -->
    <?php
        
    if (FEC_NOACCOUNT_SWITCH == 'true') {
          if (
    $_SESSION['cart']->count_contents() > 0) { ?>
            <fieldset class="loginFieldsetLeft">
            <legend><?php echo COWOA_HEADING?></legend>
            <br class="clearBoth" />
            <div class="information"><?php echo TEXT_RATHER_COWOA?></div>
            <div class="buttonRow forward">
            <?php echo "<a href=\"" zen_href_link(FILENAME_NO_ACCOUNT'''SSL') . "\">"?>
            <?php echo zen_image_button(BUTTON_IMAGE_CONTINUEBUTTON_CONTINUE_ALT); ?></a></div>
            </fieldset>
    <?php }} ?>
    <!-- END CHECKOUT WITHOUT ACCOUNT -->
    <!--BOF PPEC split login- DO NOT REMOVE-->

    <fieldset class="loginFieldsetLeft">

    <legend><?php echo HEADING_NEW_CUSTOMER_SPLIT?></legend>
    <br class="clearBoth"/>
    <?php if ($_SESSION['cart']->count_contents() > 0) { ?>
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT_NO_CART?></div>
    <?php } else { ?>
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT?></div>
    <?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'); ?>

    <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMITBUTTON_SUBMIT_ALT); ?></div>
    </form>

    </form>

    </fieldset>
    </div> <!-- end columnLeft -->
    <div id="loginColumnRight">
    <fieldset class="loginFieldsetRight">
    <legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT?></legend>
    <br class="clearBoth"/>

    <div class="information"><?php echo TEXT_RETURNING_CUSTOMER_SPLIT?></div>

    <br class="clearBoth"/>
    <?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="25"''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="25"''id="login-password"'); ?>
    <?php 
        
    if (PROJECT_VERSION_MAJOR == '1' && substr(PROJECT_VERSION_MINOR03) == '3.8') { 
            echo 
    zen_draw_hidden_field('securityToken'$_SESSION['securityToken']); 
        }
    ?>    
    <div class="buttonRow back"><?php echo zen_image_submit(BUTTON_IMAGE_LOGINBUTTON_LOGIN_ALT); ?></div>

    </fieldset>
    <div class="buttonRow back important"><?php echo '<a href="' zen_href_link(FILENAME_PASSWORD_FORGOTTEN'''SSL') . '">' TEXT_PASSWORD_FORGOTTEN '</a>'?></div>
    </form>
    <br class="clearBoth"/>

    <!-- BOF PAYPAL -->
    <?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** 
    ?>
    <?php 
    if ($ec_button_enabled) { ?>
    <fieldset class="loginFieldsetRight">
    <legend><?php echo HEADING_PAYPAL?></legend>
    <br class="clearBoth"/>
    <div class="information"><?php echo TEXT_PAYPAL_INTRODUCTION_SPLIT?></div>
    <br class="clearBoth"/>
    <div class="center"><?php require(DIR_FS_CATALOG DIR_WS_MODULES 'payment/paypal/tpl_ec_button.php'); ?></div>
    </fieldset>
    <br class="clearBoth"/>
    <?php ?>

    <?php // ** END PAYPAL EXPRESS CHECKOUT ** 
    ?>
    <!-- EOF PAYPAL -->

    <?php if (FEC_CONFIDENCE == 'true') { ?>
        <fieldset class="loginFieldsetRight">
            <legend><?php echo HEADING_CONFIDENCE?></legend>
        </fieldset>
    <?php ?>

    </div> <!-- end columnRight -->
    <!--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>

    <?php

      
    }

    ?>

    <?php echo zen_draw_form('login'zen_href_link(FILENAME_LOGIN'action=process''SSL')); ?>

    <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 
        
    if (PROJECT_VERSION_MAJOR == '1' && substr(PROJECT_VERSION_MINOR03) == '3.8') {
            echo 
    zen_draw_hidden_field('securityToken'$_SESSION['securityToken']);
        }
    ?>
    </fieldset>



    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGINBUTTON_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>

    <br class="clearBoth" />



    <!-- BEGIN CHECKOUT WITHOUT ACCOUNT -->
    <?php
        
    if (FEC_NOACCOUNT_SWITCH == 'true') {
            if (
    $_SESSION['cart']->count_contents() > 0) { ?>
               <fieldset>
            <legend>Checkout Without Account</legend>
            <?php echo TEXT_RATHER_COWOA?>
            <div class="buttonRow forward">
            <?php echo "<a href=\"" zen_href_link(FILENAME_NO_ACCOUNT'''SSL') . "\">"?>
            <?php echo zen_image_button(BUTTON_IMAGE_CONTINUEBUTTON_CONTINUE_ALT); ?></a></div>
            <br class="clearBoth" />
            </fieldset>
    <?php }} ?>
    <!-- END CHECKOUT WITHOUT ACCOUNT -->
    <?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'); ?>

    <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'); ?>



    </fieldset>



    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMITBUTTON_SUBMIT_ALT); ?></div>

    </form>

    <!--EOF normal login-->

    <?php ?>
    </div>

         <?php
      
    // ** GOOGLE CHECKOUT **
      
    if (strtolower(MODULE_PAYMENT_GOOGLECHECKOUT_STATUS) == 'true') {
        
    ?>
        <div style="margin-top:100px;">
        <?php
        
    include(DIR_WS_MODULES 'show_google_components.php');
      
    ?>
      </div>
      <?php
      
    }
      
    // ** END GOOGLE CHECKOUT **
      
    ?>
    [/scr]

  10. #90
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Ocean Front Template Support Thread

    Quote Originally Posted by Doodlebuckets View Post
    This is from my tpl_login_default.php fileL
    OK, I'll put them up on my test site and see if I can track down the problem.

 

 
Page 9 of 27 FirstFirst ... 789101119 ... LastLast

Similar Threads

  1. Lavender Template Support Thread
    By kobra in forum Addon Templates
    Replies: 262
    Last Post: 13 May 2015, 01:00 AM
  2. Scuro Template Support Thread
    By brandonturpin in forum Addon Templates
    Replies: 11
    Last Post: 12 Mar 2015, 09:45 PM
  3. Rustic Template Support Thread
    By clydejones in forum Addon Templates
    Replies: 320
    Last Post: 20 May 2013, 10:47 AM
  4. Watermelon Template Support Thread
    By LissaE in forum Addon Templates
    Replies: 22
    Last Post: 14 Oct 2011, 04:03 AM
  5. strange characters displayingn using ocean front template
    By bishop999 in forum General Questions
    Replies: 1
    Last Post: 28 Jul 2008, 07:43 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR