Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 7,326 through 7,350 (of 94,542 total)
  • Author
    Search Results
  • monirulbd
    Participant

    Hi,

    I want to send my users to the top of the page after they click on “Save changes” when editig their profile informations in buddypress. As I don’t want to modify the plugin’s core files, I looked for filters and found one in buddypress’ “functions.php”.
    The thing is I absolutely don’t understand how this works. I spent 4 hours trying to sort this out but I’m giving up now.(I do understand how generic filters work though)
    Here are the pieces of codes I have been looking at :

    FUNCTIONS.PHP

    function bp_nouveau_get_submit_button( $action = ” ) {
    if ( empty( $action ) ) {
    return false;
    }

    /**
    * Filter the Submit buttons to add your own.
    *
    * @since 3.0.0
    *
    * @param array $value The list of submit buttons.
    *
    * @return array|false
    */
    $actions = apply_filters( ‘bp_nouveau_get_submit_button’, array(
    ‘members-profile-settings’ => array(
    ‘before’ => ‘bp_core_xprofile_settings_before_submit’,
    ‘after’ => ‘bp_core_xprofile_settings_after_submit’,
    ‘nonce’ => ‘bp_xprofile_settings’,
    ‘attributes’ => array(
    ‘name’ => ‘xprofile-settings-submit’,
    ‘id’ => ‘submit’,
    ‘value’ => __( ‘Save Changes’, ‘buddypress’ ),
    ‘class’ => ‘auto’,
    ),

    ) );

    if ( isset( $actions[ $action ] ) ) {
    return $actions[ $action ];

    }

    TEMPLATE TAGS.PHP

    function bp_nouveau_submit_button( $action ) {
    $submit_data = bp_nouveau_get_submit_button( $action );
    if ( empty( $submit_data[‘attributes’] ) || empty( $submit_data[‘nonce’] ) ) {
    return;
    }

    if ( ! empty( $submit_data[‘before’] ) ) {

    /**
    * Fires before display of the submit button.
    *
    * This is a dynamic filter that is dependent on the “before” value provided by bp_nouveau_get_submit_button().
    *
    * @since 3.0.0
    */
    do_action( $submit_data[‘before’] );
    }

    $submit_input = sprintf( ‘<input type=”submit” %s/>’,
    bp_get_form_field_attributes( ‘submit’, $submit_data[‘attributes’] ) // Safe.
    );

    // Output the submit button.

    #279950
    monirulbd
    Participant

    Hi,

    When clicked on the activation link in the mail it takes you to the site only to have it say: ‘Please provide a valid activation key.’

    After that is an input field for an activation key. If you copy the key from the url and place it into the input field and press submit it works. Obviously, it should do this automatically and it doesn’t.

    The issue is not theme nor plugin related as it still occurs when the default theme is activated and only the buddypress plugin is activated. All the above mentioned versions are updated to the latest.

    site: https://www.poke-spot.com

    Create an account here to replicate issue: https://www.poke-spot.com/sign-up

    Thanks in advance.

    cyanidevf
    Participant

    Hello,
    I recently passed to buddypress with youzer plugin but i have a problem about subscribe notification.
    For each member, i receive 2 messages notification for tell me a new member signup to my site.
    But it’s really annoying when u have more than 100-150 subscription per day because u receive more than 300 messages ..

    I want to know where i can disable the signup notification mail ?

    Thanks u.

    lookingahead
    Participant

    P.S.: apparently this is NOT a bbpress issue; they said it is something that buddypress is responsible for, because these are forums that are associated with user groups in buddypress.

    bd146082-ovh
    Participant

    Hi,

    I want to send my users to the top of the page after they click on “Save changes” when editig their profile informations in buddypress. As I don’t want to modify the plugin’s core files, I looked for filters and found one in buddypress’ “functions.php”.
    The thing is I absolutely don’t understand how this works. I spent 4 hours trying to sort this out but I’m giving up now.(I do understand how generic filters work though)
    Here are the pieces of codes I have been looking at :

    FUNCTIONS.PHP

    function bp_nouveau_get_submit_button( $action = ” ) {
    if ( empty( $action ) ) {
    return false;
    }

    /**
    * Filter the Submit buttons to add your own.
    *
    * @since 3.0.0
    *
    * @param array $value The list of submit buttons.
    *
    * @return array|false
    */
    $actions = apply_filters( ‘bp_nouveau_get_submit_button’, array(
    ‘members-profile-settings’ => array(
    ‘before’ => ‘bp_core_xprofile_settings_before_submit’,
    ‘after’ => ‘bp_core_xprofile_settings_after_submit’,
    ‘nonce’ => ‘bp_xprofile_settings’,
    ‘attributes’ => array(
    ‘name’ => ‘xprofile-settings-submit’,
    ‘id’ => ‘submit’,
    ‘value’ => __( ‘Save Changes’, ‘buddypress’ ),
    ‘class’ => ‘auto’,
    ),

    ) );

    if ( isset( $actions[ $action ] ) ) {
    return $actions[ $action ];

    }

    TEMPLATE TAGS.PHP

    function bp_nouveau_submit_button( $action ) {
    $submit_data = bp_nouveau_get_submit_button( $action );
    if ( empty( $submit_data[‘attributes’] ) || empty( $submit_data[‘nonce’] ) ) {
    return;
    }

    if ( ! empty( $submit_data[‘before’] ) ) {

    /**
    * Fires before display of the submit button.
    *
    * This is a dynamic filter that is dependent on the “before” value provided by bp_nouveau_get_submit_button().
    *
    * @since 3.0.0
    */
    do_action( $submit_data[‘before’] );
    }

    $submit_input = sprintf( ‘<input type=”submit” %s/>’,
    bp_get_form_field_attributes( ‘submit’, $submit_data[‘attributes’] ) // Safe.
    );

    // Output the submit button.
    if ( isset( $submit_data[‘wrapper’] ) && false === $submit_data[‘wrapper’] ) {
    echo $submit_input;

    // Output the submit button into a wrapper.
    } else {
    printf( ‘<div class=”submit”>%s</div>’, $submit_input );
    }

    Now, what I want to do is just add for example “#top” to the URL triggered by the submit button so that the user goes back to the top even if he/she didn’t fill some mandatory fiels and tha the form is not really “sent”.

    Thanks in advance 🙂

    #279799

    In reply to: Newbie question

    Bit Boy
    Participant

    Hi,
    BuddyPress works on top of WordPress to add community/social features. The integration is almost seamless.

    Now to answer your questions:-
    1. will my members have to login a second time to use BuddyPress?
    Is the login required by WordPress account? if yes, They will not need to login again.

    2. Will that they then have two accounts to deal with?
    No, It is only one account.

    Give it a try, BuddyPress should be simple enough to use.

    Best Regards
    B

    #279798

    Topic: Newbie question

    in group forum Installing BuddyPress
    orientsee
    Participant

    I am not clear how BuddyPress works with a site. If I have member only pages (which require a login) where I intend to install BuddyPress, will my members have to login a second time to use BuddyPress?
    Will that they then have two accounts to deal with? Most of my users are older and not tech savvy. They need things to be simple. They will not self register. We will have a controlled set of users not open to outsiders.

    #279797
    corsi159
    Participant

    Hello Paul,

    Thank you for your reply.

    I’ve seen in this old topic that people had, in the time, similar issues :

    BuddyPress Email Notification Ignoring SMTP Server Settings?

    I thus created a bp-custom.php file in my plugin directory, and added the following to it :
    add_filter(‘bp_email_use_wp_mail’, ‘__return_true’);

    And now, Buddypress is sending the e-mails through the WP SMTP Config.

    I am surprised that I had to do this. This is not ideal, as my emails are now sent in plain text (not html)…

    #279782
    Paul Wong-Gibbs
    Keymaster

    WP Mail SMTP seems to be a well-written plugin. I’ve taken a quick look at its code, and how it affects what WordPress does, and it looks like BuddyPress – in theory – should work with it. However, if you say it doesn’t, I don’t know why – you’d have to spend time debugging what is going on.

    If you know some PHP and basic WordPress development, I can give you some pointers (e.g. start looking at the phpmailer_init hooks and how both plugins add to it).

    #279781
    Paul Wong-Gibbs
    Keymaster

    No need to try to un-hook where BuddyPress adds it. The body_class filter passes an array of class filters. I’d just filter it, and find and unset the no-js class you don’t want.

    #279780

    In reply to: https

    Paul Wong-Gibbs
    Keymaster

    Nope. Try it and if you find an issue with BuddyPress after doing so, then start a discussion.

    #279779
    Paul Wong-Gibbs
    Keymaster

    @whoweez This old code sample does nothing much at all. I’m not sure what the intent was, this is basically debugging. To answer your specific question:

    I thought “__return_false” on “bp_email_use_wp_mail” should prohibit any BP emails from being sent in the first place as the new class should handle the email sending process…?

    If that filter returns true, then BuddyPress generates a plain text version of the email, and calls WordPress’ wp_mail() function. By default, this is false, but it returns true if wp_mail_content_type() has been configured for HTML, or if wp_mail() has been redeclared (it’s a pluggable function).

    That last bit is key. A lot of email plugins for WordPress re-declare wp_mail(), so for BuddyPress to use those plugins, the default behaviour is to send that plain text version of that email.

    If bp_email_use_wp_mail return false, then it creates a BP_Email_Delivery object, which is what that second filter is changing, which delivery class BuddyPress uses. Inside that class’ bp_email() method is where you would create a custom integration with your Sendmail plugin (or however you approach that integration).

    #279778
    Paul Wong-Gibbs
    Keymaster
    #279777
    AiratTop
    Participant
    FILE: /var/www/test.site/wp-content/plugins/buddypress/cli/features/bootstrap/utils.php
    ---
    FOUND 1 ERROR AFFECTING 1 LINE
    --- 
    426 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    BuddyPress 3.2.0
    PHP Compatibility Checker 1.4.6

    #279773
    whoweez
    Participant

    Hi @djpaul,

    I’m playing around with the above code, but adding it to the functions.php file does not prohibit the buddypress email from sending!?

    Furthermore, using sendgrid’s plugin and provided transactional template ID field does not solve anything as only the template without any buddypress/or wordpress related email content is sent – due to no relational placeholders set.

    My aim is to use a custom transactional template at sendgrid for all wordpress and buddypress related content, but from some of your conversations on this I thought “__return_false” on “bp_email_use_wp_mail” should prohibit any BP emails from being sent in the first place as the new class should handle the email sending process…?

    Could you perhaps give more guidelines as to why buddypress emails are still sending with this implemented:

    add_filter( 'bp_email_use_wp_mail', '__return_false' );
    add_filter( 'bp_send_email_delivery_class', function( $delivery_class ) { 
        return 'Implementwpemailbp'; 
    } );
    class Implementwpemailbp implements BP_Email_Delivery{
      public function bp_email(BP_Email $email){
      //add_filter('wp_mail_content_type', 'set_html_content_type');
    
      //wp_mail($to, $subject, $message, $headers = '', $attachments = array())
    
      //remove_filter('wp_mail_content_type', 'set_html_content_type');
      var_dump($email);
      }
    }

    Really appreciate your help 🙂

    Kind Regards,
    Wzz

    corsi159
    Participant

    Hello,

    I configured the WP Mail SMTP plugin, and tested it properly with their embedded test-email. This plugin is linked to a Gmail account. Whenever I send a mail, I can see a trace of it in my Gmail “sent box”.

    But when someone registes to my site (using buddypress), I can see that the registration mails are sent through the old mail config (via my web host), not through WP Mail SMTP.

    Is there anything I have to do to “tell” Buddypress to use WP Mail SMTP?

    I’m using :
    – Buddypress 3.2.0
    – WP Mail SMTP 1.3.3
    – WordPress 4.9.8

    My website : http://www.merciki.be

    Thanks in advance for your help!

    #279771
    shanebp
    Moderator

    BuddyPress does not include member galleries.
    You should submit your issue to the creators of the plugin or theme that you are using for member galleries.

    #279762
    lucky2bhere
    Participant

    Three times now when deleting pending membership requests (using BuddyPress hosted on Bluehost) all of the images in all of the member galleries were deleted … with no trace. Any suggestions?! Thanks!

    The page I need help with: http://eternalgarage.com

    mfonabel
    Participant

    Please I would appreciate any help. I have tried to fix this no way. I have search, it seems no one is having this problem.

    When you click on a username, it takes you to the profile but on the profile, there are buttons under, Home and view. It automatically goes to home and it is blank. You have to click on view before you see member bio.

    I want it to go directly to showing member info.

    Here is a screenhsot of how it looks: https://prnt.sc/ld0xqr

    As you can see, the profile tab is active but there is a home under it aside from the home tab on the main menu.

    I have changed to Buddy press theme Legacy and Nouveau, still same.

    I have used the appearance > customize >Nouveau still the same.

    How do I get ride of that home there and let it just display the profile of the person instead of blank?

    mfonabel
    Participant

    Please I would appreciate any help. I have tried to fix this and search, it seems no one is having this problem.

    When you click on a users name, it takes you to the profile but on the profile, there are button under, Mainly Home and view. It automatically goes to home and it is blank. You have to click on view before you see member bio.

    I want it to go directly to showing member info.

    Here is a screenhsot of how it looks: https://prnt.sc/ld0xqr

    As you can see, the profile tab is active but there is a home under it aside from the hnome on the tab and it is blank.

    I have changed Buddy press theme Legacy and the other one, still same.

    I have used the appearance > customize >Nouveau still the same.

    How do I get ride of that home there and let it just display the profile of the person instead of blank?

    #279729
    cyanidevf
    Participant

    Hello,
    I use buddypress on my site and for each signup, the member is obliged to confirm his mail.
    But i want to disable this, i just want for my member they can signup and login immediatly, without confirmation?

    How can i do that ?

    Thanks u.

    #279727

    In reply to: Remove Name Header

    Prashant Singh
    Participant

    Hi,

    You have to check current component using the function bp_current_component() and you can find the component list here https://codex.buddypress.org/developer/bp-is-active/

    Thanks

    #279725
    Prashant Singh
    Participant

    Hi,

    You need to find the file cover-image-header.php and override it in your child theme then just after the avatar code you have to call the function https://buddypress.org/support/topic/bp_get_profile_field_data-2/

    Thanks

    #279724
    Prashant Singh
    Participant

    This is strange because this works for me really well with twenty-seventeen and BuddyPress.

    #279722
    kjcarleo
    Participant

    Hello all,

    I am wondering how I can call info from Custom Fields to be displayed beneath a users profile Pic.

    Profile Fields

    Kevin

Viewing 25 results - 7,326 through 7,350 (of 94,542 total)
Skip to toolbar