Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1,526 through 1,550 (of 1,706 total)
  • @johnjamesjacoby

    Keymaster

    Sounds like an invasion of my browsing privacy. Be careful with this one.

    @johnjamesjacoby

    Keymaster

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

    @johnjamesjacoby

    Keymaster

    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.

    @johnjamesjacoby

    Keymaster

    You could make a xprofile field that says “Outside Blogs” and they could list them there for now. They wouldn’t link to them yet however, and there’s an enhancement in the trac to allow for different formats of fields that will allow this later.

    I suspect however that your goal is to have these blogs show in the “Blogs” area of BuddyPress. I think that’s a novel idea, and I don’t think it would be too difficult to do really, but it means that the blog area needs to be explored more, versus it only being a front end layer for all of WPMU’s blogs.

    I think that they best they could be however would be links to outside blogs, and that keeping it within the content of your site would be difficult. (It would require an iFrame most likely, which I suspect most of us try to avoid.)

    @johnjamesjacoby

    Keymaster

    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.

    @johnjamesjacoby

    Keymaster

    Anytime! ;)

    In reply to: Plugin Error

    @johnjamesjacoby

    Keymaster

    Haha curse of the too-smart-for-your-own-good developer strikes again! :D

    In reply to: BP Avatars in bbPress

    @johnjamesjacoby

    Keymaster

    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>

    In reply to: BP Avatars in bbPress

    @johnjamesjacoby

    Keymaster

    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…

    @johnjamesjacoby

    Keymaster

    I really would like to try and setup Eclipse as my IDE of choice, but it’s actually so amazing and probably capable of doing so much cool stuff that I just can’t figure it out and haven’t had the time to sit down and try.

    Plus I always have like 4 website projects open at one time, and SmartFTP lets me browse as many remote and local connections as I need to have open at a time. It’s a funny feeling being an old dog that wants to learn new tricks some days. :)

    @johnjamesjacoby

    Keymaster

    Yep, that’s exactly what I’d like to use it for, a little bit of transparency in the edit/upload area. I’ve done all my work from my laptop for about 5 years now, and while I will never go back to a desktop, I much prefer being at my desk at work where I can spread out across three monitors and have everything visible rather than alt tab madness editing and uploading.

    @johnjamesjacoby

    Keymaster

    ;)

    I’m not really sure what others use for their development processes, but I’ve had good luck with Notepad++, SmartFTP, WinMerge, WinRAR, and TortoiseSVN.

    I’ve also used Eclipse but I’ve never NEEDED to use it, so I don’t really know how to take advantage of it the way I probably should. I’ll check out NetBeans since you mention it.

    The one reason I feel I’m flying blind a little bit is because I really have no way to trace any functions back without manually opening files and checking out what they do. I suspect that an IDE will probably alleviate some of those problems for me.

    In reply to: BP Avatars in bbPress

    @johnjamesjacoby

    Keymaster

    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?

    In reply to: When?

    @johnjamesjacoby

    Keymaster

    I think that what Burt is saying is that by putting any plugin in the wp-content/plugins/ folder and activating it in the Admin -> Plugins area, that you are able to take advantage of what that plugin has to offer in any blog it is activated in.

    @johnjamesjacoby

    Keymaster

    Can’t believe I didn’t catch those. Good finds!

    @johnjamesjacoby

    Keymaster

    Well that’s interesting, and pretty much perfect for both platforms actually.

    Makes me wish I was more involved in WordPress from the get go, sometimes I get a little lost in the code still to be able to put something that cool together.

    Good job Andy. :thumbup:

    In reply to: homepages

    @johnjamesjacoby

    Keymaster

    Trent is correct. Unlike WordPress, those links are hardcoded in the header files (which I rather like also.)

    In reply to: BP Avatars in bbPress

    @johnjamesjacoby

    Keymaster

    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.

    @johnjamesjacoby

    Keymaster

    Same with “/%category%/” which is how I got caught up myself. I usually did “/%category%/%postname%/” and was banging my head against it for 2 days.

    @johnjamesjacoby

    Keymaster

    Don’t see it, I’m adding it in there now. Darn.

    Created:

    https://trac.buddypress.org/ticket/554

    I was so sure I had your issue nailed to. My apologies. I ran into the exact same problem myself a few weeks back so I was pretty sure I had it fixed. It was about that same time I noticed the permalink issue also, so they worked hand-in-hand against me. Ha!

    @johnjamesjacoby

    Keymaster

    Oh yes, that is true, and that’s something I’ve posted here a few weeks ago actually. I’m fairly certain I trac’ed it, but maybe I should double check.

    Looks like no.. :X

    I’ll add it in there now. Shucks…

    @johnjamesjacoby

    Keymaster

    Haha… No it’s doable, but to be honest there are so many links all over the page at any given point, that having the same little icon next to everyone of them to add it to your favorite would be pretty ugly looking.

    I think if I was going to do it, I would have a link in the header, and maybe a “bp favorites” bookmark in your browser, a mini app, that you can visit to add the current page to your bp favorites, with the type of criteria you’ve mentioned.

    I see how it’s possible, and I think I will need this type of functionality soon myself, so I hope to be involved in the production of this later on. :)

    @johnjamesjacoby

    Keymaster

    My best guess would be to try and track something down into the bp-activity-templatetags.php file, somewhere in or around line 151 in function bp_activity_content_filter.

    I think that’s where the time gets inserted for most activities?

    @johnjamesjacoby

    Keymaster

    Jed, migrating from WP.org to WPMU is not a super simple task unfortunately. It is possible, but you are still diving into phpMyAdmin more than likely.

    My advise for a migration is to do it at a time when your user base is low and the database is small so that you can manipulate the data easier. :)

    If you don’t want the blog functionality but *might* want it later, you can still install WPMU and just disclude the BuddyPress Blogs plugin.

    In reply to: When?

    @johnjamesjacoby

    Keymaster

    Haha jeeaaah… I watched that movie 3 times a day, everyday when I was a young pup. Ha!

Viewing 25 replies - 1,526 through 1,550 (of 1,706 total)
Skip to toolbar