How to Insert @username in activity comment replies.
Dear support/community I’d like to insert the @username of the activity author in the relative activity comment reply (as done in Twitter). I insert an echo bp_core_get_username(bp_get_activity_user_id()); in the file entry.php and it works well for the first reply level. I tried an echo bp_core_get_username(bp_get_activity_comment_user_id()); for the second reply level but it does not work. If I put this commant in comment.php using a $GLOBALS variable but when I read such variable in the entry.pho I get the wrong username (the last one of the loop. Can someone help me. please?
Thanks in advance!
- You must be logged in to reply to this topic.