"You're Now Logged in as *****"

Permalink
Currently I've gotten the Loggin Block downloaded, and I'm using it so users can comment on my content. However, I'm finding a problem. Whenever I login (I've tried logging out and logging back in) it still displays the "Login or Register" menu.

I wonder if there is a way for me to set it up where it says "You're now logged in as Admin" "Click to go to your profile page" (Set those up too)

Thanks!

Evolyptic
 
katz515 replied on at Permalink Reply
katz515
You need to embed this code onto the theme.

But here you go

<?php 
      $u = new User();
      if ($u->isRegistered()) { ?>
         <span class="sign-in"><?php echo t('Currently logged in as <b>%s</b>.', $u->getUserName())?> <a href="<?php echo DIR_REL?>/index.php/profile/">Edit your profile</a>. <a href="<?php echo $this->url('/login', 'logout')?>"><?php echo t('Sign Out')?></a></span>
      <?php  } else { ?>
         <span class="sign-in"><a href="<?php echo $this->url('/login')?>"><?php echo t('Sign In to Edit this Site')?></a></span>
   <?php  } ?>


Also if you have a Dreamweaver, I made the snipetts so that you can easily insert these code.

http://concrete5-japan.org/dreamweaver/en/...

I've added the link

<a href="<?php echo DIR_REL?>/index.php/profile/">Edit your profile</a>


To original theme.
Evolyptic replied on at Permalink Reply
Evolyptic
Thank you very much : )