Thread: tpl header

Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: tpl header

    Quote Originally Posted by Ajeh View Post
    The better solution than either is:
    PHP Code:
    <?php if ($_SESSION['customer_id'] <= 0) { ?>
    <a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><img src="images/header_04.jpg" width="97" height="28" border="0" alt=""></a>
    <?php } else { ?>
    <a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><img src="images/header_04b.jpg" width="97" height="28" border="0" alt=""></a>
    <?php ?>
    This runs the right image and does it with the secure/non-secure ability etc.
    Hello,

    I tried the above and it works and runs the right images but I have all these lines around the images for some reason. Can this be removed or should I just opt for the previous script?

    Thank you

  2. #2
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: tpl header

    Ajeh,

    I forgot to add that these lines are only visible in Internet Explorer. They do not appear in Firefox.

    Thanks again

 

 

Similar Threads

  1. v151 Add image to header.tpl file
    By sports guy in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Nov 2012, 09:45 PM
  2. header.php and tpl header image remover
    By d1rage5 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Jul 2008, 09:56 PM
  3. Header & footer tpl files
    By heimskr75 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jan 2008, 03:02 PM
  4. Categorie Images in header.tpl
    By bmac in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jun 2006, 05:15 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