Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 5,326 through 5,350 (of 68,915 total)
  • Author
    Search Results
  • MorgunovVit
    Participant

    Hi, everybody!

    Could you help me to set set display_name = xprofile ‘first_name’ + ‘last_name’ at the user registration?
    I’ve tryed this code:

    
    function change_user_defaults($user_id) {
    	$user = get_userdata($user_id);
            $mv_first_name = xprofile_get_field_data(  26,  $user_id ); 
            $mv_last_name = xprofile_get_field_data(  11,  $user_id );  
            $name = $mv_first_name . ' ' . $mv_last_name; 
            $mv_login = $user_id . stristr($user->user_email, '@', true); 
            if ($name !== ' '){
                $args = array(
                        'ID' => $user_id,
                        'display_name' => $name
                );
                wp_update_user( $args );
            }
    }
    
    add_action( 'xprofile_updated_profile', 'change_user_defaults' ); /* but this works only after manual BuddyPress profile update */
    
    /* I also tried these hooks too */
    add_action( 'bp_core_signup_user',      'change_user_defaults' ); 
    add_action( 'bp_core_activated_user',   'change_user_defaults' );
    /* but it didn't work at the user registration  */
    
    #302505
    Renato Alves
    Moderator

    Even with the BuddyPress CLI, this isn’t feasible. The best option I can think of is you creating a custom command or script to iterate the users and add and accept each other’s friendship requests.

    #302488
    MorgunovVit
    Participant

    Hi, Josh!
    I am trying to solve a similar problem, but only I need to make the display_name = First_Name + Last_Name fields of the BuddyPress xprofile.

    I have been tormenting for a long time and can’t find a suitable hook that firing when the xprofile fields First_Name and Last_Name have already been written in the database.

    #302485
    shanebp
    Moderator

    If you are not seeing code now in your theme then you could create a copy of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile.php
    Place it in the same theme location you mentioned above and make your edits.

    If you are using the BP Nouveau template pack, then make a copy of this file:
    buddypress\bp-templates\bp-nouveau\buddypress\members\single\profile.php

    #302484
    mbamutuelle
    Participant

    I forget to tell you my conf :

    Version 5.0.3 | Unyson 2.7.21 | Woffice 2.8.0.3
    Buddypress 4.1.0 | BuddyPress Xprofile Custom Field Types 1.0.6

    #302477
    ashley72
    Participant

    I can add a bit more to this. I have checked my wp_mailfunction on my wordpress. Using a simple php script.https://www.butlerblog.com/2012/09/23/testing-the-wp_mail-function/

    The mail is sending out as expected for several different email addresses I tried using wp_mail. So if BuddyPress uses the wp_mail function – the default installation must have configuration problem.

    #302476
    ashley72
    Participant

    I have the same problem. The lack of community support makes me feel this plugin may not be worth the effort.

    When you check the manage signups the new registered user is awaiting to be activated. It shows that an email has been sent. After you try and resend the activation email. It does trigger and add to the count – showing two emails sent. So it would seem most of the functionality is working. If I deactivate the plugin, my wordpress email notifications is working. I’ve checked the spam folder, and even tried non-gmail accounts and still getting no activation emails at all. However, I have received a buddypress notification when another member does a mention. So it appears some kind of small bug is the problem.

    Does any of the core developers for BuddyPress check theses support forums?

    #302465
    shanebp
    Moderator

    The easiest approach, imo, would be to remove the current member search input from the members directory.
    For example, create an overload of this file and delete the code re member search:
    buddypress\bp-templates\bp-legacy\buddypress\members\index.php

    Then get this plugin: BP Profile Search
    And configure a custom member search that only includes the fields you want.

    #302456
    shanebp
    Moderator

    These are the forums for just the BuddyPress plugin.
    Please direct your questions about LearnPress – BuddyPress Integration to the creators of that plugin.

    Renato Alves
    Moderator

    BuddyPress has a CLI command now you can use.

    wp bp tool repair friend-count

    #302449
    msteimann
    Participant

    I think you’ve identified a bug with the registration form, it misleadingly gives the impression that the visibility for the Name field can be changed. Wuld you mind raising a bug report on https://buddypress.trac.wordpress.org/ ? Also you can use the same link to raise your feature request.

    Thank your for looking into this, Venutius. Good to know that I can now raise a bug report, and a feature request as well. Thank you and your team for putting so much effort into this really great plugin!

    #302445
    Venutius
    Moderator

    I think you’ve identified a bug with the registration form, it misleadingly gives the impression that the visibility for the Name field can be changed. Wuld you mind raising a bug report on https://buddypress.trac.wordpress.org/ ? Also you can use the same link to raise your feature request.

    #302443
    shanebp
    Moderator

    If you are not an experienced developer, you may be better off hiring such a person.

    Until you write some code and ask specific questions about it, here are some general pointers…

    Take a look at how the activities are restricted on a group activity page.

    There are some codex pages that provide info:

    Add custom filters to loops and enjoy them within your plugin

    Activity dropdown filters in templates

    #302438
    msteimann
    Participant

    Thanks for your quick reply, Venutius!

    I have tried the WP 2015 Theme and got the same results. So I switched back to KLEO and noticed, that the xProfile fields do change to the desired visibility settings, AFTER the user clicks the SAVE SETTINGS button. So I guess I was confused by the fact that BEFORE you hit the save button there is a misleading visual feedback (the visibility term does not alter to the according setting the user has just changed it to, it still displays the same value as before).

    Could this be changed in the next release?

    My first problem still remains: the „change display name visibility option“ is displayed beneath the name field on the user Registration page. This doesn’t make sense, if the name’s visibility throughout BuddyPress network is mandatory. How can I get rid of this line? Does this line and it’s user changeable visibility options really not appear on a default install?

    In the WP Dashboard I cannot change the options for the primary Name field. Only the fields under the details tab can be altered by admin and set to be visibility-changeable by the user. (Hope you understand what I try to say 😉

    Regards,
    Martin

    Hide visibility option on registration page?

    #302425
    artluverr
    Participant

    I had to disable my child theme temporarily for some other issues after a recent theme/wordpress update and have lost some of my customizations. Becasue of this I now have the same issue but I don’t want it to show in the directory. I managed to remove it from my profile pages. I am using bp legacy though not nouveau. I tried your snippet with the snipit plugin and then tried it by editing the snipet to say buddypress_legacy but still not working. Any thoughts?

    I also noticed that now on the right column people’s names wrap right like they are doing on that page if the screen is full? Any snipits for that that I can use until I get my child theme back running properly?

    liammitchell
    Participant

    Okay looks like I can extend BP_Component which can then have rewrites, screens and actions.

    How To Create A Custom BuddyPress Component In A Plugin

    BP_Component

    Great 🙂

    #302418
    jstande
    Participant

    If the following is to redirect Registration from BP to WP, what would redirect from BP to [Peepso_Register] ? And exactly where would I put it?

    (Any reason why nobody has developed options to turn everything on or off in BP since it is so integrated with other themes and plugins?)

    /*disable registration bp */
    function my_disable_bp_registration() {
    remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
    remove_action( ‘bp_screens’, ‘bp_core_screen_signup’ );
    }
    add_action( ‘bp_loaded’, ‘my_disable_bp_registration’ );

    add_filter( ‘bp_get_signup_page’, “firmasite_redirect_bp_signup_page”);
    function firmasite_redirect_bp_signup_page($page ){
    return bp_get_root_domain() . ‘/wp-login.php?action=register’;
    }

    Version 4.1.0 BuddyPress
    Version 5.0.3 WordPress

    Home Default

    #302412
    shanebp
    Moderator

    I have even modified the original message in bp-core-functions.php

    There are 4 instances of that string in that file. Did you change all of them ?

    As you should know – editing core files is not a good idea.
    That string is in the buddypress.pot file.
    And it seems to be in the buddypress-fr_FR files.

    https://translate.wordpress.org/projects/wp-plugins/buddypress/dev/fr/default?filters%5Bterm%5D=complete+the+activation&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=desc

    So I do not know why you are having issues.
    Have you tried using the Repair Tool – …/wp-admin/tools.php?page=bp-tools > Reinstall emails (delete and restore from defaults).

    #302407
    shanebp
    Moderator

    page-bp-public.php is not in the BuddyPress plugin.

    $query->set('post_type', 'topic');
    ‘topic’ post types are created and handled by bbPress.

    #302386
    6eotech
    Participant

    and me i need install buddypress for my blog

    #302385

    In reply to: Category & Tag

    shanebp
    Moderator

    This is a BuddyPress forum.
    Questions specific to WordPress should be asked on the WP support forums.

    #302375
    shanebp
    Moderator

    So there is an @ at the beginning of a user_nicename ?
    BuddyPress does not typically do that; this seems more like a WP issue.

    The ‘2’ usually means that the name was not unique and so a 2 was added.
    Usually, the user_nicename is the same as the user_login so that it is unique.

    Did you check your database to see if all login names are the same as their nicenames ?
    Do you have some other plugin or custom code that manipulates or assigns either field?

    #302366
    Venutius
    Moderator

    Hi there, BuddyPress does not come with forums, for that you’d need a plugin such as bbPress.

    #302364
    shanebp
    Moderator

    Have you tried updating BuddyPress ? The current version is 4.1

    Can you provide an example of a link that does not work?
    And an url to a user profile ?

    #302360
    shanebp
    Moderator

    BuddyPress does not have a function called bb_notification_count

    Are you using a BuddyBoss plugin or theme?
    If so, that is where the issue is and you should contact BuddyBoss with your question.

Viewing 25 results - 5,326 through 5,350 (of 68,915 total)
Skip to toolbar