Industrialshadow Posted May 4, 2011 Report Share Posted May 4, 2011 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 } ?> Quote Link to comment Share on other sites More sharing options...
Jeff Posted May 4, 2011 Report Share Posted May 4, 2011 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> Quote Link to comment Share on other sites More sharing options...
Industrialshadow Posted May 4, 2011 Author Report Share Posted May 4, 2011 ok thanks for that but i have the same problem ia have closed now all tags with </a> but when you look in my main menu so you can see thats the Home Image not correct if. Where can i change this. I have used this <p> not <li> but when im using <p> its not showing correct. Need help Quote Link to comment Share on other sites More sharing options...
Jeff Posted May 4, 2011 Report Share Posted May 4, 2011 Deleted reply. By Jeff Quote Link to comment Share on other sites More sharing options...
Jeff Posted May 4, 2011 Report Share Posted May 4, 2011 (edited) 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 May 4, 2011 by Jeff Quote Link to comment Share on other sites More sharing options...
Industrialshadow Posted May 4, 2011 Author Report Share Posted May 4, 2011 ok i will test it tommorow now its very late here thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.