Search Results for 'bbpress'
- 
		AuthorSearch Results
 - 
		
			
March 3, 2009 at 9:17 pm #39180
In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantJohn I put the deep detection around the require_once() at the top of oci_bb_group_forums.php just take that line out and use your own technique. Mine obviously doesn’t work.
Yes that fn should be oci_xprofile_field(). Wrong file got into the zip.
March 3, 2009 at 8:49 pm #39178In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterLooks 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.
March 3, 2009 at 8:46 pm #39177In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterOkay after all of my tizzying around, I still get this when I try to import…
Groups with forums enabled – , Forums updated – , Users updated –
March 3, 2009 at 8:36 pm #39176In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterOkay, somehow the password in my BP Site Admin -> bbPress Forums got corrupted…
omg…
Crisis averted…
Lets try this again…
March 3, 2009 at 8:30 pm #39174In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterSo if I use your test rig Burt, I get a 403 Authentication Failed response… wtf… Ha!
But if I revert back to .23 and click on “Import Groups” it gets…
Last import Tuesday 03rd of March 2009 03:32:03 PM, 2 seconds
3 groups with forums enabled
3 forums updated
12 users updated
March 3, 2009 at 7:53 pm #39171In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterWhen I do the $burt variable debug trick, it looks like http://delsolownersclub.com/discussions/xmlrpc.php is pulling a 404 again like it was before over here https://buddypress.org/forums/topic.php?id=426, but it’s very clearly there, and nothing else appears to be in the way.
Arg… Still looking…
Arg… It broke somewhere before I even was playing with this.. I reverted everything back to the previous version (.23 I believe) and while I can get forum post info, for some reason I can’t post anything.
March 3, 2009 at 7:20 pm #39170In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterOkay, I attempted to import all users, and got this…
Groups with forums enabled - , Forums updated - , Users updated -Checking to see what happened now…
Looks like nothing happened. No one got their bbGroups like they should have. Going to keep looking…
Importing only groups doesn’t do anything either… Still checking…
March 3, 2009 at 7:14 pm #39169In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterBurt…
When accessing the forums using deep integration, with no modifications to your updated plugin…
Fatal error: Cannot redeclare class IXR_IntrospectionServer in /homepages/8/d149961498/htdocs/delsolownersclub/discussions/bb-includes/backpress/class.ixr.php on line 860Think of the loop that’s happening… bbPress loads WordPress, loads ixr, which continues to load bbPress. I really do think both sides need to check to see if the other is included to ensure this doesn’t happen.
Going back to oci_bp_group_forums.php and putting
if (!defined(BBDB_NAME))
require_once(ABSPATH . WPINC . '/class-IXR.php');and then back to oci_bb_group_forums.php and putting
if (defined(BACKPRESS_PATH))
require_once( BACKPRESS_PATH . '/class.ixr.php' );Fixes this.
Let me find where they are declared and try to walk you through the deep integration dance. It’s a pain in the butt, but it works. I don’t see any other way to get things like the BuddyBar and all of the BP functions over to bbPress without deep integration.
March 3, 2009 at 6:07 pm #39161Donnacha
ParticipantUnfortunately, vBulletin decided that a vBulletin WPMU bridge was not in their commercial interests and locked the thread, despite 30 of their licensed users expressing an interest. The thread, http://www.vbulletin.org/forum/showthread.php?t=196906, remains readable but not new posts can be made and, therefore, can no longer be used to rally together all the vB users who would like to see it happen.
I swapped a few emails back and forth with vB and they took the time to explain their position. I don’t agree but I guess I can understand their panic; WordPress is one of the few Open Source products that has wiped out commercial products in it’s sector, blogging, and they’re desperately worried that there is no longer that much difference between their $180 product and the free alternatives.
There is, of course, nothing to stop any of you being a bit cheeky and starting your own threads on http://www.vbulletin.org/forum/, innocently asking why there isn’t a vBulletin WPMU bridge

