Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 4,926 through 4,950 (of 69,042 total)
  • Author
    Search Results
  • #304744
    peufa
    Participant

    Hello everyone !

    First of all, thank you for this beautiful extension! We have been using Buddypress on our platform for some time now and we would have some questions (WP v5.1.1 & BP v4.2.0 with “Heritage”).

    • Through an Snippet, how can we view a particular Member only? We would need to recover his Avatar + his Nickname.
    • What PHP can we use to display a dynamic link to a Player’s Profile? Let me explain: We use Event Listings on our Site and we would need to display the Member’s Nickname + a link to his Profile automatically.

    Thank you in advance for your answers !
    Peufa, for Jeu COOP (https://www.jeu-coop.fr).

    #304742
    Venutius
    Moderator

    Yep BuddyPress uses the WordPress user database, so creating a BuddyPress user automatically creates a WordPress user.

    Are the users receiving the activation link and are they trying to login after activating their accounts?

    Venutius
    Moderator

    Hi there,

    To centre the title you can use the following css slector:

    #sitewide-notice strong {
        text-align: center;
    }

    However currently it’s not possible to separate the two paragraphs. This is due to the text going through the wp_filter_kses() function which is removing the <p> tags from the text thus turning two paragraghs into a single paragraph.

    You could ask for an enhancement in Trac, to change this to an alternative function bp_messages_filter_kses() this would allow you to add a filter to allow <p> in the sitewide notice content. If you raise the ticket I’ll add this information as a suggestion to the devs.

    Venutius
    Moderator

    I forgot one, you also need to remove the option from the Admin>>My Profile page, if you allow admin access for users:

    
    add_action( 'bp_members_admin_xprofile_metabox', 'bpex_remove_user_profile_metabox', 20 );
    
    function bpex_remove_user_profile_metabox() {
    	
    	if ( ! is_admin() ) {
    		return;
    	}
    	
    	$user = wp_get_current_user();
    	$user_roles_array = $user->roles ? $user->roles : array();
    	
    	foreach ( $user_roles_array as $key => $role ) {
    		if ( $role == 'subscriber' ) {
    			remove_meta_box(
    				'bp_xprofile_user_admin_avatar',
    				buddypress()->members->admin->user_page,
    				'side'
    			);
    		}
    	}
    }
    Venutius
    Moderator

    This one is not that straight-forward there is a filter you can use as follows:

    function bpex_role_disable_avatar_uploads( $default ) {
    	
    	$user = wp_get_current_user();
    	$user_roles_array = $user->roles ? $user->roles : array();
    	
    		foreach ( $user_roles_array as $key => $role ) {
    			if ( $role == 'subscriber' ) {
    				$default = true;
    			}
    		}
    		
    		return $default;
    	
    }
    
    add_filter( 'bp_disable_avatar_uploads', 'bpex_role_disable_avatar_uploads' );

    However this causes BuddyPress to simply show the user that they can upload their profile image via gravatar, and I’m afraid you can’t switch this off.

    So the alternative is to remove the Change Photo tab and admin-bar menu item:

    add_action( 'bp_setup_nav', 'bpex_remove_change_profile_photo_tab', 50 );
    add_action( 'bp_setup_admin_bar', 'bpex_admin_bar_remove_change_profile_photo', 50 );
    
    function bpex_remove_change_profile_photo_tab() {
    	
    	if ( ! bp_is_user_profile() && ! bp_is_user_activity() && ! bp_is_user() && bp_displayed_user_id() != wp_get_current_user() ) {
    		return;
    	}
    	
    	$user = wp_get_current_user();
    	$user_roles_array = $user->roles ? $user->roles : array();
    	
    	foreach ( $user_roles_array as $key => $role ) {
    		if ( $role == 'subscriber' ) {
    			bp_core_remove_subnav_item( 'profile', 'change-avatar' );
    		}
    	}
    
    }
    
    function bpex_admin_bar_remove_change_profile_photo() {
    	
    	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;
    	}
    	
    	$user = wp_get_current_user();
    	$user_roles_array = $user->roles ? $user->roles : array();
    	
    	foreach ( $user_roles_array as $key => $role ) {
    		if ( $role == 'subscriber' ) {
    			$wp_admin_bar->remove_menu( 'my-account-xprofile-change-avatar', 'my-account-xprrofile' );
    		}
    	}
    
    }

    You’d need to put this in your child themes functions.php or a bp-custom.php file in the plugins directory.

    #304728
    shanebp
    Moderator
    btees
    Participant

    I’ve added Categories to Activities per this thread: https://buddypress.org/support/topic/add-category-field-to-buddypress-activity-4/

    I see these categories turning up in the wp_bp_activity_meta table. I’m just not sure how to now filter my activity loop by these categories now.

    Ultimately, I want a selection in the users profile to dictate what’s in their feed (e.g. only show me activity from my friends OR about this category) I’ve already got the activity feed filter by friends using: https://buddydev.com/support/forums/topic/friends-only-activity-stream/#post-1345

    But right now I’m just looking for a steer on how to filter the activity loop. I’ll hopefully figure out how to make it a user option from there!

    Riolec
    Participant

    Halo,

    Can i decide who can or cannot change the profile picture based on user role?
    Is there any plugins for this or code change?

    Thank you in advance.

    note: i use wordpress Version 5.1.1 and buddypress Version 4.2.0

    #304718
    Venutius
    Moderator

    To add the feature where people can post updates to the user would involve adding the activity What’s New form to the the users all activity page. It’s an odd quirk of BuddyPress that the standard profile based activity update form only displays when the viewing user is the profile owner.

    #304713

    In reply to: Lightbox profile image

    Venutius
    Moderator

    You’d need to load the lightbox javascript of your choice and change the link info depending on which lightbox you want to use. It’s going to be different depending on which lightbox you choose to use. You may need to add additional Javascript.

    I guess if you installed WP Featherlight then you should just need to add the featherlight attributes as specified in the plugin readme. This isn’t specifically a BuddyPress question, it’s a lightbox question and it’s not something I’ve ever done so you might be better off asking the WP Featherlight developer if you are struggling with their instructions.

    #304711
    Venutius
    Moderator

    Hi there, some answers:

    1. You can change the layout of profiles by overloading the profile files and css, see: https://codex.buddypress.org/themes/theme-compatibility-1-7/theme-compatibility-2/ it’s possibly a bit advanced for you right now but all the files in the plugins/buddypress/bp-templates/your-bp-theme/buddypress can be copied, modified and loaded from your child theme directory. Similarly you can overload the css to make styling and layout changes.

    1b. The default is for horizontal navigation unless you’ve changed it in Customizer>>BuddyPress.

    2. The BuddyPress extended profile is editable from the front end, and avatar too. It’s only the wordpress profile that’s enditable in admin and most BP sites don’t use that as t’s really set up for authors.

    3. I recently posted the code to combine all the profile activity feeds into 1, https://buddypress.org/support/topic/how-to-combine-activity-tabs-to-one/

    4. https://wordpress.org/plugins/cb-change-mail-sender/

    5+6 are bbPress questions, for the best answer you should post on their forum https://bbpress.org/forums/

    7. Assuming you have set up the groups directory page and enabled group creation by users in Settings>>BuddyPress>>Options, users will have the option to create groups on the Groups directory page and also from the Groups menu of the WordPress toolbar ( top right hand side of the screen, hover over your avatar image, drop down will appear one option will be groups.

    #304701
    Venutius
    Moderator

    Which buddypress_functions.php file are you talking about? I’d have thought you’d put it in your themes functions.php file or a bp-custom.php file located in the plugins directory.

    Also I’d load it in the action hook ‘bp_setup_nav’, not ‘wp’.

    #304688
    yucatanmercado
    Participant

    Well, I even tried to switch off Multisite installation of Buddypress and leave it in http://www.yucatanmercado.com but the problem still exist. Only one language can be displayed in English or Spanish.

    Any solution?

    Maybe there is any file to change it….

    #304687
    yucatanmercado
    Participant

    Unfortunately, there is still the same problem.
    All bilingual pages work only the Buddypress bilingual pages do not work.
    Nothing helped even the new installation, different changing of permalinks.
    It is strange because all work properly on a single page installation.
    If anyone can help, it would be great…….

    Thank you very much for all your help……

    cyclotron26
    Participant

    Hi,
    We’re working on launching a new membership site.
    Themes: Boss / SocialLearner
    Other main plugins:
    BuddyPress (Version 4.2.0)
    bbPress (Version 2.5.14)
    LearnDash (Version 2.6.4)
    Memberium (Version 2.84)

    We migrated users into WordPress via the Rest API from another system.

    I noticed that the nickname on the Extended Profile is being deleted and being copied over into the First Name field when we switch from the Extended Profile tab to the Profile tab when viewing the User in the WP Admin dashboard.

    Here are the steps:
    1. Open user’s Extended profile in new tab
    2. Set Nickname and hit update, then verify it saved.
    3. Click on the Profile tab.
    4. Now the Nickname is overwritten in the First Name field (which it should not) and saved in the Nickname field on the Profile tab.
    5. Click back to the Extended Profile tab.
    6. Nickname is empty
    7. Click back to the Profile tab
    8. The original First Name is now visible in the First Name field and Nickname is still populated with the new nickname.

    We can’t figure out what’s happening and need help please! Thank you for any assistance.

    yucatanmercado
    Participant

    Hello,

    Please be so kind and help me with my huge problem ( I hope that would be small for you )

    1. I installed BuddyPress on my site. The page uses qTranslete X. All was almost good. The two versions were accessible. The Buddypress with Youzer worked quite good.
    2. Then I created Multisite (folders)…………….and after 24 hours of hard work, I have only the English version, the Spanish pages are empty.
    3. Please be so kind and tell me what shall I do to get the visibility of two language versions. The rest of the pages switch from English to Spanish……without problems.
    4. The page name is http://www.yucatanmercado.com . The page work in Multisite enviroment.

    Thank you very much for all your help……

    #304671
    Venutius
    Moderator

    Hi there, BuddyPress uses the WordPress login page, so it sounds like it’s working correctly. Unless I’m missing something?

    #304670
    Alok Shrestha
    Participant

    Hi, @venutius.

    Thank you for your response.

    My problem is that the emails are delayed most of the times and sometimes I don’t receive them.

    I tried everything you said above. I deactivated plugins, reinstalled BP Emails. But still, they are the same. Either delayed or not sent.

    I am using SiteGround as a server. How can I get it fixed?

    I figured this is the issue in BuddyPress from another user also. The activation email not being sent! Is it BuddyPress’s major issue?

    Thanks!
    Alok

    #304669
    #304668

    In reply to: Lightbox profile image

    Venutius
    Moderator

    I think it would be possible yes. If you look at plugins/buddypress/bp-templates/your bp theme/buddypress/members/members-loop.php for example, you can see the link for the members avatar being created for the members directory page.

    Most lightboxes use a data tag to identify that the link is to open in a light box, so you could overload this file and replace the href with the link to the full size avatar and add the data tag as required.

    You’d then need to add the Javascript for the lightbox, probably in a plugin and together that should work.

    There’s nothing off the shelf that does this though.
    However that would stop the current default of clicking on the avatar taking you to the members profile. That might be a problem for you but I guess you could simple add another button to visit the members profile.

    #304666
    wasanajones
    Participant

    what is the face slap emoji ?

    I have torn my site apart — reinstalling, deleting, researching, database row by row, 20 different SQL searches… completely and utterly defeated… I finally come to the conclusion that despite the site crashing during some settings changes, that maybe this isn’t really a conflict/data corruption buddypress issue… its a wordpress issue… so simple… it is hard to admit

    Admin > Settings > Discussion > Show Avatars
    (who knew ‘show avatars’ unchecked would remove the profile photo editor completely)

    really…

    #304665

    In reply to: Can not blog in group

    Venutius
    Moderator

    We only do BuddyPress support here, for other plugins you should raise a request on their wordpress forum.

    #304659
    shanebp
    Moderator

    This uses the activity loop as an example, but the approach could be modified for the members loop.

    Add custom filters to loops and enjoy them within your plugin

    #304653

    In reply to: Can not create groups

    Venutius
    Moderator

    Have you got a link to your groups page?

    Also, there should be a create groups option in the BuddyPress admin bar dropdown menu. – on your site, hover your mouse over your avatar on the top right side of the screen, a drop down menu should appear, in this list there should be a Groups option, this should open to include a Create Group option.

    #304652
    andhi1
    Participant

    Since I had a computer crash I can no longer find where I create new groups.
    I now created a menu from BuddyPress named Groups, but there is no option in front end to create groups.

    Best regards
    Anders H
    Sweden

Viewing 25 results - 4,926 through 4,950 (of 69,042 total)
Skip to toolbar