Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 24,376 through 24,400 (of 69,109 total)
  • Author
    Search Results
  • zanzaboonda
    Participant

    I feel like I need to append this to say that when I mean wrong, I mean some sort of technical glitch.

    #150174
    magichew
    Participant

    Sorry but I have just created another ticket for this too.

    https://buddypress.trac.wordpress.org/ticket/4760

    I have been running 1.7 on the site I’m testing for weeks and it seems like it hasn’t been a problem for the whole life of 1.7 as some users are fine and other users haven’t been able to activate at a later date.

    Unfortunately I don’t know how to find out any sort of timeline for when this broke.

    zanzaboonda
    Participant

    I give up.

    Any thoughts otherwise? My whole BuddyPress area is broken. 🙁

    zanzaboonda
    Participant

    Well, then.

    I added spaces between the . Let’s see if that makes a difference.

    #150171
    Mike Stott
    Participant

    Hi

    You could try this premium plugin

    [DELETED – not relevant to this topic ~~~ Mercime]

    rates two images side by side using the elo algorithm.

    zanzaboonda
    Participant

    Hmm… not sure why it didn’t take that other one. Trying again.

    At bottom of header-buddypress.php:

    zanzaboonda
    Participant

    There is a whole bunch of wrong with the code from the walkthrough…

    I’m guessing it should be these? (If so, it still didn’t work for me. )

    At bottom of header-buddypress.php:

    At top of sidebar-buddypress.php:

    `

        
            jQuery(document).ready( function() {
                if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
                    jQuery(‘div#blog-details’).toggle();
                jQuery( ‘input#signup_with_blog’ ).click( function() {
                    jQuery(‘div#blog-details’).fadeOut().toggle();
                });
            });
        
    `

    #150165
    shanebp
    Moderator

    You don’t say where you tried to use bp_group_has_members().

    In a function you probably need a global or two, at least global $bp;

    Try hard coding a group_id into your bp_group_has_members() call.
    If that works, then you have to dig around and find the right globals and calls to make.
    ( maybe bp_get_current_group_id() ? )

    If it doesn’t work, there could be an issue with your setup or maybe you can’t use multiple
    bp_group_has_members calls in the same parent loop.
    According to the codex, the latter shouldn’t be an issue, but… ?
    https://codex.buddypress.org/developer/developer-docs/loops-reference/the-group-members-loop-bp_group_has_members/
    “The ID of the group to fetch members for. Required when… not nested within a bp_has_groups() loop.

    #150163
    Ben Hansen
    Participant

    i have no trouble seeing this thread :/

    #150160

    Awesome, but you can not use the BuddyPress logo in non-official applications.

    +1 – would you please kindly remove the BuddyPress logo. We love it as much as you do, but this app isn’t officially endorsed by the BuddyPress project.

    #150159
    DKerrigan
    Participant

    Thanks for the quick reply @shanebp.

    I tried using:
    `if ( bp_group_has_members() )`

    However, when I check out the Groups directory, each group has the message “This group has no members”. Is there any way to pass the group_id to bp_group_has_members() without hard coding it?

    #150155
    modemlooper
    Moderator

    Awesome, but you can not use the BuddyPress logo in non-official applications.

    #150151
    lwaltzer
    Participant

    Oops. Trying again:

    /**
    * In WP 3.5+, get_blogs_of_user() is much slower than in previous versions. As
    * a result, if you have a certain number of blogs, running get_blogs_of_user()
    * will create a memory timeout. This is a particular problem because
    * get_blogs_of_user() is called on every page, because of the toolbar.
    *
    * Ideally, there would be a way to short-circuit get_blogs_of_user(), or even
    * to prevent WordPress from calling get_blogs_of_user() while loading the
    * toolbar. But there is not. As a workaround, this function intercepts a key
    * step in get_blogs_of_user() – the get_user_meta() call that gets all of a
    * user’s metadata. If we determine that this request is coming from
    * get_blogs_of_user() (which we do by examining the debug_backtrace(), a truly
    * awful technique), AND that it’s one of the generic meta queries used by
    * get_blogs_of_user(), AND that the current user has more than 75 blogs, THEN
    * we strip all of the blog capability keys from the array of metadata,
    * tricking get_blogs_of_user() into thinking that the current user has no
    * blogs at all.
    */
    function bbg_admin_bar_hack( $check, $object_id, $meta_key, $single ) {
    // Only fire when looking at get_user_meta() with no params
    if ( ! $meta_key ) {

    // check to see whether this came from get_blogs_of_user()
    $db = debug_backtrace();
    $is_get_blogs_of_user = false;
    foreach ( $db as $dbk => $dbv ) {
    if ( ‘get_blogs_of_user’ == $dbv[‘function’] ) {
    $is_get_blogs_of_user = true;
    break;
    }
    }

    if ( $is_get_blogs_of_user ) {
    // Get the real metadata, but don’t recurse
    remove_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );
    $meta = get_user_meta( $object_id );
    add_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );

    // How many blogs does this user have?
    static $blog_count_of_user;
    if ( ! isset( $blog_count_of_user ) && is_user_logged_in() ) {
    $blog_count_of_user = 0;
    foreach ( $meta as $mk => $mv ) {
    if ( ‘capabilities’ === substr( $mk, -12 ) ) {
    $blog_count_of_user++;
    }
    }
    }

    // We only care about those with counts > 75
    if ( $blog_count_of_user > 75 ) {
    static $clean_keys;
    if ( isset( $clean_keys ) ) {
    return $clean_keys;
    } else {
    foreach ( $meta as $mk => $mv ) {
    if ( ‘capabilities’ === substr( $mk, -12 ) ) {
    unset( $meta[ $mk ] );
    }
    }

    $clean_keys = $meta;
    return $meta;
    }
    }
    }

    }

    return $check;
    }
    add_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );

    #150150
    lwaltzer
    Participant

    @boone figured this out for me, and hacked together a fix which I’ve pasted below.

    `

    $dbv ) {
    if ( ‘get_blogs_of_user’ == $dbv[‘function’] ) {
    $is_get_blogs_of_user = true;
    break;
    }
    }

    if ( $is_get_blogs_of_user ) {
    // Get the real metadata, but don’t recurse
    remove_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );
    $meta = get_user_meta( $object_id );
    add_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );

    // How many blogs does this user have?
    static $blog_count_of_user;
    if ( ! isset( $blog_count_of_user ) && is_user_logged_in() ) {
    $blog_count_of_user = 0;
    foreach ( $meta as $mk => $mv ) {
    if ( ‘capabilities’ === substr( $mk, -12 ) ) {
    $blog_count_of_user++;
    }
    }
    }

    // We only care about those with counts > 75
    if ( $blog_count_of_user > 75 ) {
    static $clean_keys;
    if ( isset( $clean_keys ) ) {
    return $clean_keys;
    } else {
    foreach ( $meta as $mk => $mv ) {
    if ( ‘capabilities’ === substr( $mk, -12 ) ) {
    unset( $meta[ $mk ] );
    }
    }

    $clean_keys = $meta;
    return $meta;
    }
    }
    }

    }

    return $check;
    }
    add_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );

    `

    #150136
    ngoegan
    Participant

    I realized that even though they are showing up as members in my user panel, they aren’t showing as members on the site – because I never approved them. So I think my friend who is not showing up as a member probably never came back and logged in so she’s in limbo – showing up as a member who registered, but until she comes back and tries to login, Private Buddypress doesn’t send the email to me to do the final approval that makes her a member on the site itself.

    #150129
    Renato Alves
    Moderator

    Thank you @chouf1, very useful! =)

    #150122
    Mathieu Viet
    Moderator

    Thanks @chouf1 for your help 🙂

    Just published a new beta on github. Now you can filter the avatar list of avatars by gender thanks to a xprofile field and a little piece of code in the functions.php of your active theme : http://imathi.eu/2013/01/09/bp-avatar-suggestions-xprofile/

    #150119
    sam247
    Participant

    The only related error is
    `PHP Parse error: syntax error, unexpected ‘<' in /public_html/wp-content/themes/wp-magazine/members/index.php on line 10`

    my members/index.php code looks like this:
    `


    get_header( ‘buddypress’ ); ?>


    `

    #150118
    @mercime
    Participant

    @sam247 you’d need to check your server’s error logs. What’s posted there?

    #150117
    ngoegan
    Participant

    Thank you, I’ll try that. Another question: I have a member who shows up in the user list when I go to my Dashboard > Users. But when I go to the member section of the site they are not there. I tried re-setting her role and then setting it back in the User area but that didn’t do it. Not sure what to do. Maybe delete and have her re-register? Concerned it will happen again without my knowledge when I open for many memberships.

    Another issue I’m having is that I installed Private Buddypress, which I know you said I shouldn’t since it isn’t compatible, but I can’t use BuddyPress if it isn’t private so I need the privacy. But every morning I check and there are several new members who somehow managed to register themselves as members when I have it set to need my approval. How can I avoid this? I just delete them, but when I have a lot of members, I won’t be able to manage that and pick them out so easily.

     

    #150109
    Ben Hansen
    Participant
    modemlooper
    Moderator
    #150094

    In reply to: Secure a site

    mrjarbenne
    Participant

    That code has been kicking around the community for a while. Here’s the initial forum post that has some variations you can try:

    https://buddypress.org/support/topic/members-privacy-how-can-i-hide-members-profiles/?topic_page=2&num=15/#post-102784

    #150093

    In reply to: Register Error

    danbpfr
    Participant

    i presume the error is coming from a bad translated string, that’s why it is necessary to debug this possibility.

    To confirm this, you have to retrieve your language file (rename simply the pt_BR.mo and the Buddypress-pt_BR.mo) and WP/BP will be automatically in english.

    So when in english and the error disapeared, you know that the translation is the culprit.

     

    #150091
    modemlooper
    Moderator

    BUddyPress and bbPress both use the slug forum. Change bbPress forum slug to something else in the bbPress settings

Viewing 25 results - 24,376 through 24,400 (of 69,109 total)
Skip to toolbar