Search Results for 'bbpress'
-
AuthorSearch Results
-
March 2, 2009 at 4:07 pm #39046
In reply to: BBpress not sharing login details
reprocessor
ParticipantRight, I’ve done points 1 to 4, added the salts and added the COOKIE_DOMAIN & COOKIEPATH bits to both config files. I also added a cookie hash which the tutorial said to do. How I got the cookie hash is another story – the tute said to look at the cookies in firefox to see what the number after them would be, like this ‘wordpress_267dtwia78rfn5403n’ when I went in to look at my cookies the looked like this ‘wordpress_’ so i took the nearest number from a PHPSESSID cookie for my site – now, this is probably the stupidest thing I’ve done all day – so please let me know if it is. Also If you could let me know if there’s any other way of finding out the cookiehash.
Sorry to waste anyones time
March 2, 2009 at 3:46 pm #39043In reply to: BBpress not sharing login details
John James Jacoby
KeymasterYes sir.
The way the guide suggests to do it is actually a good way also.
Delete ALL the salts and keys from your wp-config.php file, visit the Site Admin area of your WordPressMU install, and you’ll get a warning saying you need to add the salts, and it will auto suggest them.
Copy those into your wp-config.php file, and then copy those same keys, put them in your bb-config.php file, but put “BB_” in front of each key name.
define( 'BB_NONCE_KEY'...,
define( 'BB_AUTH_KEY'...,
define( 'BB_AUTH_SALT'...,
define( 'BB_LOGGED_IN_KEY'...,
define( 'BB_LOGGED_IN_SALT'...,
define( 'BB_SECURE_AUTH_KEY'...,
define( 'BB_SECURE_AUTH_SALT'...,Also don’t forget to put whatever the recommended cookie path settings are in each *-config.php file…
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '/');As those will determine which directory the cookies are for.
March 2, 2009 at 3:40 pm #39042In reply to: BBpress not sharing login details
reprocessor
ParticipantWould I have to put the salts in the BBpress config file also? They’re not there at present.
March 2, 2009 at 3:28 pm #39040In reply to: BBpress not sharing login details
John James Jacoby
KeymasterFirst thing that I had to do was delete all cookies and login to BuddyPress fresh.
Things to double check:
1.) You’ve correctly added the keys in both config files.
2.) You’ve installed and correctly configured both necessary plugins, one on each side.
3.) Check the names of your cookies in Firefox and make sure the wordpress_ cookies all have the same string of text behind them. If not, your keys in your config files are wrong.
4.) You’ve modified both config files with all the little extra things they need done to them.
March 2, 2009 at 7:39 am #39023In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterWell, while the GF is in the shower, I’ll quick do this… Burt this is aimed directly at you, since I gather most others won’t want to do this kind of thing…
oci_bb_group_forums.php:
This prevents wrong inclusion order when using deep forum integration.
if (defined(BACKPRESS_PATH))
require_once( BACKPRESS_PATH . '/class.ixr.php' );This will return ALL user info, in the event that bbGroups does not exist yet for that user.
function oci_get_userdata($u){
$u = (int) $u;
$user = bb_get_user($u);
if ($user->bbGroups) {
return stripslashes_deep((array)$user->bbGroups);
} else {
return stripslashes_deep((array)$user);
}
}oci_bp_group_forums.php:
This prevents wrong inclusion order when using deep forum integration.
if (!defined(BBDB_NAME))
require_once(ABSPATH . WPINC . '/class-IXR.php');This is how I passed the user info over from xprofile to bbGroups:
/**
* oci_get_user_filter()
*
* Live example of how to use the filter mechanism to add info to the data going across to bbpress
* This filter adds the user's forums and forums where the user is staff into the $user array
* @return
* @param associative array $user from oci_get_user()
*/
function oci_get_user_filter($user){
$users_group_info = oci_get_users_group_info($user['id']);
$user['users_forums'] = $users_group_info['forum_ids'];
$user['user_is_staff'] = $users_group_info['staff_ids'];
$user['custom_title'] = bp_get_field_data('Custom Title', $user['id']);
$user['signature'] = bp_get_field_data('Signature', $user['id']);
$user['aim'] = bp_get_field_data('AIM', $user['id']);
$user['yahoo'] = bp_get_field_data('Yahoo!', $user['id']);
$user['gtalk'] = bp_get_field_data('GTalk', $user['id']);
$user['msn'] = bp_get_field_data('MSN', $user['id']);
$user['jabber'] = bp_get_field_data('Jabber', $user['id']);
$user['icq'] = bp_get_field_data('ICQ', $user['id']);
return $user;
}
add_filter('oci_get_user','oci_get_user_filter',10,1);oci_bb_custom.php
How I transfer the username (just in case fullname hasn’t been edited from wordpress.org transfer – see above oci_get_userdata changes):
function oci_user_name($u){
$bp_user = oci_get_userdata($u);
if ($bp_user['fullname']) {
return $bp_user['fullname'];
} else {
return $bp_user['display_name'];
}
}bbpress/active-theme/functions.php
What I added to make the custom functions go:
add_filter('get_user_profile_link', 'bppro_user_profile_link', 10, 2);
function bppro_user_profile_link($link, $uid) {
$user = bb_get_user($uid);
return(bb_get_option('wp_siteurl').'/members/' . $user->user_login);
}
function bppro_user_url() {
global $bp;
return($bp->loggedin_user->domain);
}
function bp_check_title($user) {
$user_id = get_post_author_id();
$user = bb_get_user($user_id);
$user_title = $user->bbGroups['custom_title'];
if ($user_title) {
return $user->bbGroups['custom_title'];
} else {
return;
}
}
add_filter('post_author_title', 'bp_check_title');
add_filter('post_author_title_link', 'bp_check_title');
function post_author_signature() {
$user_id = get_post_author_id();
$user = bb_get_user($user_id);
$user_signature = $user->bbGroups['signature'];
if ($user_signature) {
echo '<p class="post-signature">__________<br />' . $user->bbGroups['signature'] . '</p>';
}
}bbpress/active-theme/post.php
Displays avatar from BuddyPress if it exists, else bbPress/Gravatar. Also displays hooked data from above functions.php:
<div class="threadauthor">
<dl>
<dt><a class="oci-link" href="<?php echo oci_user_link($bb_post->poster_id); ?>"><?php echo oci_user_name($bb_post->poster_id); ?></a></dt>
<dd><span class="oci-title"><?php $patl = post_author_title_link(); ?></span></dd>
<dd><?php if (oci_user_avatar($bb_post->poster_id)) { echo oci_user_avatar($bb_post->poster_id); } else { post_author_avatar_link(); }?></dd>
</dl>
</div>
<div class="threadpost">
<div class="poststuff">
<?php printf( __('Posted %s ago'), bb_get_post_time() ); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php bb_post_admin(); ?><?php bb_quote_link(); ?>
</div>
<div class="post">
<?php post_text(); ?>
</div>
<?php post_author_signature(); ?>
</div>March 2, 2009 at 6:51 am #39021In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterBurt, I’m going to get at this tomorrow with you if that’s cool. It’s late here and I’ve got an early wake-up tomorrow, ugh…
March 2, 2009 at 5:53 am #39014In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantOf course I’d like to see it John. I still haven’t looked at xprofile yet.
March 2, 2009 at 5:21 am #39011In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterThat’s awesome. Your hard work is appreciated very much.

Did you still want to see what I was trying to do, or do you think you have a good handle on it?
March 2, 2009 at 3:03 am #39005In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantYa you did mention profile data getting to bbpress from bp for users without groups. I don’t see any reason not to do it. The privacy elements rely on the user having a list of their forums in the bb meta data that comes across from bp. No forums means no access. I’ll add that too since I’m now fooling around in that area. Gonna mean some changes to the import routine. I’ll work on it.
March 2, 2009 at 2:48 am #39000In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterBurt, I will for sure let you see how I did it, but I’ll admit it isn’t a universal method. I hard coded the fields I wanted to pass to bbPress just to make it work in the interim, and it doesn’t work yet for members that aren’t in any groups.
I’m mobile right now but when I get home tonight I’ll rejoin and show you what I did.
March 2, 2009 at 2:25 am #38997In reply to: BP Avatars in bbPress
Burt Adsit
ParticipantJohn, I haven’t had time to even delve into the xprofile code yet. I’m going to start working on bbGroups again this evening. There are some ‘tags’ issues poping up I have to work on. If you’ve accomplished the xprofile fields being added I’d love to see how and add it to the plugin if you are so inclined to donate to the effort. If not then I can take a look at that. Let me know.
Oh. I added the ‘editor’ role for the community blogs plugin as you suggested.
March 1, 2009 at 10:31 pm #38979In reply to: BP Avatars in bbPress
gogoplata
ParticipantDidn’t realize avatar sharing was part of that plugin, will check it out. Thanks!
March 1, 2009 at 9:55 pm #38963In reply to: BP Avatars in bbPress
John James Jacoby
KeymasterI’m doing this via the bbGroups plugin, and some pretty in depth modifications to the bbPress theme.
I’m working on and off with Burt to try and pass BuddyPress xprofile info to bbPress, as my goal is probably the same as yours and most others; to have all information match across the entire website.
We’re working towards that goal, hopefully soon.
gogoplata
ParticipantI ended up dropping bbPress all together tonight. I’ve got respect for everyone who’s developing it but it progresses too slowly and SimplePress is a lot more advanced right now, particularly for non-technical end-users. I ended up just installing simplepress and getting rid of group forums until bbPress adds more advanced functionality or the community takes off and pumps out additional plugins.
Personally I’d like to see Automattic acquire simplepress and merge the two products.
John James Jacoby
KeymasterbbPress is a standalone product, similar to WordPress MU and WordPress.org. The idea is to keep everything modular, and allow people to pick and choose what they want to use.
I think that the way that the Forums are implemented into BuddyPress will change once BackPress because a more mature API.
In the meantime, the forums work almost exactly like the wire does, but for groups instead. Groups also have their own wire, so in reality having a forum is a little redundant until someone takes the initiative to introduce some more functionality into the BuddyPress forum area.
March 1, 2009 at 1:23 am #38926In reply to: Group Forum Integration
Burt Adsit
ParticipantChad. On the bp side that’s what it would say in the admin area if it’s working. You got back what it should show. Your installation and configuration passes a couple of tests.
1) bp is talking to bbpress. Your configuration url, username and password were recognized by bbpress as valid. What it doesn’t check is the role that the user in bbpress plays. It has to be an ‘administrator’ role in bbpress to allow forum creation. Anything less will fail on the bp side with the usual cryptic error message. Make sure your ‘connection’ user has the proper role.
2) xmlrpc is working between the two applications. This is good.
What I don’t understand about your situation is that you say that the problem is intermittent. If it works once then it should work every time if nothing has changed in your configuration between posts.
Are bp and bbpress installed on the same server? Asking to see if anything could interrupt the communications channel between the two.
When testing posts, are you using the same or different users?
When testing are you using the same group forum to test things?
When testing do you create a group and have the ‘enable forums’ checkbox checked so that the group and the forum are created at the same time? Or do you go in afterward and enable the forum after group creation?
March 1, 2009 at 12:19 am #38922In reply to: Group Forum Integration
John James Jacoby
KeymasterYou’re correct, it should be “bbPress Forums”
I am sort of out of ideas really. The tools and topics we’ve linked you to should be enough info to troubleshoot a non functioning situation. Hmmm…
February 28, 2009 at 9:43 pm #38917In reply to: Group Forum Integration
chadfrancis
MemberHey there. Finally had time to go into it. It actually took me a little time to figure out how to work your plugin. I think I did it right: I put oci_bb_say_hello.php into my-plugins in bbPress and oci_bp_say_hello.php into plugins in WPMU. Activated the bbPress one first, then went into WPMU and activated that one. It returned that the plugin could not be activated because of a fatal error: string(13) “Hello from BB”
Sooo I’m not sure if that’s what you mean by bbpress says ‘hello,’ but the group forums still aren’t working, so if that’s what’s supposed to happen, I guess I have different problems.
I’ll tell you one more thing I’m experiencing. People keep mentioning “Group Forums” in the admin area to edit the forum url and login info. I don’t see that, just “bbPress Forums,” but it seems to be the same information. Am I missing something there? Thanks for your help!
-Chad
February 28, 2009 at 6:19 pm #38910In reply to: Announcing BuddyPress Group Forums for bbPress
John James Jacoby
KeymasterAt second glance, the reason I asked is because I’d like to update all of the xprofile user info that I want visible in the forums, into the bbGroup array, even if they are NOT in any group.
I think that using your array for my purpose isn’t really “right,” but it will work once I can get non-grouped users to have a bbGroup array.
I haven’t had time this week to come up with what I consider a “real” solution that doesn’t piggy back on top of yours, to pass all xprofile info from bp to bbp.
Your bbGroups really does work perfectly for people that are in groups, just not people that aren’t I think. Ha!
February 28, 2009 at 3:41 pm #38901In reply to: Announcing BuddyPress Group Forums for bbPress
Burt Adsit
ParticipantJohn, hang in there. Been moving myself and my laptop to a diff town past 3 days. Getting setup again. I think I’m hooking the ‘xprofile_updated_profile’ action.
…
Yep. In 0.22. Should work. Lemme see exactly how much of ‘changing’ the profile that actually covers.
brb.
February 28, 2009 at 8:10 am #38894In reply to: Announcing BuddyPress Group Forums for bbPress
John James Jacoby
KeymasterWhere would I want to hook into, to update the bbGroups array whenever the logged in user edits their xprofile data?
February 27, 2009 at 6:07 pm #38880In reply to: ‘Favourite’ content
John James Jacoby
KeymasterI’m going to migrate some of the bbPress “favorites” idea into a BuddyPress plugin eventually. I was thinking of opening this up to site wide links as well, which would just involve a link in the header or footer, if logged in, to add that location to your favorites.
I think it’s very doable, but would either need to be added to the trac as a feature request, or be done as another BP plugin, separate from the others.
February 27, 2009 at 1:30 am #38843In reply to: New Users added to bbPress as “inactive”
John James Jacoby
KeymasterWhen Andy tells you to upgrade to the trunk, he means upgrade your entire BuddyPress install to the trunk version, all files.
Trunk versions are typically committed complete functioning changes, so they as much as they are mini revisions, the idea is that they are always the most updated bug fixed versions of BuddyPress.
February 27, 2009 at 1:13 am #38842In reply to: New Users added to bbPress as “inactive”
dhargraves
ParticipantUpdated to trunk: wp-content/mu-plugins/bp-xprofile/bp-xprofile-signup.php
Still not working. I’ll work on other components next. If anyone knows what specifically I need to upgrade, let me know. I tried all of bp-forums and bp-xprofile. Did not work.
February 27, 2009 at 12:07 am #38841In reply to: New Users added to bbPress as “inactive”
dhargraves
Participantupgrade everything to trunk? or just specific files?
-
AuthorSearch Results