What code do I put into a php page to get the same effect as on the amember.com website, in the upper right corner. When a user isn't logged in it says: 'Already a member? Sign in' If the user is signed in, user sees 'My Account | Sign Out'. Thanks!
Here is example: PHP: include "amember/library/Am/Lite.php"$lite = Am_Lite::getInstance();if($lite->isLoggedIn()){ print "Welcome ".$lite->getName();}else{ print $lite->renderLoginForm();}
Thanks, Alexander. But that's not the code I was looking for. I want the code that is used on the top right of this forum page that right now reads, "My Account | Sign Out". When I'm not logged in, it reads, "Already a member? Sign in". Thanks!
Still hoping to get a response on this. I want the code (for a PHP page) that will change "Already a member? Sign in" to "My Account | Sign Out" when a user logs in. I also want to use this on Wordpress and vBulletin. Would there be different code for each of those or not? If so, can you provide that code for Wordpress and vBulletin as well. Thanks!