Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 5,026 through 5,050 (of 68,987 total)
  • Author
    Search Results
  • #304340
    sigmund1410
    Participant

    Hello,
    I’m an admin at a erotic website that uses buddypress. Due to the nature of the content, I would like to be able to display ALL user messages (not sent to me, but sent between other users) to check if they’re not using my website to distribute, for example illegal content via PM’s. Is this possible? I know I can go to desired user’s profile and click the messages tab, so as admin I can see his/her messages. But this is too cumbersome since i have 1000+ users.
    I’ve been looking for a plugin, but no luck unfortunately.
    Thanks in advance for all help.

    #304339
    Venutius
    Moderator

    Hi there,

    My suggestion is that you add a new menu item “All” and create a new set of queries for the page then make that page the default landing page for the profile activity page. Here’s my code to do this:

    function bpex_set_member_default_nav() {
     
    		if ( ! bp_is_user_profile() && ! bp_is_user_activity() && ! bp_is_user() ) {
    		    return;
    	         }
    
                    bp_core_new_nav_default(
    		array(
    			'parent_slug'       => buddypress()->activity->id,
    		// other "activity" sub_nav slugs : personal favorites friends groups mentons
    			'subnav_slug'       => 'all-activity',
    			'screen_function'   => 'bp_activity_screen_all_activity'
    		)
    	);
    }
    add_action( 'bp_setup_nav', 'bpex_set_member_default_nav', 20 );
    
    add_action( 'bp_setup_nav', 'bpex_just_me_tab', 50 );
    add_action( 'bp_setup_admin_bar', 'bpex_admin_bar_add', 50 );
    
    function bpex_just_me_tab() {
    	
    	if ( ! bp_is_user_profile() && ! bp_is_user_activity() && ! bp_is_user() ) {
    		return;
    	}
    	
    	global $bp;
    	$user_id = bp_displayed_user_id();
    	
    		bp_core_new_subnav_item( array(
    			'name'            => _x( 'All', 'Profile activity screen sub nav', 'buddypress' ),
    			'slug'            => 'all-activity',
    			'parent_url'      => bp_core_get_user_domain( $user_id ) . 'activity/',
    			'parent_slug'     => 'activity',
    			'screen_function' => 'bp_activity_screen_all_activity',
    			'position'        => 10
    		) );
    
    }
    
    function bpex_admin_bar_add() {
    	
    	global $wp_admin_bar, $bp;
    
    	if ( ! bp_use_wp_admin_bar() || defined( 'DOING_AJAX' ) ) {
    		return false;
    	}
    
    	$user_id = get_current_user_id();
    	
    	if ( ! $user_id || $user_id == 0 || ! is_numeric( $user_id ) ) {
    		return;
    	}
    	
    	// Personal.
    	//$wp_admin_bar->remove_menu( 'my-account-activity-personal', 'my-account-activity' );
    
    	$wp_admin_bar->add_menu( array(
    		'parent'   => 'my-account-activity',
    		'id'       => 'my-account-activity-all-activity',
    		'title'    => 'All',
    		'href'     => bp_core_get_user_domain( $user_id ) . 'activity/all-activity/',
    		'position' => 10
    	) );
    }
    function bp_activity_screen_all_activity() {
    
    	do_action( 'bp_activity_screen_all_activity' );
    
    	bp_core_load_template( apply_filters( 'bp_activity_template_all_activity', 'members/single/home' ) );
    }
    
    function bp_activity_filter_all_activity_scope( $retval = array(), $filter = array() ) {
    
    	// Determine the user_id.
    	if ( ! empty( $filter['user_id'] ) ) {
    		$user_id = $filter['user_id'];
    	} else {
    		$user_id = bp_displayed_user_id()
    			? bp_displayed_user_id()
    			: bp_loggedin_user_id();
    	}
    
    	// Should we show all items regardless of sitewide visibility?
    	$show_hidden = array();
    	if ( ! empty( $user_id ) && $user_id !== bp_loggedin_user_id() ) {
    		$show_hidden = array(
    			'column' => 'hide_sitewide',
    			'value'  => 0
    		);
    	}
    
    	// Determine groups of user.
    	$groups = groups_get_user_groups( $user_id );
    	if ( empty( $groups['groups'] ) ) {
    		$groups = array( 'groups' => 0 );
    	}
    
    	// Determine the favorites.
    	$favs = bp_activity_get_user_favorites( $user_id );
    	if ( empty( $favs ) ) {
    		$favs = array( 0 );
    	}
    
    	// Determine friends of user.
    	$friends = friends_get_friend_user_ids( $user_id );
    	if ( empty( $friends ) ) {
    		$friends = array( 0 );
    	}
    
    	$retval = array(
    		'relation' => 'OR',
    		array(
    			'relation' => 'AND',
    			array(
    				'column'  => 'user_id',
    				'compare' => 'IN',
    				'value'   => (array) $friends
    			)
    		),
    		array(
    			'relation' => 'AND',
    			array(
    				'column' => 'component',
    				'value'  => buddypress()->groups->id
    			),
    			array(
    				'column'  => 'item_id',
    				'compare' => 'IN',
    				'value'   => (array) $groups['groups']
    			)
    		),
    		array(
    			'relation' => 'AND',
    			array(
    				'column' => 'user_id',
    				'value'  => $user_id
    			)
    		),
    		array(
    			'relation' => 'AND',
    			array(
    				'column'  => 'id',
    				'compare' => 'IN',
    				'value'   => (array) $favs
    			)
    		),
    		array(
    			'relation' => 'AND',
    			array(
    				'column'  => 'content',
    				'compare' => 'LIKE',
    
    				// Start search at @ symbol and stop search at closing tag delimiter.
    				'value'   => '@' . bp_activity_get_user_mentionname( $user_id ) . '<'
    			)
    		),
    		// We should only be able to view sitewide activity content for friends.
    		array(
    			'column' => 'hide_sitewide',
    			'value'  => 0
    		),
    
    		// Overrides.
    		'override' => array(
    			'filter'      => array( 'user_id' => 0 ),
    			'show_hidden' => true
    		),
    	);
    	
    
    	return $retval;
    }
    add_filter( 'bp_activity_set_all-activity_scope_args', 'bp_activity_filter_all_activity_scope', 10, 2 );

    Once you have done that you would also want to overload the buddypress/bp-templates/your-template/members/single/activity.php to make sure this new page contains the post update form:

    Change:

    if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( 'just-me' ) ) )
    	bp_get_template_part( 'activity/post-form' );

    To:

    if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( 'all-activity' ) ) )
    	bp_get_template_part( 'activity/post-form' );
    

    Note: with this method there is a danger of duplicating activity since a friend posting to a group would show up in the groups search as well as the friends search etc. so you may want to adjust the $retval criteria.

    Also you might want to add a post form for visiting users so they can leave a comment for the user, you could ad this:

    function bpex_load_mention_me() {
    	
    	if ( get_current_user_id() != bp_displayed_user_id() ) {
    		$_GET['r'] = bp_activity_get_user_mentionname( bp_displayed_user_id() );
    		bp_get_template_part( 'activity/post-form' );
    	}
    
    }
    
    add_action( 'bp_before_member_body', 'bpex_load_mention_me' );
    Venutius
    Moderator

    Is this not regarding WordPress post comments on a WordPress custom post type? If so it’s nothing to do with BuddyPress.

    joshthebeloved
    Participant
    #304326

    In reply to: Activity default tab

    Venutius
    Moderator

    Hey, it looks like I gave up just a tad early. I think I’ve got it working now:

    function bpex_set_member_default_nav() {
     
        	if ( ! bp_is_user_profile() && ! bp_is_user_activity() && ! bp_is_user() ) {
    		return;
    	}
            
            if ( bp_displayed_user_id() == get_current_user_id() ) {
            
            bp_core_new_nav_default(
                array(
                    'parent_slug'       => buddypress()->activity->id,
    	        // other "activity" sub_nav slugs : personal favorites friends groups mentons
                    'subnav_slug'       => 'friends',
                    'screen_function'   => 'bp_activity_screen_friends'
                )
            );
        }
    }
    add_action( 'bp_setup_nav', 'bpex_set_member_default_nav', 20 );
    
    add_action( 'bp_setup_nav', 'bpex_just_me_tab', 50 );
    add_action( 'bp_setup_admin_bar', 'bpex_admin_bar_add', 50 );
    
    function bpex_just_me_tab() {
    	
    	if ( ! bp_is_user_profile() && ! bp_is_user_activity() && ! bp_is_user() ) {
    		return;
    	}
    	
    	global $bp;
    	$is_own_view = false;
    	$user_id = bp_displayed_user_id();
    	
    	if ( get_current_user_id() == $user_id ) $is_own_view = true;
    	
    
    	if ( $is_own_view ) {
    
    		bp_core_remove_subnav_item( 'activity', 'just_me');
    
    		bp_core_new_subnav_item( array(
    			'name'            => _x( 'Personal', 'Profile activity screen sub nav', 'buddypress' ),
    			'slug'            => 'just-me',
    			'parent_url'      => bp_core_get_user_domain( $user_id ) . 'activity/',
    			'parent_slug'     => 'activity',
    			'screen_function' => 'bp_activity_screen_my_activity',
    			'position'        => 10
    		) );
    	}
    
    }
    
    function bpex_admin_bar_add() {
    	
    	global $wp_admin_bar, $bp;
    
    	if ( ! bp_use_wp_admin_bar() || defined( 'DOING_AJAX' ) ) {
    		return false;
    	}
    
    	$user_id = get_current_user_id();
    	
    	if ( ! $user_id || $user_id == 0 || ! is_numeric( $user_id ) ) {
    		return;
    	}
    	
    	// Personal.
    	$wp_admin_bar->remove_menu( 'my-account-activity-personal', 'my-account-activity' );
    
    	$wp_admin_bar->add_menu( array(
    		'parent'   => 'my-account-activity',
    		'id'       => 'my-account-activity-personal',
    		'title'    => 'Personal',
    		'href'     => bp_core_get_user_domain( $user_id ) . 'activity/180/',
    		'position' => 10
    	) );
    }
    

    Give it a try

    #304324

    In reply to: Activity default tab

    Venutius
    Moderator

    Can you look in Settings>>BuddyPress>>Options and let me know which BP Theme you are using?

    #304320
    jasminetudor
    Participant

    I am using listify and buddypress. My urls from reviews are linking to the wrong url. For example for profile username alexandria.russ goes to: https://www.coursekarma.com/members/Alexandria.russ when the actual url is: https://www.coursekarma.com/members/alexandria-russ/ in buddypress. Does anyone know how to fix this? Thanks!

    #304318

    In reply to: Creating groups

    Venutius
    Moderator

    Theme’s don’t interfere with settings pages I’m afraid, You could try switching to the 2017 theme to test. Could you share a screenshot of the BuddyPress Settings page?, you should have four tabs, Components, Options, Pages and Credits. Do you have those?

    #304317

    In reply to: Creating groups

    andhi1
    Participant

    This is what WordPress support say:

    Here is the lik you need:

    It may be an issue with your theme not including that feature. I would maybe contact BuddyPress with that link to the forum post and ask them to clarify the exact issue.

    #304315

    In reply to: Creating groups

    Venutius
    Moderator

    Seems to me then that you need to ask WordPress.com support what they have done with it. Reinstalling BuddyPress is unlikely to fix this, it sounds more like that this is not actually true BuddyPress you have running, either that or you’ve not enabled groups but you shared the components page the other day and you had it selected.

    Do you have the pages settings screen at all? There should be pages for Members, Activity and Groups at least.

    #304310

    In reply to: Creating groups

    andhi1
    Participant

    No it is not. I must have deleted it. Thats why I as if I can fix it if I reinstall BuddyPress

    #304309

    In reply to: Creating groups

    Venutius
    Moderator

    You can find out which page it is by going to Settings>>BuddyPress>>Pages and see the name of the page assigned as the groups directory

    #304307

    In reply to: Creating groups

    Venutius
    Moderator

    The groups directory is a page allocated to display all of your groups in the BuddyPress Pages settings, it normally has the url https://yoursite.com/groups.

    It’s really difficult to support wordpress.com users, we have no access so have no idea how BP works on there.

    #304305

    In reply to: Creating groups

    andhi1
    Participant

    I do not know what you mean with “Groups directory”. I do not have my site on an own server.
    I have a WordPress account who handels my site.

    Maybe there’s something wrong with that I can’t find the right page here for “usergroups” in BuddyPress settings:
    (I’m sorry I can’t get this picture in English!)

    And in front end “Profile” I can not see anything that says “Create group”.

    Can I possibly get this fixed if I reinstall BuddyPress?

    BR
    Anders H
    Sweden

    #304294
    catireque
    Participant

    Buddypress works for me as you indicate, except for the pages of each group that always redirects me to http: //
    I have open_ssl installed with a certificate. I have a wordpress latest version and buddypress latest version, I have configured multisite. I tried to put the domains to https: // and to http: // I always redirected the group pages to http: //

    One page of group is

    http://redols.caib.es/c07000000/grups/lectors/

    #304291

    In reply to: Activity default tab

    Venutius
    Moderator

    You could try:

    function bpex_set_member_default_nav() {
     
        if ( bp_displayed_user_id() == get_current_user_id() ) {
            bp_core_new_nav_default (
                array(
                    'parent_slug'       => buddypress()->activity->id,
    	        // other "activity" sub_nav slugs : personal favorites friends groups
                    'subnav_slug'       => 'mentions',
                    'screen_function'   => 'bp_activity_screen_mentions'
                )
            );
        }
    }
    add_action( 'bp_setup_nav', 'bpex_set_member_default_nav', 20 );
    #304286
    Venutius
    Moderator
    #304282
    Venutius
    Moderator

    This is probably more to do with how you’ve setup WordPress rather than BuddyPress. BuddyPress redirects based on what WordPress thinks is the right URL for the site, it does not hard code https, but simply get the site address from WordPress.

    Using BuddyPress Noveau.

    After a user click the “Complete Sign Up” button this message is shown: You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.

    1) How do I change that message?
    2) How do I change the page title from “Check Your Email To Activate Your Account!” to something different?

    WP version 5.1.1
    BuddyPress version 4.2.0

    I have an “All Users” group to which all registered users are added. Is there a way to specify that, when a user registration is approved that the user is automatically added to a specific group?

    WP version 5.1.1
    BuddyPress version 4.2.0

    #304261
    jannmirch
    Participant

    I just noticed this very odd issue on this page: https://westchestermarketingcafe.com/rsetasc/groups/

    We are trying to set up Restricted Communities whereby the Groups are private but allow users to request membership via the buttons. Some of the groups have the buttons but two, including the new “Testing IEP” do not.

    I’ve tested with Twenty Sixteen and the issue remains. I have turned off/turned back on all the plugins without any luck.

    We are using WP 5.1.1, BuddyPress 4.2.0, bbPress 2.5.14.

    What am I missing?!

    #304257

    In reply to: Can not create menues

    andhi1
    Participant

    No, I didn’t mean your side. I meant that the configuration of BuddyPress is complicated for me!
    Maybe because I am from Sweden

    #304256

    In reply to: Can not create menues

    Venutius
    Moderator

    Yep BuddyPress can be, it’s why I set up that site, unless you are saying my site is complicated

    #304250

    In reply to: Can not create menues

    Venutius
    Moderator

    in the menu’s page, check the Screen Options at the top right of the page, BuddyPress is probably not selected.

    #304247
    Venutius
    Moderator

    I’m not sure there is an ecommerce plugin that supports BuddyPress out of the box. However most have shortcodes that allow a seller to display their shop. I guess what I’d need to know is how you want your buddypress site to work. I recently helped someone looking to set up ecommerce via groups where the group admin could set up a shop for the group. Basically we set up a post assigned to the group and let the user add their shotcodes there and made sure the post had it’s own Shop group menu item that linked to the post.

Viewing 25 results - 5,026 through 5,050 (of 68,987 total)
Skip to toolbar