Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wp user activate'

Viewing 25 results - 1 through 25 (of 902 total)
  • Author
    Search Results
  • #337877
    emaralive
    Moderator

    Your second answer is a bit confusing, if you have the Activity component activated, then all you would have had to do was to enter @username (replace username with your actual username) in the Activity post form and the click “Post Update”, afterwards you could delete the post. The reason for doing this is to test whether or not BuddyPress (BP) is sending emails in general and your issue isn’t just isolated with the changing of email address.

    Moving along, BP, by default, has a finite number of email templates with corresponding situations that will fire/send an email based on the situation: For example:

    • 21 email templates for a single site installation
    • 22 email templates for a multisite installation

    You can verify the count of email templates by clicking the menu items “Emails > All Emails” within the wp-admin area. You should have a “Published” count number the is equal to or greater than what was previously indicated.

    The email template that is responsible for sending the “email change notice” is:

    
    [{{{site.name}}}] Verify your new email address
    

    Make sure the template is present and the status is set to “Published”. Additionally, check that the situation assigned to this template is:

    
    settings-verify-email-change
    

    If these conditions are true (template is present, published and the correct situation is assigned) then BP should be sending the “Verify your new email address” email”, given that you aren’t receiving errors that might be interrupting the sending process.

    #337176
    duyha83
    Participant

    Thanks for the reply! According to the event log in the All-In-One Security (AIOS) plugin, the last successful sending of a password reset email was on March 25. Before that, emails were sent fine. Now, all emails are sent except for password reset.
    Before March 25, there was definitely a situation (trigger) for password reset. Users actively used it. And now they constantly write to me by email that the password is not coming.
    Yes, I have been using the WP Mail SMTP plugin for a long time.
    Here are all the situations (triggers) that remain in the administration panel.

    The recipient was mentioned in the activity feed.
    The user responded to a message in the activity feed that the recipient left.
    The user responded to a comment in the activity feed that the recipient left.
    The site participant sent the recipient an invitation to visit the site.
    The recipient has successfully activated the account.
    The recipient has registered a new account on the site.
    The user sent a friend request to the recipient.
    The recipient has received confirmation of the friendship request.
    The recipient was mentioned in the group’s activity feed.
    The group details have been updated.
    The user sent an invitation to the group to the recipient.
    The recipient’s status within the group has been changed.
    The user requested permission to join the group.
    The recipient sent a request to join the group, which was confirmed.
    The recipient requested permission to join the group, which was accepted by the administrator.
    The recipient sent a request to join the group, which was rejected.
    The recipient requested to join the group, which was rejected by the administrator.
    Someone requested a membership on this site.
    The site membership request was rejected.
    The recipient received a private message.
    The recipient has changed their email address

    #336500

    @alexanderwbell Thank you very much i have checked and seen you did alot of work so far on the fork. i have fixed the issue, i downloaded the plugin from your repository and activated it and it still showed same issue, so i created a test site and installed the plugins it worked, i went into myphpadmin of the new site exported the wp_bp_follow table which is missing on my main site and imported it and everything started working fine. thank you very much sir, please can you make an edit whereby when a user follows another user, the second user will see FOLLOW BACK instead of FOLLOW as it is currently. please send me a link to connect with you on external social media outside here because i need a mentor and i must say you are good. thanks again.

    #335541
    flamuren
    Participant

    OMG I am sooo happy! Chatgpt and some noob questions to it managed to tweak the code so now it works! 😍

    If anyone would need it, this now works:

    function assign_role_based_on_profile_field($user_id) {
        // Get the BuddyPress profile data for the registered user
        if (function_exists('xprofile_get_field_data')) {
            $role_value = xprofile_get_field_data('Roll', $user_id); // Replace 'Role' with the exact name of your profile field
    
            $user = new WP_User($user_id);
    
            // Assign the user role based on the profile field value
            if ($role_value == 'Arbetsgivare') {
                // Assign 'employer' role
                $user->set_role('employer'); // Replace 'employer' with the exact role slug
            } elseif ($role_value == 'Arbetssökande') {
                // Assign 'candidate' role
                $user->set_role('candidate'); // Replace 'candidate' with the exact role slug
            } else {
                // Default role if no specific selection is made
                $user->set_role('subscriber'); // Or any other default role
            }
        }
    }
    add_action('bp_core_activated_user', 'assign_role_based_on_profile_field', 10, 1);
    #334916
    pellepedersen
    Participant

    Yes, that is correctly understood. I/the administrator suddenly do not receive notifications when there are membership requests. However, the applicant does receive an email. WP registers the request under Users, but BP Registration Options notes nothing. When I manually respond to the request via WP – User – Management, BP Registration Options is activated, and an email is sent, and BP Registration Options marks the request with a red dot (as usual). It’s as if WP and BP Registration Options do not want to cooperate. WP overshadows BP Registration Options.

    powebdesign
    Participant

    Hello, I had this code, what it does is that certain users already enter with a subscription and can use the chat without having to pay. When updating to the latest version the code no longer works. Any idea what has changed?:
    add_filter(‘bp_get_total_member_count’,’bpfr_hide_get_total_filter’);
    function kleo_pmpro_default_level($user_id) {
    global $wpdb, $bp;

    //Change this with your field name
    $field_name= “i am”;

    //Change the field value
    $value_to_match = “woman”;

    //Membership level id
    $membership_level = 4;

    //Done editing
    $field_id = $wpdb->get_var( $wpdb->prepare( “SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s”, $field_name ) );
    if ($_POST[‘field_’.$field_id] == $value_to_match) {
    pmpro_changeMembershipLevel($membership_level, $user_id);
    }
    }

    if (is_multisite()) {
    add_action( ‘wpmu_activate_user’, ‘kleo_mu_pmpro_default_level’, 10, 4);
    } else {
    add_action(‘user_register’, ‘kleo_pmpro_default_level’);
    }

    Thanks!

    #334662
    #334501

    In reply to: Who is online

    Upen Singh
    Participant

    1:- Activate Classic Widgets Plugin
    2:- Install BP Classic Plugin

    Go to Appearance —> Widgets –> Delete <!– wp:bp/online-members /–> Block Widget
    https://prnt.sc/gD3isG_JqztQ

    Add New Who’s Online widgets https://prnt.sc/2CYmmC7TOCTR
    Only Add maximum of 50 users

    #334020
    webmark487
    Participant

    Hi,

    I took over a website as webmaster.

    When users login, the see a message on top of the page.
    In the source code, I can see, that it is <div id=”sitewide-notice”.
    And the table wp_bp_messages_notices is the source of this message.

    Where in the backend can this message/sitewide-notice be deleted resp. deactivated?

    Thx in advance and best regards
    Markus

    michaeldenmark
    Participant

    I have inserted this code in bp-custom.php:

    <?php
    function my_redirect() {
    wp_redirect( home_url() );
    error_log(‘Hello log’);
    exit;
    }
    add_action( ‘bp_groups_posted_update’, ‘my_redirect’ );
    ?>

    Writing is done to the log file, but there is no redirect after a user has posted an update in “Group Activities”. Why not?

    As a test, if I use “wp_redirect( ‘https://buddypress.org/&#8217; );” instead of “wp_redirect( home_url() );” and use the action hook “init” instead of “bp_groups_posted_update”, and press F5, I am redirected to https://buddypress.org/.

    I use the latest version of WordPress and BuddyPress.

    BuddyPress is the only plugin activated.

    WordPress is installed in a subdomain.

    My issue still happens with themes Twenty Twenty-One, Twenty Twenty-Two, Twenty Twenty-Three and Twenty Twenty-Four.

    #333581
    jgasba
    Participant

    For the posterity: the Codex was not very clear for newer user: the Settings > Email mentionned is in the public user profile settings, and only available if you have the “Notifications” component enabled.

    It does not allow to define the default values for the users settings. Each user can customize their own themselves.

    If I’m not mistaken to customize the “default” you can use this code:

    
    add_action( 'bp_core_activated_user', 'wps_set_email_notifications_preference');
      
    function wps_set_email_notifications_preference( $user_id ) {
     
        $settings = array(
            'notification_activity_new_mention'         => 'yes',
            'notification_activity_new_reply'           => 'yes',
            'notification_friends_friendship_accepted'  => 'yes',
            'notification_friends_friendship_request'   => 'yes',
            'notification_groups_admin_promotion'       => 'yes',
            'notification_groups_group_updated'         => 'yes',
            'notification_groups_invite'                => 'yes',
            'notification_groups_membership_request'    => 'yes',
            'notification_messages_new_message'         => 'yes',
        );
      
        foreach( $settings as $setting => $preference ) {
            bp_update_user_meta( $user_id,  $setting, $preference );
        }
    }
    
    #332911
    markus150973
    Participant

    Hi all,
    I am German and ma English is not the best, but I try to discribe my problem as good as possible. But a small warning about my self: I have no idea about coding and I love plug’n’play!

    My site is : https://pinselcrew.de/

    I tried to start a forum with bbpress and buddypress. It worked perfectly together until last week. I got an email from my site that told me about a big problem. The memberlist was empty and the forum was totaly broken. So I asked my hoster for a backup.
    When I startet the debug mode, it told me that there is an error in the bbpress code that points to buddypress. After I deactivatet BuddyPress everything was fine again. So I deinstalled and installed it again. But the error is the same.

    Maybe aomeone has an idea. The first members really loved BuddyPress and now the miss it!

    Best regards from Hamburg

    Markus
    __________________________________________________
    This is the mail I received:

    Aktives Theme: Astra (Version 4.6.3)
    Aktuelles Plugin: bbPress (Version 2.6.9) PHP-Version 7.4.33 Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 229 der Datei /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/extend/buddypress/members.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function bp_core_get_user_domain() in /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/extend/buddypress/members.php:229
    Stack trace:
    #0 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/extend/buddypress/members.php(100): BBP_BuddyPress_Members->get_profile_url(131)
    #1 /www/htdocs/w01d4e65/pinselcrew.de/wp-includes/class-wp-hook.php(324): BBP_BuddyPress_Members->get_user_profile_url(131)
    #2 /www/htdocs/w01d4e65/pinselcrew.de/wp-includes/plugin.php(205): WP_Hook->apply_filters(131, Array)
    #3 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/core/abstraction.php(471): apply_filters(‘bbp_pre_get_use…’, 131)
    #4 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/users/template.php(560): bbp_maybe_intercept(‘bbp_pre_get_use…’, Array)
    #5 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/admin/users.php(260): bbp_get_user_profile_url(131)
    #6 /www/htdocs/w01d4e65/pinselcrew.de

    wingflap
    Participant

    I deactivated BuddyPress and then selected ‘favorites’ from the generic bbPress profile page. Within the list of favorited topics, the ‘X’ has the following URL:
    https://[site-url]/forums/users/admin/favorites/?action=bbp_favorite_remove&object_id=55&redirect_to=https%3A%2F%2F[site-url]%2Fforums%2Fusers%2Fadmin%2Ffavorites%2F&_wpnonce=198716f56b

    When I click the ‘X’ it unfavorites is. I’m beginning to see what’s happening here. Thanks for your help so far.

    #332651
    Mathieu Viet
    Moderator

    Hi @wojciechr

    Since BuddyPress 12.0.0, we’ve delayed the moment when the displayed user is set to comply with the WP Rewrite API. You now need to wait for bp_parse_query to get it. I advise you to use a later priority than default one (eg: 20).

    The other option is to download and activate the BP Classic plugin. It will bring backward compatibility with your code.

    My advice is to prefer 1st option 😅

    #332418

    In reply to: BuddyPress 12.0.0

    AWOL
    Participant

    I am attempting to ensure that all the deprecated functions are either changed, or the plugins that are still using them are informed, but I have one that is appearing in the debug log that I can’t trace, as follows:
    PHP Deprecated: Function bp_get_displayed_user_link is deprecated since version 12.0.0! Use bp_displayed_user_url() instead. in /wp-includes/functions.php on line 6031

    Obviously the message is referring to the file that generates the message, and not the file where the function is being used, so any tips on how I can find this? I am aware of the BP-Classic plugin, and have it installed, but deactivated it to see what needs addressing. I have gone through all my own code and customisations, as well as several plugin files, but it is like a needle in a haystack, so is there some method I can use to trace this? Or any way to change the debug log to be more useful?!

    #332392
    jonardsantiago
    Participant

    Hello. When I click on the name of another user in our Forum, it currently redirects us to an account restricted page and not their profile. I have been checking BP settings but I do not see any setting to unrestrict it at the moment,

    I am new to WP in general but I do think that viewing other profiles should be possible. Not sure if there is a setting somewhere that will allow this function. As mentioned, the users are clickable right now but when I do click it, it redirects me to a restricted access page.

    We are using Version 12.0.0
    Link to our forums: https://parentingourparents.info/forum/

    Here are the plugins currently activated:

    Avada Builder
    Avada Core
    Basic User Avatars
    bbPress
    BetterDocs
    BetterDocs Pro
    BuddyPress
    Classic Widgets
    CoBlocks
    Elementor
    Google Analytics
    Paid Memberships Pro
    Paid Memberships Pro – bbPress Add On
    Paid Memberships Pro – BuddyPress & BuddyBoss Add On
    Paid Memberships Pro – Donations
    Sucuri Security – Auditing, Malware Scanner and Hardening
    User Menus
    WP User Profile Avatar
    WPForms Lite

    #331198
    AWOL
    Participant

    I have just updated to the beta 2 version, and I have just discovered something with regards to the issue with the Buddypress Member menu items I reported previously, where they would only appear when the user was actually on a Member page and not on any other page (i.e. Activity, Groups, Members or ordinary WP pages). I had the BP Classic plugin installed and activated, and when I deactivated it, the menus appeared as they should, so that is something to be aware of.
    Just as an addendum, so far I have not run into any issues with third party BP plugins yet, but will obviously report any to the relevant plugin authors if I do, so hats off to you for that.

    nannoo1969
    Participant

    Hi
    I’ve having an issue when users try to register on the site. They get an error message telling them there is a critical error on this website. I have de-activated all the plugins as suggested and nothing seems to work. I checked the error logs and this is what comes up but I don’t understand any of it. Can anyone shed some light on what to do please? My website is mylocalcommunity.org

    Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/PHPMailer/PHPMailer.php:874 Stack trace: #0 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/PHPMailer/PHPMailer.php(1961): PHPMailer\PHPMailer\PHPMailer->mailPassthru() #1 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/PHPMailer/PHPMailer.php(1682): PHPMailer\PHPMailer\PHPMailer->mailSend() #2 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/PHPMailer/PHPMailer.php(1518): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php(136): PHPMailer\PHPMailer\PHPMailer->send() #4 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(3747): BP_PHPMailer->bp_email() #5 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-content/plugins/buddypress/bp-members/bp-members-functions.php(2390): bp_send_email() #6 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-content/plugins/buddypress/bp-members/bp-members-functions.php(1948): bp_core_signup_send_validation_email() #7 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-content/plugins/buddypress/bp-members/screens/register.php(263): bp_core_signup_user() #8 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/class-wp-hook.php(310): bp_core_screen_signup() #9 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #10 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(388): do_action() #12 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/class-wp-hook.php(310): bp_screens() #13 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #14 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #15 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(445): do_action() #16 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/class-wp-hook.php(310): bp_template_redirect() #17 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #18 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #19 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/template-loader.php(13): do_action() #20 /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-blog-header.php(19): require_once(‘…’) #21 /var/www/vhosts/mylocalcommunity.org/httpdocs/index.php(17): require(‘…’) #22 {main} thrown in /var/www/vhosts/mylocalcommunity.org/httpdocs/wp-includes/PHPMailer/PHPMailer.php on line 874
    There has been a critical error on this website.

    #331058
    #330817
    Mathieu Viet
    Moderator

    Hi @awol

    Thanks a lot for your testing and feedback.

    About the CSS override: you need to put the buddypress.css & buddypress.min.css inside the /wp-content/themes/your-child-theme-name/css folder. I just tested with a Twenty Nineteen child theme and it behaves as expected.

    About the WP Nav Menus we use for the logged in user BP links, the issue is fixed into our development version, it will be included into our 12.0-beta2 release.

    As I’ve explained here, 12.0.0 no longer uses regular WordPress pages as the directory page of a BuddyPress component. You’ll see a “BuddyPress Directories” section into the Customizer UI to manage menus. If you use the regular Admin screen, you’ll need to activate the “BuddyPress Directories” checkbox into your screen options > See the screenshot above.

    #330782
    Mathieu Viet
    Moderator

    I forgot to mention that, in order to add a BuddyPress directory page into a WP Nav Menu, you now need to activate the “BuddyPress directories” menu type from the WP Admin Menu Screen options. See screenshot below:

    WP Menu Admin screen

    We’ll document this change inside our User Docs.

    andrewjfox6
    Participant

    Hi everyone!

    I’m currently working on a website with BuddyPress and I’m facing a challenge with adding an interactive map to each user’s profile page. I’d greatly appreciate any guidance or suggestions you can offer.

    Here’s what I’ve done so far:

    Installed and activated the BuddyPress plugin for social networking features.

    Created a custom profile field called “Countries Visited,” where users can select the countries they have been to.

    Explored several map plugins, including “Interactive Geo Maps,” “Leaflet Maps Marker,” and “WP Google Maps,” but haven’t been able to successfully integrate any of them with the user profiles.

    Attempted to insert map shortcodes into various template files (e.g., member-header.php, member.php, profile.php) without success.

    Tried using the “Widget Shortcode” plugin to add the map shortcode to a widget area, but still didn’t see the desired result.

    I’m not a coder, so I’m struggling to find a straightforward solution for this issue. My goal is to have the interactive map on each user’s profile page, where it will dynamically update based on the countries they have selected in the “Countries Visited” profile field.

    If anyone has successfully implemented something similar on a BuddyPress site or has experience with any specific plugins that can achieve this functionality, I would greatly appreciate your guidance.

    Thanks in advance for your help!

    Best,
    Andrew

    Steve Taylor
    Participant

    Out of about 6000 members, we have around 1000 who have no entry with the type last_activity in the wp_bp_activity table.

    I think some will be simply members who have yet to log in, but it doesn’t seem to be all of them.

    For instance, if I search the data for members who have no last_activity but do have an entry with type updated_profile, I find over 700 members.

    As far as I can tell, the function bp_core_record_activity() is hooked to wp_head, and should be updating last_activity every 5 minutes.

    There being no last_activity definitely seems to be a bug of some kind. If I edit the Extended Profile in admin of a member with no last_activity, ‘Last active’ in the ‘Member’s stats’ box shows the current date/time. This seems to be because in \BP_Members_Admin::user_admin_stats_metabox(), the account is activated (so $last_active doesn’t get assigned the registration date), but bp_get_user_last_activity() returns nothing. So strtotime( $last_active ) returns the current date/time.

    Any ideas as to how this might have happened?

    I wondered about the ‘Repair member “last activity” data’ option under Tools > BuddyPress, but I ran this on my local installation and it doubled the number of members without last_activity, so I’m not sure what that’s about.

    ejoopasco
    Participant

    Hello,

    Setup:
    WP version 6.2,
    BP version 11.1.0,
    PHP version 7.4

    I want an activation mail setup during the registration process, as the site needs a double-opt-in for the registration of new users.

    the problem is as follows:

    • A user registers
    • An email is sent to the admin, that a user registered
    • BUT the promised activation email to the user does not get sent.

    as I thought this might be a common problem, of course I have done some research and found no fitting solution, as the mails in general do work, what the solutions claim to fix.

    I have also done excessive testing.

    I found no cause/solution and so I supect a BP/WP bug or misconfiguration I did not find.

    I confirmed via MailHog and the “Post SMTP” plugin that the mail does not get sent at all, but other mails get sent. So from my point of view there is NO Problem with SMTP or mail sending in general.

    When I reject the user in the confirmation process, then a mail gets sent to the user.

    I have checked the Mail-Templates of BP, repaired them twice and checked for the trigger “Der Empfänger hat sich registriert”, in english: The recipient has registered”.
    All this happens on the local and the production server.

    I deactivated as much other plugins as possible to exclude them as source of the error.

    Everything seems to be fine. But the Email does not get sent. I am totally stuck.

    Can someone help?
    E.g. confirm the activation mail gets sent/not sent?

    ashankrao
    Participant

    Hello Team,

    Whenever any user registers on the website, they get a welcome email from BuddyPress. I want to disable that default welcome email. I’ve tried using plugins and some custom code but the problem was not solved. Is there any way to deactivate that email? The code I tried was:

    “add_filter(‘wpmu_welcome_notification’, ‘__return_false’ );”

    Looking for help
    Thank you

Viewing 25 results - 1 through 25 (of 902 total)
Skip to toolbar