I created a file using the following code: Code: <?php require_once '/home/fgleague/public_html/amember/library/Am/Lite.php'; echo Am_Lite::getInstance()->getUsername(); ?> and it is returning the logged in user's username perfectly. However I cannot get this code to work in my other files, mainly my header php file that I am using on all of my pages. Any idea why? I have tried moving the code all around but cannot seem to get the username to display. Thanks.
Please insert this code somewhere in your header.php file : phpinfo(); and attach output. You can do this in helpdesk if don't want to attach it in public forum.