osCmax v2.5 User Manual
Results 1 to 3 of 3

compromise menus - my account/login-off

This is a discussion on compromise menus - my account/login-off within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I have been taken the compromise template and extensively tweaked it up for a new domain.. I noticed, once logged ...

      
  1. #1
    osCMax Testing Team wkdwich's Avatar
    Join Date
    Jul 2007
    Posts
    307
    Rep Power
    11


    Default compromise menus - my account/login-off

    I have been taken the compromise template and extensively tweaked it up for a new domain.. I noticed, once logged in, there was menu button for "My Account" but no "Log Off". It looks like at some point I changed the language file for "MENU_TEXT_LOGIN" to "My Account". I think EJ worked with me one night to get that in there. Tonight I now realize once logged in, I wanted to go check the orders were listed under "My Account" - there is now a "Log Off", but no "My Account" menu choice.

    so here is what I did..
    /catalog/templates/compromise/main_page_code.php

    FIND:
    Code:
    //begin{myaccount}
    ADD ABOVE:
    Code:
    //begin{loginout}
     ?>
    <?php if (tep_session_is_registered('customer_id')) { ?>
                      <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo MENU_TEXT_LOGOUT; ?></a>
                      <?php } else {?>
                      <a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo MENU_TEXT_LOGIN; ?></a>
                      <?php } ?>
      <?php       
    //end{loginout}
    ===================
    /catalog/templates/compromise/main_page.html
    FIND:
    Code:
    <li>{myaccount}</li>
    ADD BELOW (or above, it doesn't matter really)
    Code:
    <li>{loginout}</li>

    I hope that helps someone!
    Debbie D
    NY & VA

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Talking Re: compromise menus - my account/login-off

    Wasn't me.. didn't do it.. no-one saw me... can't prove anything.

    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    New Member
    Join Date
    Nov 2009
    Posts
    18
    Rep Power
    0


    Default Re: compromise menus - my account/login-off

    Thanks,this was very helpful.I thought that although it was fairly intuitive for a visitor to get to logon from the my account navbar link,it wasn't quite so intuitive to get back to the my account page in order to log off.Thats fixed thanks to this thread.
    If you're working on 2.5 rc1,you just have to change MENU_TEXT_LOGIN,
    to HEADER_TITLE_LOGIN.(to work with the language defines in /includes/languages/english/core.php).

Similar Threads

  1. Login, Create Account, CHeckout PHP ?
    By designedshai in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 01-09-2007, 06:22 PM
  2. DHTML Menus vs Default Menus Problem???
    By bchemist in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 07-09-2005, 11:17 AM
  3. OScommerce : can't create or login to an account
    By digitalmelody in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 10-18-2004, 12:00 AM
  4. how 2 change text in create new account box next to login
    By karmakat in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 04-14-2004, 05:20 PM
  5. bypass SSL login/myaccount/create account
    By thesauce98 in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 03-16-2004, 12:56 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
  •