Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 7,551 through 7,575 (of 69,109 total)
  • Author
    Search Results
  • #269402
    ripulkr
    Participant

    Question : Are you using any custom plugin for Emails which may be modifying the wp_mail ?

    BuddyPress uses the wp_mail function but it also checks if any filter is modifying the wp_mail like converting the mail format from standard text to html. If BuddyPress detects that some plugin is modifying the wp_mail’s default behaviour then it would not run as it assumes that the mail is being taken care of by other plugin.

    bcanr2d2
    Participant

    I currently have an issue with trying to get a custom email to send once a user activates.

    When a user does a traditional signup/activation, the email gets sent without any issues.
    But when I use plugin to do sign ups via social media, this email does not get sent, and I get the following error when I capture the results of the failed email message.

    object(WP_Error)#6355 (2) { ["errors"]=> array(1) { ["missing_email"]=> array(1) { [0]=> string(12) "bp_get_email" } } ["error_data"]=> array(1) { ["missing_email"]=> array(2) { [0]=> string(24) "member_activated_account" [1]=> array(6) { ["no_found_rows"]=> bool(true) ["numberposts"]=> int(1) ["post_status"]=> string(7) "publish" ["post_type"]=> string(8) "bp-email" ["suppress_filters"]=> bool(false) ["tax_query"]=> array(1) { [0]=> array(3) { ["field"]=> string(4) "slug" ["taxonomy"]=> string(13) "bp-email-type" ["terms"]=> string(24) "member_activated_account" } } } } } }

    My code for the custom email creation, and the code to call it is as follows:

    function welcome_email_message() {
     
        // Do not create if it already exists and is not in the trash
        $post_exists = post_exists( '[{{{site.name}}}] Welcome to {{{site.name}}}' );
     
        if ( $post_exists != 0 && get_post_status( $post_exists ) == 'publish' )
           return;
      
        // Create post object
        $my_post = array(
          'post_title'    => __( '[{{{site.name}}}] Welcome to {{{site.name}}}', 'buddypress' ),
          'post_content'  => __( 'Hi {{recipient.name}}, welcome  to {{site.name}}! Thankyou for signing up and helping us grow our community.
    
    {{site.name}} is a community run service which connects families with the right babysitter or nanny for them.
    
    Your new account is all set up and ready to go, you can login with the following information:
    
    Username: <strong>{{recipient.username}}</strong>
    This link will take you to our log in page:
    <a href="https://bbs4you.com/login/?login=newuser">Login</a>
    
    We need you to log in and fill in the details of your profile in order to make the most of our site.
    
    Please let us know if you have any issues using the site via the contact us page:
    <a href="https://bbs4you.com/contact-us/">Contact Us</a>
    
    The {{site.name}} Team', 'buddypress' ),  // HTML email content.
          'post_excerpt'  => __( 'Hi {{recipient.firstname}}, welcome  to {{site.name}}! Thankyou for signing up and helping us grow our community.
    
    {{site.name}} is a community run service which connects families with the right babysitter or nanny for them.
    
    Your new account is all set up and ready to go, you can login with the following information:
    
    Username: {{recipient.username}}
    
    This link will take you to our log in page:
    
    Login
    We need you to log in and fill in the details of your profile in order to make the most of our site. Please let us know if you have any issues using the site via the contact us page:
    Contact Us
    The {{site.name}} Team.', 'buddypress' ), // Plain text email content. 'post_status' => 'publish', 'post_type' => bp_get_email_post_type() // this is the post type for emails ); // Insert the email post into the database $post_id = wp_insert_post( $my_post ); if ( $post_id ) { // add our email to the taxonomy term 'post_received_comment' // Email is a custom post type, therefore use wp_set_object_terms $tt_ids = wp_set_object_terms( $post_id, 'member_activated_account', bp_get_email_tax_type() ); foreach ( $tt_ids as $tt_id ) { $term = get_term_by( 'term_taxonomy_id', (int) $tt_id, bp_get_email_tax_type() ); wp_update_term( (int) $term->term_id, bp_get_email_tax_type(), array( 'description' => 'A member activates their account', ) ); } } } add_action( 'bp_core_install_emails', 'welcome_email_message' ); function new_member_welcome_email( $user_id, $key = false, $user = false ) { if ( $user_id) { // get the user data $user = get_userdata( $user_id ); // add tokens to parse in email $args = array( 'tokens' => array( 'site.name' => get_bloginfo( 'name' ), 'recipient.firstname' => ucfirst($user->first_name), 'recipient.username' => $user->user_login, ), ); // send args and user ID to receive email bp_send_email( 'member_activated_account', $user_id, $args ); } } add_action( 'bp_core_activated_user','new_member_welcome_email', 99, 2 );

    Why it works for a normal activation, and not with a OneAll social login account creation seems to confuse me, as the user_id is set and coming through from this point.

    #269398
    Henry Wright
    Moderator

    If I understand properly, you need conditional profile fields. Try BuddyDev’s Conditional Profile Fields for BuddyPress.

    Conditional Profile Fields for BuddyPress

    #269390

    UPDATE: this seems to only happen in specific cases where the user that created the site is no longer associated with that site.

    For example, when the site was created by Super Admin but later other users where assigned and super admin was removed from the site user list. In this case, it seems BuddyPress just picks the first user associated with that site, which may not even be an admin.

    It’d be better to try to determine the site owner (and thus, gravatar to use) based on these fallback steps:
    1. get admin Email Address and search matching user;
    2. if no user found, then get the first admin user associated with the site;
    3. if no admin user, then first editor… etc.

    #269385
    Gunu
    Participant

    After a lot of digging here I found this:

    bp_message_notice_delete_link uses wrong action for nonce generation

    I made this change in the source code: fix nonce for sitewide notice deletion.

    Changed in source code from this file /buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php
    <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" aria-label="<?php esc_attr_e( "Delete Message", 'buddypress' ); ?>">x</a>
    in this
    <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>">x</a>

    Now I see the delete button and can delete messages, but this goes wrong again after an update from Buddypress.

    I would like to receive an advice.
    Thanks

    #269384
    stunomatic
    Participant

    I am back to start. If there id’s it shows only specific ids but if its null then it shows all the users :s

    <?php 		
    $contrytoggle = get_field( "country_toggle" );
    $contrypri = get_field( "select_country" ); ?>
    
    <?php echo $contrytoggle; ?>
    
    <?php $custom_ids = my_custom_ids($contrytoggle, $contrypri);  
    
     // $has_members_args = array(
       // 'include' => $custom_ids,
    // ); 
      
      echo $custom_ids;   // it echo no id and still it shows all the users 
       
      if ( bp_has_members( $custom_ids )  ) :
    
     ?> 
      
    	   	<ul>
      <?php while ( bp_members() ) : bp_the_member(); ?>
     
        <li>
          <div class="item-avatar">
             <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
          </div>
     
          <div class="item">
            <div class="item-title">
               <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
          </div>
    	</li>
    	  
    	   <?php endwhile; ?>
    
    	</ul>
    	
    <?php else: ?>
     
        <div id="message" class="info">
          <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
       </div>
       
    
    	
    <?php endif; ?>
    </div>
    
        
    #269383
    stunomatic
    Participant

    If I pass include inside if then,

    echo $contrytoggle; = It shows 4 id’s 6,7,8,9

    and below code show only 3 users… user with 6th ID is missing

    <?php 		
    $contrytoggle = get_field( "country_toggle" );
    $contrypri = get_field( "select_country" ); ?>
    
    <?php echo $contrytoggle; ?>
    
    <?php $custom_ids = my_custom_ids($contrytoggle, $contrypri);  
    
     // $has_members_args = array(
       // 'include' => $custom_ids,
    // ); 
      
      echo $custom_ids; 
       
      if ( bp_has_members( 'include=' . $custom_ids ) ) :
    
     ?> 
      
    	   	<ul>
      <?php while ( bp_members() ) : bp_the_member(); ?>
     
        <li>
          <div class="item-avatar">
             <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
          </div>
     
          <div class="item">
            <div class="item-title">
               <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
          </div>
    	</li>
    	  
    	   <?php endwhile; ?>
    
    	</ul>
    	
    <?php else: ?>
     
        <div id="message" class="info">
          <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
       </div>
       
    
    	
    <?php endif; ?>
    </div>
    
    #269382
    stunomatic
    Participant

    Hi,

    Thanks Boone for replying.

    I did as you said but still this while loop shows all the user profiles.

    If I echo ” echo $custom_ids; ” This shows correct number of ids

    Is there something I need to do with while loop as well ?

    Thanks

    <?php 		
    $contrytoggle = get_field( "country_toggle" );
    $contrypri = get_field( "select_country" ); ?>
    
    <?php echo $contrytoggle; ?>
    
    <?php $custom_ids = my_custom_ids($contrytoggle, $contrypri);
    
      $has_members_args = array(
        'include' => $custom_ids,
    ); 
      
      echo $custom_ids;   // This shows correct number of ids
       
      if ( bp_has_members() ) :
    
     ?> 
      
    	   	<ul>
      <?php while ( bp_members() ) : bp_the_member(); ?>
     
        <li>
          <div class="item-avatar">
             <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
          </div>
     
          <div class="item">
            <div class="item-title">
               <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
          </div>
    	</li>
    	  
    	   <?php endwhile; ?>
    
    	</ul>
    	
    <?php else: ?>
     
        <div id="message" class="info">
          <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
       </div>
       
    
    	
    <?php endif; ?>
    </div>
    
    #269381
    Gunu
    Participant

    Another update.

    I found the “code” link in the following file: plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php

    I changed the following code:
    <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" aria-label="<?php esc_attr_e( "Delete Message", 'buddypress' ); ?>">x</a>

    In this:
    <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>">x</a>

    Now the “delete message” link is visible, however if I click on it I get an WP error message.

    “Are you sure you want to do this?” – No Yes or No button but a link back to the messages with the text “try it again”

    #269376

    In reply to: New user welcome email

    madebyhuddy
    Participant

    I have the same problem. Every plugins except Buddypress successfully send mails. ( woocommerce, WPForms… ) I tried disabling all plugins, default theme, tried default wp mail, tried smtp trough WP Mail SMTP, Postman…

    Anyways. I’ll follow this thread too.

    #269360

    In reply to: Register page editor

    Boone Gorges
    Keymaster

    BuddyPress’s Register page is a special kind of page that cannot be edited via the Dashboard. That’s why it’s blank when you view it in the normal way.

    To add additional fields to the registration process, go to Dashboard > Users > Profile Fields. Add one for Address and one for Phone Number. Make them required and/or private, if you’d like. As long as they are part of the ‘Base’ profile field group, they will appear as part of the registration process.

    #269357
    Boone Gorges
    Keymaster

    When you add BuddyPress’s Register item to your nav menu, it will only show up for logged-out users. If you’d like it to show for *all* users, remove the BuddyPress item, and instead find Register under Pages and add it from there. https://i.imgur.com/Ny7Wj1L.png

    #269350
    stunomatic
    Participant

    Hi Shane,

    Even if I check condition it still shows all members.

     <?php       
    
        <?php if ( !empty(bp_has_members( my_custom_ids( 'country', 'usa' ) ) ) ) : ?>  
    
        <ul>
      <?php while ( bp_members() ) : bp_the_member(); ?>
    
        <li>
          <div class="item-avatar">
             <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
          </div>
    
          <div class="item">
            <div class="item-title">
               <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
          </div>
        </li>
    
           <?php endwhile; ?>
    
        </ul>
    
    <?php else: ?>
    
       <div id="message" class="info">
          <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
       </div>
    
    <?php endif; ?>
    </div>
    #269333
    Arize Nnonyelu
    Participant

    [RESOLVED] I went to BuddyPress options in WP Dash and the disabled User Groups Component and reenabled it then I was able to pass the first step and created a group. It works fine and normal now.

    But I don’t know if you understand why it did that and why what I did fix the issue. If you do, could you explain to me? Thanks

    Boone Gorges
    Keymaster

    That string is not present in BuddyPress itself. It must be coming from the plugin described here: https://buddydev.com/buddypress/force-buddypress-users-to-upload-profile-photo/

    Be sure to check for wp-content/plugins/bp-force-profile-photo in your filesystem, and the Plugins screen on both the Dashboard and the Network Admin (assuming you’re running Multisite).

    #269321
    Boone Gorges
    Keymaster

    These tabs are hardcoded into the theme template. So you have two options:

    1. Override the theme template in your own theme (copy /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/index.php to /wp-content/themes/[your-theme]/buddypress/activity/index.php, open the copied template, and remove the tabs you don’t want.

    2. Hide with CSS. Eg

    
    body.activity.directory #activity-friends {
        display: none;
    }
    
    #269311

    In reply to: Organic Square theme

    peter-hamilton
    Participant

    Thanks again, I do work better when sometimes tapped on the back, and there is such a need to improve on the available themes for BBPress/Buddypress, I feel they should not even be a separate thing… think they come from the same group of people!?.

    I aim to produce a usable skeleton theme in the next few months, to be honest now trying to learn how to create a customization page in the dashoard.

    #269310

    In reply to: Organic Square theme

    johnagreene
    Participant

    Seriously amazing work @peter-hamilton! It looks better than any premium Buddypress/bbPress theme I’ve seen. Great job and can’t wait to see the finished product!

    Boone Gorges
    Keymaster

    Hm. I have never seen a problem like this before. It sounds like the problem is not really with BuddyPress per se, but instead some sort of database corruption.

    Are you able to run mysqlcheck? http://www.thegeekstuff.com/2011/12/mysqlcheck/ A total guess, but it could be that this will clear up some of the problems.

    #269280
    playdiune
    Participant
    #269279
    Boone Gorges
    Keymaster

    If the users of the site don’t care too much about what it looks like, then I would suggest switching to a theme like Twenty Sixteen. This will move you over to a “template pack” that is more modern and well-supported by the BuddyPress team.

    Otherwise, there’s no danger in sticking with the existing theme, as long as it’s working for you. It’s outdated in the sense that it won’t receive any more feature updates from the BP team, but if you’re not using most BP features, this probably won’t bother you or your users 🙂

    > Now the problems I see is that when creating a new thread, the thread is created and shown but only the title, the content posted when creating the thread is hidden. All subsequent replies show just fine.

    If this is a CSS issue, it’s easily fixed. Look at the page source to see if the content is there. If so, it is probably being hidden by a rogue style, which you could override. If not, it’s a deeper problem that may require some PHP skills to debug.

    #269276
    Boone Gorges
    Keymaster

    Oy, this is not a good piece of advice from the Avada support folks. You cannot put PHP into a text widget. I gave you a snippet of PHP with the understanding that it’d have to be added through code somehow.

    If you haven’t got the resources to build a proper custom widget (no worries if not, it is a bit cumbersome to do), you may try a plugin like https://wordpress.org/plugins/php-code-widget/. You should be able to paste the text in question into one of those widgets and have it work.

    Widget-friendly shortcodes for BP content is a good idea for a future enhancement. I’ve added a comment to an existing ticket we have to track a related idea. https://buddypress.trac.wordpress.org/ticket/7159#comment:2

    #269274
    Boone Gorges
    Keymaster

    Very interesting question.

    It’s not currently possible to do this through the regular activity API. We’ve hardcoded ASC into the comment query: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-activity/classes/class-bp-activity-activity.php?marks=1510#L1509

    I think that it would be a good enhancement request to add something to the query API that allows for these items to be reversed. If you’re interested, I encourage you to open a ticket at https://buddypress.trac.wordpress.org.

    In the meantime, here’s a clunky workaround:

    
    add_filter( 'bp_has_activities', function( $has ) {
    	global $activities_template;
    
    	foreach ( $activities_template->activities as &$a ) {
    		$a->children = array_reverse( $a->children );
    	}
    
    	return $has;
    } );
    

    This will only affect top-level comments; you’d need something recursive to do deeper levels. And you may want to limit this to front-end queries, or in the main activity directory, or something like that. But it’s a basic technique that should give you a sense of how to solve this in the short term.

    #269272
    naomibuch
    Participant

    BTW: I am using Newspaper – Theme version: 8.1
    WP version 4.8.3
    Buddypress Version 2.9.2

    #269267
    ovizii
    Participant

    Hi @boonebgoges and thanks for replying.
    I get what you are saying, its just that I am maintaining this site for a bunch of friends for their forum. basically no other feature of buddypress is used. I try and keep my efforts at a minimmum as its an unpaid favor I am doing them. So for the last few years all I did was keep WP and themes + plugins up to date.

    What I am looking for is the solution with the least effort 🙁

    Still, do you have some pointers where to start? Some links I could read up or tips what to do and check?

    What to do about this budypress message about the outdated template pack? I googled those terms and found some old posts from a few years back, mentioning some BP template pack plugin but that seems outdated information.

    Say I can solve this outdated template pack, can I then keep using the buddypress default theme? I did improve it by adding some css but that is the only change I made to it.

Viewing 25 results - 7,551 through 7,575 (of 69,109 total)
Skip to toolbar