Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,026 through 20,050 (of 94,538 total)
  • Author
    Search Results
  • #237987
    Henry Wright
    Moderator

    Hi @urbanfix

    Here’s the standard loop taken from here.

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
        <?php while ( bp_activities() ) : bp_the_activity(); ?>
     
            <?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
     
        <?php endwhile; ?>
    <?php endif; ?>

    If you scroll down the page and take a look at filtering options, you’ll see user_id. So your loop will look something like this:

    $post = get_post( get_the_ID() );
    $filter = '&user_id=' . $post->post_author;
    
    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $filter ) ) :
        while ( bp_activities() ) : bp_the_activity();
            locate_template( array( 'activity/entry.php' ), true, false );
        endwhile;
    endif;

    Note: I haven’t tested.

    Caveat: This must be used within The Loop.

    #237980
    Ben Hansen
    Participant

    sorry i don’t know any plugins or how to hack it but i think that would make a great feature suggestion for core if you can please add it to trac here:

    https://buddypress.trac.wordpress.org

    if not let me know and i’ll add it.

    🙂

    andrew55
    Participant

    We have bbPress integrated with BuddyPress. We have an educational based membership site which is lesson based. The member’s access to forums in bbPress is controlled by what lesson student currently has, so if a student isn’t on lesson 5 yet, they can’t see the forum for lesson 5.

    When any student creates a topic/reply in a forum, this shows in the activity stream of BuddyPress (personal and site-wide). Because we do not want students reading topics/replies of forums they don’t have access to yet, is there a method of hiding just the content of the topic/reply in the activity streams within BuddyPress?

    We would love to keep the topic/reply titles and and participants in the activity stream, just not the content/excerpt.

    I seen in the activity steam, there is a div class “activity-inner”

    I could hide this using css, but that would hide all the content for all activity updates. We only want to hide the content/excerpt for bbPress topic/reply content. Thanks for any help with this.

    shanebp
    Moderator

    Try using this hook fromfunction groups_delete_group in buddypress\bp-groups\bp-groups-functions.php

    do_action( 'groups_before_delete_group', $group_id );

    #237974
    S. Panda
    Participant

    Thanks for the reply, unfortunately that patch didn’t help. Here’s what I have in wp-content/plugins/bbpress/includes/extend/buddypress/activity.php:

    	// Get the activity stream item, bail if it doesn't exist
    //  ===== BBPRESS BUG WHICH RETURNS DUPLICATE =====
    // ===== bbp_reply_created UPON EDITS                            =====
    //		$existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
    //		if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
    // ===== END BUGGY CODE / START PATCH                    =====
    		$existing = new BP_Activity_Activity( $activity_id ); 
     		if ( empty( $existing->component ) )
    // ===== END PATCH                                                           =====
    			return null;
    		$existing = new BP_Activity_Activity( $activity_id ); 
     		if ( empty( $existing->component ) )
    		// Return the activity ID since we've verified the connection
    			return $activity_id;
    	}
    
    #237969
    mantismamita
    Participant

    First of all I am using WordPress 4.1.1 and BuddyPress 2.2.2.1 and I am creating custom templates (via a custom plugin) that show Members based on roles. For example I want to have one page of only subscribers and another of only contributors. I have found a few different ways to doing this the simplest being to add a conditional statement like so

    $user = new WP_User( bp_get_member_user_id() );
    
                if ( $user->roles[0] =='subscriber'){ ?>

    within the bp members loop.

    The problem with this is that the pagination is skewed and is based on all the members instead of just those with the correct role. For example if I have 2000 members and only 5 of them are subscribers I will have pagination based on the 2000 where most pages are blank.

    I’ve read suggestions to modify the bp_members_pagination_count() but it seems that changing the parameters of bp_has_members() would be more efficient. Therefore I would need to modify bp_ajax_querystring( 'members' ) in ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) :

    I saw this thread by @zintax and modified it to suit my needs like so:

    function modify_members_loop( $qs=false, $object=false ) {
    
        if ( $object != 'members' ) // hide for members only
            return $qs;
    
        // create an array with my subscribed users
        $subscribers = get_users( 'role=subscriber' );
        $sub_list= array();
    
        foreach ( $subscribers as $sub ){
            $sub_list[]= $sub->ID;
        }
    
        $sub_list = implode(', ', $sub_list);
    
        if ( !empty( $args['include'] ) )
            $args['include'] = $args['include'] . ',' . $sub_list;
        else
            $args['include'] = $sub_list;
    
        $qs = build_query($args);
        return $qs;
    }
    
    add_action( 'bp_ajax_querystring' , 'modify_members_loop', 25, 2 );

    (I will later add conditionals so that this only occurs on the subscriber page)

    I was wondering if this is indeed the best and most query efficient way to go about this or if there are other considerations I should be mindful of.

    Soulinho
    Participant

    Hello @ll 🙂

    Is there a plugin or a way to take the message history together?

    So per page 10 messages or when you scroll down for more to be displayed (like on Facebook or Twitter ) . I’ve tried with infinite scrolling but not works for me =/

    So far, all messages are displayed on a page and I want to split.

    You may have a solution?

    Sorry for my bad english 🙂

    Greets Soulinho

    #237964

    In reply to: activity

    danbp
    Participant

    Hi,

    to show only notices (aka updates) on the SWA, try this snippet (place in bp-custom.php)

    function make_swa_show_notice_only( $retval ) {	
    	
    	if ( bp_is_page( 'activity' ) ) {
    	$retval['action'] = 'activity_update';					
    	}
    	
    	return $retval;
    	
    	}
    add_filter( 'bp_after_has_activities_parse_args', 'make_swa_show_notice_only' );

    Reference: https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/

    #237963
    danbp
    Participant

    Hi @spanda,

    it’s a bbpress bug who remains since BP 2.0.
    A patch was provided 7 mounth ago but not applied in latest bbP (2.5.6).

    Note that the patch contains a bracket error: ( component ) ) { ). Remove { !

    Open wp-content/plugins/bbpress/includes/extend/buddypress/activity.php

    Remove or comment line 279 & 280 and replace by

    $existing = new BP_Activity_Activity( $activity_id ); 
     		if ( empty( $existing->component ) )

    save and you’re done.

    #237961

    Topic: Profile Page

    in forum Showcase
    polkadotheart
    Participant

    Any idea why my profile page is looking like this? I would like the website name and website to be in line with the other profile fields. WordPress is latest version. BuddyPress is latest version.

    Thanks!

    http://her-network.com/members/christina/profile/

    DjarumSuper
    Participant

    Hi

    I have problem with avatar thumbnail. It not resize. See here: http://goo.gl/RFA1LN

    I have deactivated all plugin and switch theme but the issue is persist.

    The issue appear when I upgrade buddypress to the latest version. However, when I downgrade, the issue is persist

    Any help would be appreciated

    Thanks

    #237949
    Svend Rugaard
    Participant

    Was installing https://wordpress.org/plugins/buddypress-wall/ and it actually make the error go away .. :S

    Svend Rugaard
    Participant

    Hmm they say it isnt “compabitle” with buddypress only BBpress but it works but not on those 2 things.. isnt it possible for someone to help me or at least tell me how i find these blank spaces ? ..

    I have done a clean install on http://area51.ps3geeks.dk/ only

    #237945
    hektech – spencer
    Participant

    I am trying to setup buddypress on swtulsachamber.org and I can not see the Register page when the plugin is active. When I deactivate the buddypress plugin I can see the Register page which is a sub-page of “Join” called “Chamber Member Area Join”.

    1. WordPress 4.1.1

    2. Directory

    3. It is in the Document root for the server html_public

    4. This is a very fresh install, and was not from a major upgrade.

    5. Everything seems to be working fine except for the problem I am having that I can not see or find the join/registration page for buddypress.

    6. 2.2.2.1 is the version of buddypress I am running

    7. This is not an upgrade of buddypress it is a fresh install

    8. I have several other plugins installed and activated right now, however I have tried disabling them all and running buddypress as the only plugin. but here is the list incase it helps:

    BadgeOS
    BadgeOS Community Add-on
    bbPress
    BP Registration Options
    BuddyPress
    CloudFlare
    Contact Form 7
    Contact Form 7 Multi-Step Forms
    Contact Form DB
    Custom Post Type UI
    Members
    Paid Memberships Pro
    Posts 2 Posts
    Revolution Slider
    ShortPixel Image Optimiser
    Theme My Login
    WP-PageNavi
    WP Super Cache

    9. I am using a theme called AccessPress Pro from AccessPressThemes.com however I have tried deactivating and using the tweentyfourteen theme

    10. Never touched the core

    11. I have not added custom functions to the bp-custom.php but plan to do so. I do not know if one of the installed plugins may have done so.

    12. My bbPress is 2.5.6 and did not come with BuddyPress

    13.

    14. LiquidWeb

    15. Linux (centos) With Apache

    #237944
    Henry Wright
    Moderator

    Hey @djsteveb,

    Would like to try this out one of my sites.. wondering though, how this comparing to buddy block or whatever it is called? Feature compare?

    Check out the first two paragraphs of the README.md for how muting differs from blocking or unfriending.

    Also, this would be excellent if it also could “mute” / hide / selected groups from the sidebar widgets and sitewide activity..

    In v1.0.0 of the plugin, only muting users is supported. So at the moment, it works just like Twitter.

    At some point in the future I might expand functionality to mute group updates, and perhaps even activity types.

    also wondering if possible to hide posts from ‘muted users’ from appearing in the sidebar of sidewide posts when an annoying user has a blog with MU setup and stupid posts show up on the sitewide posts widget

    Right now just activity items get muted. Muting posts is a great idea; something I’ll have to think about for a future release.

    For answers to more of the plugin’s FAQs, see here:

    https://wordpress.org/plugins/buddypress-mute/faq/

    Hope this info helps 😀

    #237940
    goakes
    Participant

    Hello

    Not sure where this question fits. If I go to login through the Buddypress login dashboard and only enter my user name then login, I’m taken to the WordPress login page. Is there a way to take me to keep me on the buddypress login page with an error message?

    Equally is there a function for ‘forgotten password’ without going through the WordPress login page?

    Gary

    #237938

    In reply to: Unable to Edit Profile

    David
    Participant

    In BuddyPress, if I click on the profile option it will show my profile that other users can click on in the BuddyPress groups. Once you click on the profile link it gives you an option to click edit to edit your profile….I just get a blank page with no options to edit anything.

    modemlooper
    Moderator

    I would google wordpress appointment plugin

    There seems to be some options, you don’t necessarily need BuddyPress

    #237932
    shanebp
    Moderator

    Please use the code button when posting code.

    If I go into the admin panel and select Activities, I can see the same comment, but “View Activity” takes me to the activity panel, were I can see the parent activity and the post successfully.

    As you can see, the url is being rewritten when you click on ‘view activity’.
    You can either figure how the url is being rewritten.
    Or create your own url using the fields from the comment object.
    Something like:
    $url = bp_core_get_userlink( comment[user_id] ) . '/activity/' . comment[comment_ID] . '/';

    bp_core_get_userlink()

    #237929
    David
    Participant

    Afternoon everyone,

    I have installed BuddyPress and a few extensions on my WP site. So far things are working good but when I click on my profile in the groups setup and then hit edit to edit my profile it just gives me a blank page. Anyone have any idea how I can fix this?

    I appreciate any help you may be able to provide.

    @mcuk
    Participant

    Hi all,

    I’m still looking for the correct screen function to mimic/copy the existing favorites page and the method by which to load it. All I want to do is duplicate that page somewhere else.

    The above code works to setup the new subnav tab but I can’t get any page content (ignore the link array item, that is obviously wrong).

    Is the approach below the method by which to load a standard buddypress template to a subnav tab or is that just for custom screen functions? :

    https://buddypress.org/support/topic/custom-profile-menu/

    shanebp
    Moderator

    Where are you getting bp_pre_group_query from?
    You can’t make up hooks :>
    See BP_Groups_Group::get in buddypress\bp-groups\bp-groups-classes.php for more info.

    Try this:

    
    function antares_groups_filter_options() {
        echo '<option value="user-league">User League</option>';
    }
    add_action( 'bp_groups_directory_order_options', 'antares_groups_filter_options' );
    
    function antares_ajax_querystring( $query_string, $object ) {
    
    	if ( 'groups' != $object ) 
    		return $query_string;
    
    	if ( ! bp_is_groups_directory() ) 
    		return $query_string;
    	
    	$query_args = wp_parse_args( $query_string, array() );
    
            $page = $query_args['page'];
    
    	if( isset( $query_args['action'] ) && $query_args['action'] == 'user-league' ) {
    	
    		$query_args = array();
    		$query_args['page'] = $page;
    		$query_args['orderby'] = 'name';		
    		$query_args['order'] = 'ASC';			
    		$query_args['include'] = antares_get_groups(); 
    		$query_string = http_build_query( $query_args );
    
    	}
    
    	return $query_string;
    
    }
    add_filter( 'bp_ajax_querystring', 'antares_ajax_querystring', 32, 2 );
    
    function antares_get_groups() {
    
        // put your custom sql here
        // return a csv string of the groups ids
        // for example '1,22,57'
    
    }
    #237913
    Gayatriom
    Participant

    Hi Everyone!
    Is there a way to connect foursquare’s api to buddypress so that I can pull foursquare places data into buddypress and display businesses as groups?

    Gayatriom
    Participant

    ok. one more question.
    I see how they created businesses from groups and allow members to join ‘the hub’ which is essentially a group.

    But i can’t see the members that are a part of the ‘hub’.
    Is that possible with buddypress?

    GHEGab
    Participant

    Hi there,

    I am seeking the best plugin for one of my client website, here is what he wants :

    1 A “user plugin” that allows user to register, login etc.
    2 User should be able to set his informations such as location, name, etc and to modify those.
    3 A messaging system with attachment (he must be able to download and upload those)
    4 An appointment system where user can book appointments with differents coaches on the website (I am pretty sure BuddyPress cannot do this and I need another plugin for that purpose, if yes, is it possible to somehow merged the two plugins to make them work together somehow ? Or how should I proceed ?)
    5 A space where users can look up their order receipt
    6 A space where users can see what packages he ordered, a reminder for their next appoinments.

    I believe the hardest points are 4-5-6. I am looking for advices for those.
    In summary, client is creating a marketing consulting strat up which delivers 4 differents packages (from the cheapest to the most expensive) where the users would have a great user interface. He should be able to message his coach, sharing documents with him, book up appointments with him, take a look at his receipts…

    I know I should use several differents plugins to do so but the difficulty is to make them work together.

    Do you guys have any advices ?

    Many thanks.

Viewing 25 results - 20,026 through 20,050 (of 94,538 total)
Skip to toolbar