Personally, though, I’ve deciding to transition away from vB – I’ll be keeping my existing vB sites going but, for new projects, I don’t see the point of buying any more vB licenses.
bbPress is pretty bad but I’m optimistic that they will improve over time, especially now that BuddyPress is advancing so quickly. I like the way in which, in BuddyPress, the forums are spread among the groups within the social network – it makes a lot of sense, sort of like wrapping each section of your forum in it’s own homepage, featuring the users who “hang out” in that section.
March 3, 2009 at 4:18 pm #39145In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterAwesome, will check it out today.
On an interesting side note, somewhere along the line I broke my connection from BuddyPress to bbPress again. Ha! I need to stop fidgeting with things soon I think.
March 3, 2009 at 1:39 pm #39134In reply to: BBpress not sharing login details
reprocessor
ParticipantHi John,
I GOT IT! Eventually LOL.
I did a bit of digging on the forums and saw this thread https://buddypress.org/forums/topic.php?id=471&page=2#post-5680 – I didn’t realise I needed to be logged in to both BP & BBPress to do this. Once I saw DJpaul’s first post on this thread the penny dropped.
Thank you for all your help – everything works a treat now!
Best regards,
Phil
March 3, 2009 at 9:34 am #39125In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantI think I have the deep stuff grok’ed. wp loads first and then bbpress. So just this in the bbpress plugin should work:
if (!defined(BB_IS_WP_LOADED))
require_once( BACKPRESS_PATH . ‘/class.ixr.php’ );
Well, that’s what’s in there. I can’t test it. Relying on you to tell me if it works ok.
v0.3 at http://code.ourcommoninterest.org in a few minutes.
March 3, 2009 at 7:30 am #39112In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterCool cool… Can’t wait… I love it! Woo hoo!
March 3, 2009 at 7:26 am #39111In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantHi John.

I have to test the xprofile stuff on the bbpress template tag level. I think I’m transferring data that could be serialized in $field_obj->data->value. Gotta check that.
This thing needs chat. You ever on IRC? A bunch of us hang out in irc.freenode.net #buddypress. I’m always there.
March 3, 2009 at 7:22 am #39110In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterWell, yes I do, but I’d like it done the right way, and I suspect your way will be better than mine.

If you want some help putting it through the motions, I’ll gladly take some time tomorrow to work your new version into mine.
March 3, 2009 at 7:19 am #39109In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantI like the inclusion of ‘signature’ in a profile field! Nice idea.
I’ve updated bbGroups to optionally transfer all users over to bbpress meta or just users who are in groups. Skipping the bbpress/buddypress utility user.
I’ve got all xprofile groups and group field values going to bbpress.
Got a template tag that allows getting any of those values by user, group, field.
Did some cleanup internationalization for text.
Now doing testing. Gotta look into the problem with tags for hidden groups showing up in the tag cloud. I don’t think you’d be interested in any of this. You’ve already got that stuff implemented.

