Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Home login/register links

    The code fix I posted should work with that. The person trying it was using it wrong last I saw, so it hasn't been actually tested yet.

    If you delete code in whole chunks, and pay attention to balancing (eliminating) closing tags or brackets when deleting bits, you should be okay. Run it through an HTML validator if you want to be sure.
    Yes, I haven't gotten photos for a bunch of pieces yet... that's on the list to fix soon:)

  2. #12
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Home login/register links

    Quote Originally Posted by gjh42 View Post
    The code fix I posted should work with that. The person trying it was using it wrong last I saw, so it hasn't been actually tested yet.

    If you delete code in whole chunks, and pay attention to balancing (eliminating) closing tags or brackets when deleting bits, you should be okay. Run it through an HTML validator if you want to be sure.
    Yes, I haven't gotten photos for a bunch of pieces yet... that's on the list to fix soon:)

    This is what I got
    Validation Output: 4 Errors

    Error Line 50, Column 9: end tag for element "ul" which is not open

    </ul>


    Error Line 57, Column 5: end tag for "ul" which is not finished

    </ul>


    </div>



    </div>

    how do you find out which file the error originates from
    What ever your doing remember to KISS ( Keep It Simple Stupid )

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

    Default Re: Home login/register links

    First off, what section of the output does this occur in? If the header, check tpl_header.php, or possibly a sub-element file (pay attention to require() or include() statements).

  4. #14
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Home login/register links

    Quote Originally Posted by gjh42 View Post
    First off, what section of the output does this occur in? If the header, check tpl_header.php, or possibly a sub-element file (pay attention to require() or include() statements).
    I.ve found & sorted 2 of the 3 errors in the tpl_header file all thats left is:
    Error Line 57, Column 5: end tag for "ul" which is not finished
    is fron tpl_header.php
    edited section
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    </ul>
    <div class="date">Wednesday 30 November, 2011</div>
    </div>
    <!--<br class="clearBoth" />-->
    </div>
    <!--eof-navigation display-->


    original statement

    <!--bof-navigation display-->

    <div id="navAccountWrapper">
    <div id="navAccount">
    <ul class="back">
    <li class="contact"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
    <li class="account"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <li class="shop"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    </ul>
    </div>
    </div>

    <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 } } ?>

    <?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 }?>
    </ul>
    <div class="date"><?php echo strftime(DATE_FORMAT_LONG);?></div>
    </div>
    <!--<br class="clearBoth" />-->
    </div>
    <!--eof-navigation display-->

    is it worth panicking abot thease errors
    What ever your doing remember to KISS ( Keep It Simple Stupid )

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

    Default Re: Home login/register links

    edited section
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    </ul>

    <div class="date">Wednesday 30 November, 2011</div>
    </div>
    <!--<br class="clearBoth" />-->
    </div>
    <!--eof-navigation display-->
    A <ul> is supposed to have at least one <li> inside it; thus, "not finished".
    If you don't want any of that list, delete the whole <ul>.

  6. #16
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Home login/register links

    I've come across another problem removed the links now the page is to wide any ideas http://www.rvsolarsystems.co.uk/shop/
    Cheers peter
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  7. #17
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Home login/register links

    Quote Originally Posted by discoverytdi View Post
    I've come across another problem removed the links now the page is to wide any ideas http://www.rvsolarsystems.co.uk/shop/
    Cheers peter
    found that one / missing in a line but now I have an error

    Error Line 295, Column 6: end tag for element "div" which is not open
    <div >
    anyone know where to look I've tried but can't find it or is it something I need not worry about
    What ever your doing remember to KISS ( Keep It Simple Stupid )

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

    Default Re: Home login/register links

    Any HTML error will have to be handled by the browser, and they all handle errors somewhat differently. This can sometimes lead to quirks in one browser which can be hard to diagnose.

    It is best to get all errors corrected.

    The line mentioned will be in your view source, so look at that and see what the context of this line is. That will give a clue to the file to correct.

  9. #19
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Home login/register links

    Quote Originally Posted by gjh42 View Post
    Any HTML error will have to be handled by the browser, and they all handle errors somewhat differently. This can sometimes lead to quirks in one browser which can be hard to diagnose.

    It is best to get all errors corrected.

    The line mentioned will be in your view source, so look at that and see what the context of this line is. That will give a clue to the file to correct.
    Hiya I did find the error it was in the tpl_main.php which I haven't touched but when I deleted it the bottom left and right silver bars disappeared so all I can think of it's something left over when I changed the header
    oh and Merry Xmas
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  10. #20
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Home login/register links

    Quote Originally Posted by discoverytdi View Post
    Hiya I did find the error it was in the tpl_main.php which I haven't touched but when I deleted it the bottom left and right silver bars disappeared so all I can think of it's something left over when I changed the header
    oh and Merry Xmas
    This is really annoying me now I've looked and looked and can't track down the error hoping someone more knowledgeable than me can see it.

    edited section
    <!--bof-navigation display-->

    <div id="navAccountWrapper">
    <div id="navAccount">

    </div>
    </div>

    <div id="navMainWrapper"/>
    <div id="navMain">

    <div class="date"><?php echo strftime(DATE_FORMAT_LONG);?></div>
    </div>
    <!--<br class="clearBoth" />-->
    </div>
    <!--eof-navigation display-->


    original section
    <!--bof-navigation display-->

    <div id="navAccountWrapper">
    <div id="navAccount">
    <ul class="back">
    <li class="contact"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
    <li class="account"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <li class="shop"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    </ul>
    </div>
    </div>

    <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 } } ?>

    <?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 }?>
    </ul>
    <div class="date"><?php echo strftime(DATE_FORMAT_LONG);?></div>
    </div>
    <!--<br class="clearBoth" />-->
    </div>
    <!--eof-navigation display-->
    What ever your doing remember to KISS ( Keep It Simple Stupid )

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Home/Login links background
    By blackwolf in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Oct 2009, 06:36 PM
  2. Home, Login/register, log off, and my account links positioning
    By AllPrintGraphics in forum General Questions
    Replies: 4
    Last Post: 14 Oct 2009, 04:18 PM
  3. Moving 'home, login' links
    By Spo0f in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Jun 2009, 10:41 PM
  4. Home, Login in header. How can i put a "register" and others?
    By alex2310 in forum Customization from the Admin
    Replies: 1
    Last Post: 15 Mar 2007, 12:23 PM

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