Help with PHP

Discussion in 'HTML & Website Design' started by Kiri, Jan 2, 2009.

  1. #1
    the site is here http://danhaneveer.com and what I would like to do is to get rid on my name behind my header image. I'm not experienced in php and I can't make sense of the code that puts it there. Here is what is in the headep.php file

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>

    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="description" content="" />
    <title> <?php echo $this->config->item('lifestream_title')?>&rsaquo; <?php echo $page_name?></title>
    <link rel="stylesheet" href="<?php echo $this->config->item('base_url')?>public/css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php echo $this->config->item('theme_folder')?>main.css" type="text/css" media="screen" />
    <?php if ($page_type == 'index' || !$page_type): ?>
    <link rel="alternate" type="application/rss+xml" title="Full RSS Feed" href="<?php echo $this->config->item('base_url')?>feed" />
    <?php else: ?>
    <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="<?php echo $this->config->item('base_url')?>feed/<?php echo $page_type?>/<?php echo $page_query?>" />
    <?php endif; ?>

    <?php if (!$page_type): ?>
    <link rel="stylesheet" href="<?php echo $this->config->item('theme_folder')?>scripts/code.css" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php echo $this->config->item('theme_folder')?>scripts/highlight.js"></script>
    <script type="text/javascript">
    initHighlightingOnLoad('html', 'css', 'php', 'javascript');
    </script>
    <?php endif; ?>
    </head>

    <body>
    <div id="header">
    <div class="center_box">

    <ul id="navigation">
    <li<?php if ((!$this->uri->segment(1) || $this->uri->segment(1) == 'items' || $this->uri->segment(1) == 'page') && !$this->uri->segment(3)) : ?> class="current"<?php endif; ?>><a href="<?php echo $this->config->item('base_url')?>" title="Home">Home</a></li>

    <li<?php if ($this->uri->segment(3) == 'twitter.com'): ?> class="current"<?php endif; ?>><a href="<?php echo $this->config->item('base_url')?>items/site/twitter.com" ><img src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/favicons/itwitter.png" alt="twitter"> Twitter</a></li>

    <li<?php if ($this->uri->segment(3) == 'flickr.com'): ?> class="current"<?php endif; ?>><a href="<?php echo $this->config->item('base_url')?>items/site/flickr.com" ><img src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/favicons/iflickr.png" alt="flickr"> Flickr</a></li>

    <li<?php if ($this->uri->segment(3) == 'google.com'): ?> class="current"<?php endif; ?>><a href="<?php echo $this->config->item('base_url')?>items/site/google.com" ><img src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/favicons/igooglereader.png" alt="google reader"> Reader</a></li>

    <li<?php if ($this->uri->segment(3) == 'youtube.com'): ?> class="current"<?php endif; ?>><a href="<?php echo $this->config->item('base_url')?>items/site/youtube.com" ><img src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/favicons/iyoutube.png" alt="youtube"> YouTube</a></li>

    <li<?php if ($this->uri->segment(3) == 'jamazon.co.uk'): ?> class="current"<?php endif; ?>><a href="<?php echo $this->config->item('base_url')?>items/site/jamazon.co.uk" ><img src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/favicons/ilastfm.png" alt="last.fm"> LastFM</a></li>


    <li id="rsslink"><a href="<?=$this->config->item('base_url')?>feed"><img src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/feedbig.png" alt="Full RSS feed"> Feed</a></li>

    <li<?php if ($this->uri->segment(2) == 'about'): ?> class="current"<?php endif; ?>><a href="<?=$this->config->item('base_url')?>p/about/" title="About Me">About</a></li>

    <li<?php if ($this->uri->segment(2) == 'contact'): ?> class="current"<?php endif; ?>><a href="<?php echo $this->config->item('base_url')?>p/contact/" title="Contact Me">Contact</a></li></ul>


    <img id="itsame" src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/danhaneveer.png" border="0" alt="Dan Haneveer - Live an Intrepid Life">
    <h1><a href="<?php echo $this->config->item('base_url')?>"><?php echo $this->config->item('lifestream_title')?></a></h1>
    </div>
    </div>

    <div class="center_box">
     
    Kiri, Jan 2, 2009 IP
  2. fulltilt

    fulltilt Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Remove the ALT from here:

    <img id="itsame" src="<?php echo $this->config->item('base_url')?>/system/application/views/themes/boxdaddy/images/danhaneveer.png" border="0" alt="Dan Haneveer - Live an Intrepid Life">
    Code (markup):
    or at least change it to something else.

    Is that what you were meaning ?
     
    fulltilt, Jan 2, 2009 IP
  3. Kiri

    Kiri Peon

    Messages:
    57
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No thats is the bit I want to keep, I'm going to say thanks anyway because you've drawn my eye to the bit that needed to go. which is in the h1 tags right below that.
     
    Kiri, Jan 2, 2009 IP
  4. fulltilt

    fulltilt Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for that, your site wasn't working when I tried to access it so I thought that was what you meant, if it's fixed that's the main thing :)
     
    fulltilt, Jan 3, 2009 IP