Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 701 through 709 (of 709 total)
  • @nuprn1

    Participant

    ditto! running a single WP install with RC2 and willing to test it out ;-)

    @nuprn1

    Participant

    (sorry, some reason the code tags failed)

    i only wrapped it in BP_ENABLE_USERNAME_COMPATIBILITY_MODE if case i wanted to switch back to user_login urls

    @nuprn1

    Participant

    Ok, I *believe* this is what i changed (i’m on latest trunk) to default urls to the nicename – I’ll double check tomorrow though.

    in bp-core.php – i modified the two functions here:

    function bp_core_get_userid( $username ) {

    global $wpdb;

    if ( !empty( $username ) ) {

    //MYCHANGE - default to user_nicename

    if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )

    return apply_filters( 'bp_core_get_userid', $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM " . CUSTOM_USER_TABLE . " WHERE user_login = %s", $username ) ) );

    else

    return apply_filters( 'bp_core_get_userid', $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM " . CUSTOM_USER_TABLE . " WHERE user_nicename = %s", $username ) ) );

    }

    }

    function bp_core_get_username( $user_id, $user_nicename = false, $user_login = false ) {

    global $bp;

    if ( !$username = wp_cache_get( 'bp_user_username_' . $user_id, 'bp' ) ) {

    if ( empty( $user_nicename ) && empty( $user_login ) ) {

    $ud = false;

    if ( $bp->loggedin_user->id == $user_id )

    $ud = &$bp->loggedin_user->userdata;

    if ( $bp->displayed_user->id == $user_id )

    $ud = &$bp->displayed_user->userdata;

    if ( empty( $ud ) ) {

    if ( !$ud = bp_core_get_core_userdata( $user_id ) )

    return false;

    }

    $user_nicename = $ud->user_nicename;

    $user_login = $ud->user_login;

    }

    //MYCHANGE - default to user_nicename

    if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )

    $username = $user_login;

    else

    $username = $user_nicename;

    }

    /* Add this to cache */

    if ( !empty( $username ) )

    wp_cache_set( 'bp_user_username_' . $user_id, $username, 'bp' );

    return apply_filters( 'bp_core_get_username', $username );

    }

    then in bp-core-catchuri.php under function bp_core_set_uri_globals()

    /* Catch a member page and set the current member ID */

    if ( !defined( 'BP_ENABLE_ROOT_PROFILES' ) ) {

    if ( ( $bp_uri[0] == BP_MEMBERS_SLUG && !empty( $bp_uri[1] ) ) || in_array( 'wp-load.php', $bp_uri ) ) {

    // We are within a member page, set up user id globals

    $displayed_user_id = bp_core_get_displayed_userid( $bp_uri[1] );

    unset($bp_uri[0]);

    unset($bp_uri[1]);

    /* Reset the keys by merging with an empty array */

    $bp_uri = array_merge( array(), $bp_uri );

    }

    } else {

    //MYCHANGE - default to user_nicename

    if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) ) {

    $_udl = get_userdatabylogin( $bp_uri[0] );

    } else {

    $_udl = get_user_by('slug', $bp_uri[0] );

    }

    if ( $_udl || in_array( 'wp-load.php', $bp_uri ) ) {

    $is_member_page = true;

    $is_root_component = true;

    // We are within a member page, set up user id globals

    $displayed_user_id = bp_core_get_displayed_userid( $bp_uri[0] );

    unset($bp_uri[0]);

    /* Reset the keys by merging with an empty array */

    $bp_uri = array_merge( array(), $bp_uri );

    }

    }

    @nuprn1

    Participant

    I doubt this helps but I changed up some of the core files to use the user_nicename column

    not at my machine with the code but i believe just a few files that required changing to lookup the slug by login and changing a sql statement

    @nuprn1

    Participant

    you may need to do something like bpGroups which sends an xmlrpc request to BP and updates the activity.

    @nuprn1

    Participant

    Wonder if you could use this to create extra forums like a Miscellaneous or a General forum? I want to use the default install because I like the way it all integrated with the group forums, but I wanted to have some general forums for random stuff that I really don’t want to have to force people to sign up to that group just to post there. Right now, having to skin and deal with external bbpress installation seems more of a hassle than dealing with the random forum for me.

    Using trunk + single wp; I’m set up on an external installs of bbPress + BuddyPress/internal install for groups

    I use the bpGroups plugins (“forums” subdomain of the BP site) but the plug-in required some updating to get everything working smooth (activity notifications, public/private/hidden/ready only stuff)

    Obviously this method won’t enable plugins on the buddypress/internal groups but this allows me to provide an advanced forum interface while creating outside forums (support, help, testing, etc) not associated with groups (group forums can be added to a specific forum category – i think default is “1”).

    … i have re-theme’d bbPress to somewhat match the new default BP theme (well somewhat)

    (screenshots:

    http://files.etiviti.com/misc/bbpress-vwg-main.gif

    http://files.etiviti.com/misc/bbpress-vwg-forum.gif

    )

    @nuprn1

    Participant

    I also noticed changing the time in the general settings section doesn’t affect the mian site.

    Same problem here but always 2 hours behind (using trunk builds, prior update at rev 2315 and it displayed the posted updated time properly)

    @nuprn1

    Participant

    i added a note to this ticket:

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

    basically i found a few inconsistencies with file paths in the group section – also bp-groups-templatetags.php had a bunch of wrong file paths (double // in group urls) – the image path being sent to process did not contain the fullpath to the file – it would be just wp-content/uploads/etc instead of /home/user/domain/wp-content/uploads/etc)

    the image width check was failing (on bp-core-avatars.php)

    if ( getimagesize( $bp->avatar_admin->original['file'] ) > BP_AVATAR_ORIGINAL_MAX_WIDTH )

    to

    list($width, $height) = getimagesize( $bp->avatar_admin->originalfile? );
    if ( $width > BP_AVATAR_ORIGINAL_MAX_WIDTH )

    wp_crop_image ignores gif/png and saves everything as jpg (killing transparency – though to note the jquery cropper script does not support transparency during the UI selection)

    @nuprn1

    Participant

    I’m encountering the same issues

    -fresh install off the trunk

    -create a group

    -upload avatar (default wp misc settings for wp-content/upload)

    -verified the file is successfully uploaded to the server in proper directory/permissions

    But inspecting in firebug shows the path is not exactly correct:

    <img alt="Avatar to crop" class="avatar" id="avatar-to-crop" src="wp-content/uploads/group-avatars/1/myuploadedfile.png"/>
    <img alt="Avatar preview" class="avatar" id="avatar-crop-preview" src="wp-content/uploads/group-avatars/1/myuploadedfile.png"/>
    <input type="hidden" value="wp-content/uploads/group-avatars/1/myuploadedfile.png" id="image_src" name="image_src"/>

    needs a beginning slash /wp-content/uploads/group-avatars/1/myuploadedfile.png

Viewing 9 replies - 701 through 709 (of 709 total)
Skip to toolbar