Forum Replies Created
-
In reply to: Friend Count
Display current # of friends for current user id
echo BP_Friends_Friendship::total_friend_count( $bp->loggedin_user->id );In reply to: Member Profile URL with User ID instead of UsernameAh, nice. Yep, the old activities save in the db. Now I am going to go in the db and just drop the old activities
In reply to: Member Profile URL with User ID instead of UsernameRegarding the code on github, yes, that did partially fix it. Now all users can be found via their user id # rather than username.
/members/id #/
The only problem I see so far is that the code didnt update the activity feed. If you click a name for a user in the activity feed it is still trying to locate user the old way but the user icons on the newsfeed are correct and try to take you to user profile with their user id #.
So say for example:
James Gill wrote a new post, Gluten
The name James Gill is still trying to render the /members/username/ but not the /members/user id#/
but the rest of the site except activity feed appears to be working right now. only the icons on the activity feed try to render /members/user id#/
In reply to: Member Profile URL with User ID instead of UsernameLooking for same answer as well
Instead of changing it from showing full name in url, how can I set the url to be the users nickname?