Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP Avatars in bbPress


John James Jacoby
Keymaster

@johnjamesjacoby

Looks like a duplicate in your oci_bb_group_forums_tags.php…

/**
* oci_xprofile_field_value()
*
* Return the specified xprofile field value
* Note: dates are in unix time format
*
* @param <int> $user
* @param <string> $group name
* @param <string> $field name
* @return <type> unknown
*/
function oci_xprofile_field_value($user, $group, $field){
$bp_user = oci_get_userdata($user);
return $bp_user['xprofile_' . $group . '_' . $field]['value'];
}

/**
* oci_xprofile_field()
*
* Return the specified xprofile field array
* Note: dates are in unix time format
*
* The field array is composed of:
* array(
* 'group' => group name string,
* 'name' => field name string,
* 'value' => field value string,
* 'type' => bp's name for the field type
* )
*
* @param <int> $user
* @param <string> $group name
* @param <string> $field name
* @return <type> array
*/
function oci_xprofile_field_value($user, $group, $field){
$bp_user = oci_get_userdata($user);
return $bp_user['xprofile_' . $group . '_' . $field];
}

Second one should be changed to oci_xprofile_field according to the doc above it.

Still trying to get the import to work…

When I uncomment the `

var_dump($groups_n_users); die;`

I get…

bool(false)

Still looking…

When I uncomment the `

var_dump($args); die;`

inside oci_bb_xmlrpc_query(), I get array(3) { [0]=> string(4) "dsoc" [1]=> NULL [2]=> int(0) }

dsoc is the name of my user, but it looks like the PW is empty?

So I uncomment the next line, and I get this…

string(5) "err: "
object(IXR_Message)#188 (14) {
["message"]=>
NULL
["messageType"]=>
NULL
["faultCode"]=>
NULL
["faultString"]=>
NULL
["methodName"]=>
NULL
["params"]=>
NULL
["_arraystructs"]=>
array(0) {
}
["_arraystructstypes"]=>
array(0) {
}
["_currentStructName"]=>
array(0) {
}
["_param"]=>
NULL
["_value"]=>
NULL
["_currentTag"]=>
NULL
["_currentTagContents"]=>
NULL
["_parser"]=>
NULL
}
object(IXR_Error)#187 (2) {
["code"]=>
int(-32700)
["message"]=>
string(28) "parse error. not well formed"
}

Now I’ve typed and retyped my PW twice. I can get post data from bbPress to BuddyPress, and I can post from BuddyPress and see it in bbPress. It’s communicating back and forth successfully…

Looks like it isn’t updating the PW to me for some reason… brb

K… Deleting the line from the DB and resaving the bbGroups options info, still makes the PW = NULL or nothing… Looks like it’s stopped saving the PW somewhere.

Skip to toolbar