Page 1 of 1

Admin name in the nav

PostPosted: Fri Mar 30, 2012 4:56 pm
by klopus
I modified the nav, to enter instead of writing My Files, the name of "Registered user", so everything is right!
but when I access via Admin login, I dont see any name
how can I fix this?

Code: Select all
<?php if ($_SESSION['islogged'] <> true) {?>
  <a class="toplinks" href="index.php?page=login"><?php echo $lang[login];?></a>
  <?php }else{?><a class="toplinks" href="index.php?page=userpanel"><?php echo $_SESSION['name'];?></a><?php }?>


its possible?

thanks in advance, and sorry for my bad english(im italian :D)

ps: This script is fantastic, I will donate soon :D

Re: Admin name in the nav

PostPosted: Fri Mar 30, 2012 7:06 pm
by SamEA
The AdminCP has its own header and footer. You'll need to modify ./admin.php to adjust the navigation bar. However, do be careful though.