Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 17,276 through 17,300 (of 94,565 total)
  • Author
    Search Results
  • #247064
    shanebp
    Moderator

    There is no template called loop.php

    Unless you’re are explicitly using the BP default theme, you should be using this file
    buddypress\bp-templates\bp-legacy\buddypress\groups\groups-loop.php
    And creating a template overload of that file and making your changes in the overload.

    #247060
    shanebp
    Moderator

    Groups Loop


    <?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) . 'type=alphabetical' ) ) : ?>

    filz51
    Participant

    Hi there

    You can find hundred an more solutions to limit access to contents when you use buddypress. I’m still looking for the solution that fits my needs.

    I have a conditional menu for logged in users, which only appears when you are logged in. In the submenu you find then the buddypress-sites and some other ordinary wp-sites.
    My need: How can I prevent visibility/access to some (not all) wp-sites listed in this menu for non-bp-users? I’d rather like to use code in bp-custom.php than a plugin, but any suggestion is helpful.

    I use bp-groups which might be a solution to define the right variables for limiting the access but how to? IMO the most attractive solution would be if the menu-items are only shown for the members of the specific bb-group.

    Kind regards, filz51

    #247053
    mcpeanut
    Participant

    Nice one @imath and congrats to you and all the team, although i have not had time to try this out yet i will do do sometime soon, i have not been as active on here recently due to being so tied up with what i am doing myself, the cover was a well needed implementation and i am so glad it was added to core. now if only you guys could get a dedicated like system built into it or a favourite feature that would lets users favourite other pages and custom posts other than just on buddypress posts and related pages 🙂 … hehe.

    jessicana
    Participant

    Hi

    I am trying to hide the sidebar widgets in buddypress registration page, I tried:

    .register .sidebar {
    	display:none;
    	visibility: hidden;
    }

    It did not work. Any insights?

    Thanks

    #247047
    synfrag
    Participant

    Hello,

    With the absence of a circles type feature for friends, I need to be able to have my members flag their friends for a permissions issue I’m working on. Just a simple yes or no flag to allow them to see photo galleries and certain activity updates. I’m having trouble deciding on how to approach this. My first though is to add into the friend items an ajax checkbox that will update the friends table with a yes/no or boolean values.

    The JS / Ajax

    $('#private').on('click', function() {
        var checkStatus = this.checked ? 'ON' : 'OFF';
    
        $.post("private_update.php", {"$is_private": checkStatus}, 
        function(data) {
            $('#update').html(data);
        });
    });

    The PHP/SQL

    function private_friends($friend_userid) {
    	global $wpdb;
    	if (isset($_POST['private'])):
    		$is_private = $_POST['private'];
    		$not_private = $wpdb->get_var("UPDATE wp_bp_friends SET private = '".$is_private."' WHERE private != '".$is_dirty."'");
    	endif;
    };
    

    Does anyone have some insight here? I haven’t written anything dealing with Buddypress functions before so it’s new territory for me.

    #247037
    BackpackersUnion
    Participant

    The cover image seems to be missing after it’s uploaded because I’m using;

    function dequeue_bp_twentyfourteen() {
        wp_dequeue_style( 'bp-twentyfourteen' );
    }
    add_action( 'wp_enqueue_scripts', 'dequeue_bp_twentyfourteen' );

    *(In child theme, function.php)

    to dequeue the BP TwentyFourteen companion styles sheet. I’ve read through the BuddyPress Cover Images codex and didn’t see the solution, although I could be missing it.

    Has anyone else had this issue? I have a feeling there’s a simple fix, but I’ve hit a wall.

    Thanks to all!
    Carl

    Specs:
    2014 theme, Up to date – BP and WP

    #247030
    jessicana
    Participant

    Hello,

    If a user deletes his account, can he re register again using the same username? If yes, when can a user re register again?

    When a user deletes his account, does buddypress delete all of his/her details from the database?

    Thanks

    #247026
    r-a-y
    Keymaster

    I’ve got a fix ready:
    https://buddypress.trac.wordpress.org/attachment/ticket/6745/6745.01.patch

    Apply the lines in that patch to your BuddyPress install.

    To test this, you’ll need to set WP_DEBUG to true so it will load the unminified version of the javascript:
    https://codex.wordpress.org/WP_DEBUG

    Let me know if this fixes the problem.

    #247019
    Thagintoki
    Participant

    not showing the avatar but instead I want to attach the avatar to a specific user so buddypress will take care of showing it,

    the only problem is that it depends on a $_FILES variable

    this means that I can use the function if I had a form, else I can’t because the mother Class has needs as argument the file from ($_FILE) and the name of the form which i don’t have.

    #247013
    r-a-y
    Keymaster

    What are your URLs linking to? In your video you mentioned something like /members/?s=whatever?

    In BuddyPress 2.4.0, you have to change the s parameter to members_s. In 2.4.1, this will change to members_search due to a typo.

    How are you setting up the members loop to filter students by school?

    #247012
    r-a-y
    Keymaster

    We do not store avatar data in the database.

    We do a look up at the files level instead.

    If you want to show an avatar based on a custom avatar stored in the database, you’ll need to use the 'bp_core_fetch_avatar' filter to override how BuddyPress shows avatars:
    https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-core/bp-core-avatars.php?marks=531-546,660-664#L531

    If you just want to display a user avatar, use the bp_core_fetch_avatar() function:

    echo bp_core_fetch_avatar( array(
        'item_id' => USER_ID_TO_GRAB_AVATAR_FOR
    ) );
    #247008
    gurusurfer
    Participant

    Ok for the is_buddypress() the functions

    function for_buddypress() {
        if ( is_buddyPress() ) {
            echo "<meta name=”robots” content=”noindex, nofollow>";
        } else {
        }
    }
    add_action( 'wp_head', 'for_buddypress' );

    Working perfectly, but when creating another function for the bp_is_groups() I am getting error “call to undefined functions bp_is_groups()

    Any help is much appreciated!

    Thanks

    #247005
    Henry Wright
    Moderator

    Check out the Using bp_parse_args() to filter BuddyPress template loops article. Specifically, you’d want to make use of date_query, which should be an array of date query clauses.

    kennibc
    Participant

    I have a video of the issue:
    https://www.youtube.com/watch?v=mV-FFRqmVZs

    This issue deals with pagination when you do a search of a custom buddypress profile field. The initial pagination page properly displays 1-X amount of users. Click on page 2 and it shows all users in the site not just the custom searched users.

    Any suggestions? Is this related to my theme or plugins?

    #246997
    Thagintoki
    Participant

    Hi according to my last question I have come across a good solution to upload files to buddypress avatars folder, now I want to know how to update user meta to show this avatar in my frontend.

    code I used:

    $avatarPath //is the path where the avatar is uploaded
    update_user_meta( $user->ID, 'author_avatar', $avatarPath );

    thanks in advance.

    #246995
    bloggingandwb
    Participant

    Currently, BuddyPress Activity Stream is displayed date order. Latest activity is displayed at first.

    I need to make it, by recent comments.

    For a example there is activity called “Nimal became a registered member “. If someone comment for that activity it should appear in first place of activity stream. ( Forums works like this)

    Is it possible? I could not find a way to do it. How to do it?

    #246994
    bchristy
    Participant

    First, I would like to say that I am new to using the Buddypress plugin. I downloaded version 2.4.0 and I am using WordPress 4.3.1. On my blog I wanted to add a register page, but when I created a dummy page titled Register and linked it to Register below Registration in Buddypress settings it does not work. I made sure that anyone can register to my blog under the settings tab is enabled. Can anyone tell me if you know of a solution to this annoying problem?

    http://blog.furnishmyway.com/

    AM77
    Participant

    I have set the main activity page as the front page in admin > reading:

    Front page displays: static page: Front page: Activity.

    I have a few conditionals with is_front_page() but it stopped working for some reason, not sure if it was because of an upgrade. is_front_page() still works if I set a non BuddyPress page as the front page, it only doesn’t work if I set a BuddyPress page as the front page like the ‘activity’ page or ‘members’ page.

    Is this supposed to happen? And what is the best alternative to use, is it bp_is_activity_front_page() because that one works.

    #246988
    gurusurfer
    Participant

    I have also tried in a loop like in this codex, but breaking the page, what am i missing?

    <?php if ((is_buddypress() ) { echo '<meta name=”robots” content=”noindex, nofollow>'; } ?>

    You help is much appreciated!

    Thanks

    Frank G.
    Participant

    Hello everyone, thanks in advance …..
    I have a buddypress with different members types, coaches and players.
    I’m trying to make private members profiles with type = coaches with this code:

    function member_profile_test(){
      $user_id = bp_displayed_user_id();
      $member_type = bp_get_member_type($user_id);
      if($member_type !== 'players' && !is_super_admin() && !bp_is_my_profile()){
       wp_redirect(home_url() . '/error');
      }
    } 
    add_action( 'bp_before_member_home_content', 'member_profile_test' );

    But at this point (‘bp_before_member_home_content’) it is too late, the site has already begun to write content and wp_redirect display an error in php.

    What is the right way to do this?

    Thank for your help…. Sorry for my english…

    #246977
    tonydjukic
    Participant

    Thanks @henrywright. I installed it and tested it out, doesn’t seem to be even slightest issue with it. @jjj should just push incremental updates that update compatibility so WordPress removes that ‘warning’ message – the plugin works great so it’s a shame that people new to BuddyPress (like myself) are scared away from it for no reason.

    #246974
    r-a-y
    Keymaster

    Are you running the Woffice theme with their Birthday extension?

    If so, you need to update Woffice:
    https://buddypress.org/support/topic/fatal-error-call-to-undefined-method-stdclasssave/#post-246973

    #246972
    ShaneValiant
    Participant

    Good day,

    This fatal error is causing issues with some of of Primary site functions and Im wondering if this is a result of 2.4.0 or just funky timing. Could someone give us a hand with this fix please?

    Fatal error: Call to undefined method stdClass::save() in /www/myservername/public/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-functions.php on line 275

    Kindest,
    Shane

    #246966
    shanebp
    Moderator

    i have red all the files in buddypress plugin

    Then you know that BP does not store any data re individual avatars in the database.

Viewing 25 results - 17,276 through 17,300 (of 94,565 total)
Skip to toolbar