Jump to content

Need Help for coding Core.navigation


Industrialshadow

Recommended Posts

Hello

I have customize my core navigation. But i have a litte problem

look here

Website

All images shown correct but the Home Image not

When i try <p>yourlink</p> its not working.Have anybody an idea.And the Same is with the Admin Area. I will add an image but its not show.Why?

<li><a href="<?php echo SITE_URL ?>/index.php/Frontpage"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Home.png" alt="" /></li>
<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
 <table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
 <td><p><a href="<?php echo SITE_URL ?>/index.php/registration"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Join.png" alt="" /></p></td>
 <td> </td>
</tr>
</table>
<?php
}
else
{
// Show these items only if they are logged in
?>
<table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
 <td><p><a href="<?php echo url('/profile'); ?>"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Profile.png" alt="" /></p></td>
 <td><p><a href="<?php echo url('/Mail'); ?>"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Mail.png" alt="" /></p></td>
</tr>
</table>

<?php
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
 <td><p><a href="<?php echo SITE_URL ?>/index.php/pilots"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Pilots.png" alt="" /></p></td>
 <td><p><a href="<?php echo url('/Screenshots'); ?>"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Gallery.png" alt="" /></p></td>
</tr>
<tr>
 <td><p><a href="<?php echo url('/Fleet'); ?>"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Fleet.png" alt="" /></p></td>
 <td><p><a href="<?php echo url('/rank'); ?>"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Ranks.png" alt="" /></p></td>
</tr>
<tr>
 <td><p><a href="<?php echo url('/staff');?>"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Staff.png" alt="" /></p></td>
 <td><p><a href="<?php echo url('/finances');?>"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Finance.png" alt=""</a></p></td>
</tr>
<tr>
 <td><p><a href="<?php echo SITE_URL ?>/index.php/pages/sitemap"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Info.png" alt="" /></p></td>
 <td><p><a href="<?php echo SITE_URL ?>/index.php/pages/ourhubs"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Hubs.png" alt="" /></p></td>
</tr>
</table>
<?php echo $MODULE_NAV_INC;?>
<table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
 <td><?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
       if(Auth::UserInGroup('Administrators'))
       {
               echo '<p><a href="'.SITE_URL.'/admin/"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/Admin.png" alt="" /></p>';
       }
?></td>
 <td><p><a href="<?php echo SITE_URL ?>/index.php/login/logout"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Logout.png" alt="" /></p></td>
</tr>
</table>
<?php
}
?>

Link to comment
Share on other sites

2 problems. First, you shouldn't need to place them inside the <p></p>.

Second, you have <a href=""> but you aren't closing it with the </a>

Here's the first one, you can change the rest.

You have:

<li><a href="<?php echo SITE_URL ?>/index.php/Frontpage"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Home.png" alt="" /></li>

Change it to:

<li><a href="<?php echo SITE_URL ?>/index.php/Frontpage"><img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/images/Home.png" alt="" /></a></li>

Link to comment
Share on other sites

Looking at your PAGE SOURCE, I see this:

<li><li><a href="http://sflogistik.dhl-aircargo.de/index.php/Frontpage"><img src="http://sflogistik.dhl-aircargo.de/lib/skins/ObsessBlue/images/Home.png" alt="" /></a></li>

There is an extra <li> at the beginning of the link.

Also, you can try to code it this way for the Home link:

Upload this image to your folder you have the rest of those icons and try using this.

<tr>
 <td><p><a href="http://sflogistik.dhl-aircargo.de/index.php/Frontpage"><img src="http://sflogistik.dhl-aircargo.de/lib/skins/ObsessBlue/images/Home.png" alt="" /></a></p></td>
 <td><p><img src="http://sflogistik.dhl-aircargo.de/lib/skins/ObsessBlue/images/blank.png" alt="" /></p></td>
</tr>
<tr>
 <td>Home</td>
 <td></td>
</tr>

That way it will show a transparent image and you should be all lined up.

Edited by Jeff
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...