I think that the only mod of yours I stepped on was the oci_get_user_filter() changes you included in there. I added another filter function oci_get_xprofile_filter($user) that adds all the xprofile fields to the $user array. It won’t break your mod, it’ll just add all the xprofile fields again.
/**
* oci_get_xprofile_filter()
*
* This filter adds all xprofile groups and group fields to bbpress
*
* @param <array> $user
* @return <array> $user array for xmlrpc transport
*/
function oci_get_xprofile_filter($user){
$xprofile_groups = BP_XProfile_Group:: get_all(true); // all except empty groups
foreach($xprofile_groups as $group){
foreach($group->fields as $field){ // all fields for group
$field_obj = new BP_XProfile_Field($field->id, $user,true); // this field
// xprofile_groupname_fieldname to prevent conflicts
$user = array(‘group’ => $group->name, ‘name’ => $field_obj->name, ‘value’ => $field_obj->data->value, ‘type’ => $field_obj->type);
}
}
return $user;
}
add_filter(‘oci_get_user’,’oci_get_xprofile_filter’,10,1);
March 3, 2009 at 1:55 am #39095In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterOne of the consts I check for is on the WPMU side also, looking to see if BBP is included already as part of the circle. WPMU doesn’t have a const to tell it if bbPress is included inside it, that’s why I used pre-existing unrelated consts, so that I know that they haven’t been tainted by each others inclusion in either direction.
March 2, 2009 at 10:26 pm #39079In reply to: BBpress not sharing login details
John James Jacoby
KeymasterGot it, finishing up a project now. Will check it out asap.
March 2, 2009 at 9:52 pm #39078In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantOK. I’m back. The bbpress const for wordpress is: BB_IS_WP_LOADED and is defined in bb-settings.php John. Looks like it’s only being used during installation and bbpress boot.
Thanks for reminding me about the template tags. I’ll include those too. I’ll add filters to all the template tags also. Good idea.
Many thanks for your help and sharing!
March 2, 2009 at 9:38 pm #39076In reply to: BBpress not sharing login details
reprocessor
ParticipantThanks John, email on its way
March 2, 2009 at 6:06 pm #39063In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterI think that makes perfect sense. Don’t forget to make functions for both getting the profile data, and then displaying it back out to bbPress also. I wanted to try and make a function that would either filter or not filter the output, so that I can hook into the field name and decide whether it’s HTML (like a signature) or plain text (like a custom title.)
I thought bbPress had a deep indication, but I couldn’t find one that worked without me telling it what to keep an eye out for.
March 2, 2009 at 6:02 pm #39062In reply to: BBpress not sharing login details
John James Jacoby
KeymasterYeah it’s frustrating when things don’t work the way you want them to, that’s for sure.
You can email me at spam (at) johnjamesjacoby (dot) com and I’ll get it right away.
I can verify that the way the cookies are presented hasn’t changed in Firefox versions as I’ve had integration going on a few platforms since 2.0x.
We’ll get this figured out, just gotta figure out what we’re missing.
March 2, 2009 at 5:27 pm #39060In reply to: BBpress not sharing login details
reprocessor
ParticipantHi John,
I’ve tried this and it didn’t work, it just makes me unable to login. I had this same problem earlier in the day until I used that PHPSESSID cookie. I’d be appreciative if you could email me on phil {at} reprocessor dot com so that I can send you a screenshot – I think it may be the way that firefox is presenting cookies (It’s alot different to the last version of FF I used and that’s only a jump from 3.04 to 3.06.)
As I said, any help at all would be greatly appreciated, as it’s driving me up the wall!
Cheers,
Phil
March 2, 2009 at 5:06 pm #39058In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantThanks John. I’m doing some upgrades to the bbGroups thing today and I’ll integrate what I can into the plugin. I’m thinking a generic oci_include_xprofile_field() function that takes a field name and if it exists includes it in the transferred data.
The deep integration stuff will be included. bbPress has a deep detector and constant defined that changes it’s behavior if it’s ON. Don’t do this, do that different if DEEP. I’m going to follow the same path as sambauers. The results will be the same as yours.
if (DEEP) require_once(…);
p.s It’s not called DEEP.
NOTE: not done talking just saving..
March 2, 2009 at 4:29 pm #39050In reply to: BBpress not sharing login details
John James Jacoby
KeymasterNo no it’s totally cool, we’re here to help

The reason your cookies didn’t have the hash at the end was because you didn’t have the salts in both config files.
1. Remove the hash you put in your config file.
2. Put matching salts in both config files.
3. Go into your cookies and delete ALL of them for your domain.
4. Revisit your site, find the cookie with the hash, put that hash in your wp-config file.
5. Then delete ALL the cookies from the domain again, login again, and see if it works.
 - 
		AuthorSearch Results