Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Global Variable – Username not ID


belogical
Participant

@belogical

ok, this one is bizarre. i can\’t seem to get the username to display on either method. what could I be doing wrong?

here is my test:

echo \”1)\”;

echo $bp->loggedin_user->fullname;

echo \”2)\”;

echo $bp->loggedin_user->username;

echo \”3)\”;

echo $bp->loggedin_user->id;

echo \”4)\”;

echo $bp->displayed_user->fullname;

echo \”5)\”;

echo $bp->displayed_user->username;

echo \”6)\”;

echo $bp->displayed_user->id ;

here is the result:

1)Andrea R.

2)

3)23

4)Andrea R.

5)

6)23

Skip to toolbar