Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 7,176 through 7,200 (of 7,560 total)
  • Author
    Search Results
  • #39046
    reprocessor
    Participant

    Right, 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 :(

    #39043

    Yes 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.

    #39042
    reprocessor
    Participant

    Would I have to put the salts in the BBpress config file also? They’re not there at present.

    #39040

    First 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.

    #39023

    In reply to: BP Avatars in bbPress

    Well, 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>

    #39021

    In reply to: BP Avatars in bbPress

    Burt, 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…

    #39014

    In reply to: BP Avatars in bbPress

    Burt Adsit
    Participant

    Of course I’d like to see it John. I still haven’t looked at xprofile yet. :)

    #39011

    In reply to: BP Avatars in bbPress

    That’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?

    #39005

    In reply to: BP Avatars in bbPress

    Burt Adsit
    Participant

    Ya 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.

    #39000

    In reply to: BP Avatars in bbPress

    Burt, 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.

    #38997

    In reply to: BP Avatars in bbPress

    Burt Adsit
    Participant

    John, 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.

    http://code.ourcommoninterest.org/

    #38979

    In reply to: BP Avatars in bbPress

    gogoplata
    Participant

    Didn’t realize avatar sharing was part of that plugin, will check it out. Thanks!

    #38963

    In reply to: BP Avatars in bbPress

    I’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. :)

    #38931

    In reply to: BBPress

    gogoplata
    Participant

    I 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.

    #38930

    In reply to: BBPress

    bbPress 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.

    #38926
    Burt Adsit
    Participant

    Chad. 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?

    #38922

    You’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…

    #38917
    chadfrancis
    Member

    Hey 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

    #38910

    At 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!

    #38901
    Burt Adsit
    Participant

    John, 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.

    #38894

    Where would I want to hook into, to update the bbGroups array whenever the logged in user edits their xprofile data?

    #38880

    I’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.

    #38843

    When 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.

    #38842
    dhargraves
    Participant

    Updated 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.

    #38841
    dhargraves
    Participant

    upgrade everything to trunk? or just specific files?

Viewing 25 results - 7,176 through 7,200 (of 7,560 total)
Skip to toolbar