Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 4,926 through 4,950 (of 68,987 total)
  • Author
    Search Results
  • #304806

    In reply to: Buddypress Users

    shanebp
    Moderator
    /*
     * Paste in your theme functions.php or in bp-custom.php.
     * Load the site in a browser
     * Then REMOVE this function from your theme functions.php or bp-custom.php.
    */
    
    function buddypress_add_last_activity() {
    
      $members =  get_users( 'fields=ID' );
      // $members =  get_users( 'fields=ID&role=subscriber' );
      
      foreach ( $members as $user_id ) {
            bp_update_user_last_activity( $user_id, bp_core_current_time() );
      }
    
    }
    add_action('bp_init', 'buddypress_add_last_activity' );
    #304801
    alemantico
    Participant

    Hi Venutius,

    hmmm … meanwhile I tried to figure the file you suggested; Under the theme files, I foud the “function.php” – file (screenshot: https://ibb.co/YDw7LN5). But there’s no buddypress menu, where I could add this code snipped. Maybe I’m totally wrong here! Please, could you be more precise, so I could follow your advise?

    thank you very much in advance and best Regards!

    #304798
    alemantico
    Participant

    Hi Venutius, thank you for your reply! I meant the file, inside the buddypress files directory (screenshot: https://ibb.co/bgFfSgr).
    About you’re saying:

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

    Did you mean changing the line
    add_action( 'wp', 'groups_subnav_hook', 2 );
    to
    add_action( 'bp', 'groups_subnav_hook', 2 ); ?

    Thanx very much for help (y) !

    #304796
    Klaus 1888
    Participant

    I am new to Buddypress and there is a question. I have created a wordpress site and wanted this to became a membership/club site. I use a theme named Astra and tried to style special Theme styles like header with background image etc. But if i tried it on Buddypress pages (Aktivity for eg) i failed. What i am doing wrong

    #304790
    Venutius
    Moderator

    If you check out my website you should see I’ve written a lot about the basics of BuddyPress, you should check it out, it should answer a lot of questions.

    When you enable the BuddyPress Groups component you will be able to set up a Groups page, when this is viewed it will automatically show a Create Group link.

    If you install bbPress you can enable group forums, that way your users get the option of addinga forum to their group.

    #304788
    Venutius
    Moderator

    I’d first try switching your BuddyPress theme to BP Legacy in Settings>>BuddyPress>>Options. and see if the menu appears

    #304775
    Venutius
    Moderator

    Ah ok, my hunch was wrong, hope you found it an interesting diversion. Have you tried deactivation all plugins apart from BuddyPress to see if there might be a conflict causing this?

    #304754
    skiifox
    Participant

    Yes users receive and use the activation link, I can see that they, created and activated the account but then they cannot connect.

    And now I have a new problem, the register page isn’t showing on the menu where I added it.
    I could add a “normal” register link but it will still be shown after loggin, if would prefer to make the buddypress one work.

    Thanks for your help !

    #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?

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