Thread: Hide My Account

Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Hide My Account

    I want to hide my Account i nthe header to only show when someone is logged in

    is this possible

  2. #2
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: Hide My Account

    I tried doign this

    if !($_SESSION['customer_id']) {
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li>
    }

    in the tpl_header file

    But it dont work it just ads that int othe header area

    Any ideas?

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

    Default Re: Hide My Account

    If that is exactly the code you have, then it won't work because you have not identified the "if" test as being PHP instead of HTML.
    You need this:
    PHP Code:
    <?php
    if !($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT?></span></a></li>
    <?php ?>

 

 

Similar Threads

  1. Replies: 4
    Last Post: 21 Jun 2010, 04:22 PM
  2. How to set/create another manager account than admin account?
    By andy_lau in forum Basic Configuration
    Replies: 1
    Last Post: 15 Apr 2009, 09:19 AM
  3. Hide Telephone During Account Creation Issue
    By abhishek77 in forum General Questions
    Replies: 1
    Last Post: 5 May 2008, 12:30 PM
  4. Bypass create account success page and go to My Account instead?
    By dealbyethan.com in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Dec 2007, 01:50 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