Is it just me, or is there no Buddypress function reference? I can't seem to find one and it's a real drag because what I want to do is simple:
I'm using the Blogs MU theme, and am creating a child theme for member blogs (for sitewide visual consistency). In the sidebar of this child theme, I'm creating a bio box for the blog owner.
I managed to randomly stumble across the get_avatar(get_the_author_id()) function, which displays the thumbnail version of the blog owner's avatar perfectly. Adding a second parameter for size scales the thumbnail up, but does not display the unscaled full-sized version of the avatar. How do I retrieve the full-sized avatar?
Also, I have a BP profile field set up for users to enter a bio for themselves. There must be a function to grab the contents of this field?
Is it just me, or is there no Buddypress function reference? I can't seem to find one and it's a real drag because what I want to do is simple:
I'm using the Blogs MU theme, and am creating a child theme for member blogs (for sitewide visual consistency). In the sidebar of this child theme, I'm creating a bio box for the blog owner.
I managed to randomly stumble across the get_avatar(get_the_author_id()) function, which displays the thumbnail version of the blog owner's avatar perfectly. Adding a second parameter for size scales the thumbnail up, but does not display the unscaled full-sized version of the avatar. How do I retrieve the full-sized avatar?
Also, I have a BP profile field set up for users to enter a bio for themselves. There must be a function to grab the contents of this field?
Responses (3)
Sales & Support Pro — 1st February 2012 #
Hiya!
There is, but as with the WordPress equivalent, it's not as documented as it could be: http://codex.buddypress.org/home/
I've had issues with BP avatars myself actually and never really got to the bottom of it.
I take if you've tried in the BP forums?
Thanks,
Phil
Member — 1st February 2012 #
Ah, thanks for the link. The docs do look pretty sparse, but I guess it's better than nothing.
I'll post on the BP forum and see if anyone over there has an answer.
Member — 7th February 2012 #
I've posted back a forth a couple times on the BP forum, but so far no luck finding a way to access the full-size avatar. The thread is here, in case it ever gets answered: http://buddypress.org/community/groups/creating-extending/forum/topic/how-do-i-insert-the-big-avatar
In case anyone's looking for it, here's a nice function for access user metadata: http://codex.wordpress.org/Function_Reference/the_author_meta
Become a member