I really don’t post often enough. And when I do, I have no profound thoughts. Like tonight. Not profound at all. But maybe useful if you’re running Joomla/Mambo with both Community Builder and LoudMouth.

The problem is (as far as I can tell) that LoudMouth adds an “avatar” column to the jos_users table. Thus, when Community Builder calls for the avatar using $user->avatar, it references this value rather than the one under jos_comprofiler. Upshot: if you upload an image for your Community Builder profile, you won’t be able to see it.

The way to see this image again is to hack the following file:
components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php.
Look for the following line: $uimage=$user->avatar;

Add the following code above it:

$avatar_query = "select avatar from jos_comprofiler where user_id = $user->id"; $avatar_result = mysql_query($avatar_query); $avatar_row = mysql_fetch_row($avatar_result); $user->avatar = $avatar_row[0];

Then when you call $uimage=$user->avatar; you’ve got the correct value in place.

Now, I imagine there’s probably a nicer way to do this, but I can’t be bothered to figure it out right now. At least this works!