Getting userid and display name
-
Hello all! This is probably a fairly n00bish question but how does one find the userid? I want to get it for a chat plug-in I am developing. Then the next step from that would be getting the users full name from the userid. I have this currently hard-coded into the header.php before the HTML is loaded:
$username = bp_core_get_username( $bp->loggedin_user->id );
session_start();echo $username;
$_SESSION = $username; // Must be already setbut it’s value always seems to be blank (or NULL/nil)
Any suggestions? Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Getting userid and display name’ is closed to new replies.