eduBB Avatar

I installed the avatar pack along with the theme. All looks good except the bbpress portion. In the installation file it doesn’t say what this is for or where to put:

Avatars Functions:


User Avatars:

get_avatar(ID_OR_EMAIL,SIZE,DEFAULT)

ID_OR_EMAIL = ID or email of the user

SIZE = ’16’, ’32’, ’48’, ’96’, ‘128’

DEFAULT = ‘mystery’, ‘gravatar_default’, ‘identicon’, ‘wavatar’, ‘monsterid’

Example:

<?php echo get_avatar(1,’32’,’identicon’:wink:; ?>

Blog Avatars:

get_blog_avatar(ID,SIZE,DEFAULT)

ID_OR_EMAIL = Blog ID

SIZE = ’16’, ’32’, ’48’, ’96’, ‘128’

DEFAULT = ‘mystery’, ‘gravatar_default’, ‘identicon’, ‘wavatar’, ‘monsterid’

Example:

<?php echo get_blog_avatar(1,’32’,’identicon’:wink:; ?>

It doesn’t seem to be pulling the avatar from the blog side of things. Where does this go and is this why its not working right?

  • Hiranthi
    • Recruit

    Those are examples and explanations of how to use the functions. You can use ’em in your themes, plugins. Wherever you want (if you want to use it inside posts/pages/widgets understand that it is PHP and it’s not executed by default, you need a plugin to do that).

  • adamx8
    • Flash Drive

    Ahh, I am following now. Wow I can’t believe I completely missed that. I appreciate the response on that. Also glad to know I don’t have to add anything for the themes here. Now off to trying to figure out why my avatar isn’t showing in the forum.

  • adamx8
    • Flash Drive

    i put the avatar-bbpress file in the /bb-plugins folder then I changed the 2 lines, the wpmu site url and user_avatar_path in the php file and uploaded it back in. Otherwise I am not sure what could have gone wrong as I followed the instructions to the T. was I not suppose to edit those lines?

  • drmike
    • DEV MAN’s Mascot

    Just for reference, I’m on an hour on internet a day. (And on the ipod as as long as I can until it dies.) My own paying clients come first and then I come here. Please bear with me. I’m very stressed. (Also the library’s have been closed for the last three days.)

    In my profile in wpmu I put a pic of me as my avatar.

    Yes, it should be. You are looking at the User avatar, right? The avatar plugin has two separate avatars, one for users and the other for blogs.

    Biggest question I have is wpmu and bbpress set up to share user information? That’s a requirement for all this to work.

    Please point with a clickable link to an example of where your user avatar is appearing on both the blog and where it should be appearing on the bbpress side.

  • adamx8
    • Flash Drive

    drmike, I completely understand and no worries on my end, I just moved this plugin to the back burner so I can setup the rest of the site. Soon as I am done I will post this. I don’t want you to think I left you hanging. Everything is being shared, I reinstalled it again to make sure. I will get links so you can see or tell you I have it solved once I get somewhat squared away on this.

    Again though I sincerely appreciate the help here so far. It really has been great!