Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,226 through 8,250 (of 69,109 total)
  • Author
    Search Results
  • 6logics
    Participant

    I fixed it by changing the code in function bp_send_email in file /buddypress/bp-core/bp-core-functions.php.

    Before:

    $must_use_wpmail = apply_filters( 'bp_email_use_wp_mail', $wp_html_emails || ! $is_default_wpmail );
    
    	if ( $must_use_wpmail ) {
    		$to = $email->get( 'to' );
    
    		return wp_mail(
    			array_shift( $to )->get_address(),
    			$email->get( 'subject', 'replace-tokens' ),
    			$email->get( 'content_plaintext', 'replace-tokens' )
    		);
    	}

    After:

    $must_use_wpmail = apply_filters( 'bp_email_use_wp_mail', $wp_html_emails || ! $is_default_wpmail );
    
    	if ( $must_use_wpmail ) {
    		$to = $email->get( 'to' );
    
    		return wp_mail(
    			array_shift( $to )->get_address(),
    			$email->get( 'subject', 'replace-tokens' ),
    			$email->get_template( 'add-content' )
    		);
    	}
    6logics
    Participant

    we do need to send rich HTML emails. Is there a way we can configure BuddyPress’ custom instance of PHP Mailer to use our SMTP server?

    I am also looking forward to this option. I am using Gmail SMTP plugin to send email and it is causing to send plain text.

    safewp
    Participant

    For unknown reason I suddenly started getting a page asking me for activation key every time after I register myself as a pretend new user and after clicking on the activation link in the email.

    I read a post https://buddypress.org/support/topic/activation-code-after-new-member-registration/ with the same problem saying the activation key is in the email. I tried that so this is an example of the link,

    http://localhost/wordpress/activate-3/zhG7gX5p4mtAnSv91K1ePhgBO3V3laWh/

    I tried zhG7gX5p4mtAnSv91K1ePhgBO3V3laWh
    activate-3/zhG7gX5p4mtAnSv91K1ePhgBO3V3laWh
    and the entire url,
    but none of them work.

    In fact, the new user was never created because I checked the Users at admin backend, the new user was never there.

    A participant in the post said BP Autologin on Activation plugin solved her this problem but I tried it and it did not work. I think my situation is different from other members in that post because their newly registered members was actually created but mine wasn’t.

    I don’t know why this would happen because it never had this problem before.

    My site is still localhosted, if that matters.

    WP 4.7.3
    BP 2.8.2

    Please help.

    Thank you.

    #264717
    Henry Wright
    Moderator

    I’ve just removed bp_is_member() from the Template Tag Reference so there’s no confusion going forward:

    Template Tag Reference

    #264715
    shanebp
    Moderator
    #264689
    Venutius
    Moderator

    That shortcode is not part of BuddyPress, you need to refer your request to the plugin developer for the shortcode, would that be BuddyDev?

    #264686
    Slava Abakumov
    Moderator

    Just sent a new issue!

    BuddyPress Newsletter – #24 – BP security release, Community Hosting, BuddyApp Theme, BP with WooCommerce etc

    https://www.getrevue.co/profile/bpmail/issues/24-bp-security-release-community-hosting-buddyapp-theme-bp-with-woocommerce-etc-48208

    #264685
    McCage
    Participant

    I do not use Twitter. When I register for a WordPress website, I do not realize that the username will be revealed in BuddyPress. I prefer to see my username as part of the login secret and I think many of my BuddyPress friends will feel the same. I would like to see a setting that makes it possible to use the real name or the nickname on screen as is the case for comments to postings in WordPress. Or a plugin to do so.

    Muhammad Kashif
    Participant
    #264659
    Henry Wright
    Moderator

    How do I do that on the server side?

    You’d use the modulo operator, like in my example above.

    Did this work for you?

    #264657
    r-a-y
    Keymaster

    Actually, what hnla points out is correct. Disregard what I previously wrote, I was thinking of something entirely different!

    index-directory.php has to be a full template with get_header() and get_footer().

    You should copy your theme’s page.php template and rename it to index-directory.php. Then move this file to wp-content/themes/YOUR-THEME/buddypress/groups/index-directory.php.

    Please note that template hierarchy means modifying the surrounding elements of the page. If you just want to modify the group loop itself, then just copy /groups/groups-loop.php and make your changes to that file.

    #264655
    kalico
    Participant

    Hi @r-a-y, Thank you for the reply. My parent theme doesn’t have that file, and yes I am using a child theme already, and I do understand that it doesn’t work with bp-default themes, but it SHOULD work with bp-default templates – no?

    For reasons I don’t understand,

    /bp-templates/bp-legacy/buddypress/groups/index.php

    does not work as the index.php file when copied to

    /community/groups/index.php

    Now, if you’re saying I should not expect it to, then….what should I use as my template for the groups index?

    If I’m reading correctly, @hnla says I should just use a regular page template from my theme, and strategically add in the contents of /bp-templates/bp-legacy/buddypress/groups/index.php (which, as he points out, is not a complete file with header, etc) and call it index-directory.php. (And thank you, @hnla for the reply as well 🙂 )

    I can do that. However, I haven’t found any documentation to that effect, and it seems to be much more complicated than the template hierarchy documentation implies:

    Therefore, you can modify any bp theme compatibility template by copying it over from:

    /bp-templates/bp-legacy/buddypress/

    To:

    /my-theme/community/ or /my-theme/buddypress/

    That is what I have always done, and I’ve never had this much trouble with it before.

    I have other template modifications to make, and if Hugo’s instructions are correct, it would be really helpful to know where the documentation is, in case I have further issues.

    If the template hierarchy page is correct, then something is wrong with my site, because I’m following those instructions (in spite of my original faux pas of using “themes” instead of “templates”).

    Thanks in advance for any further clarification you can provide.

    #264652
    r-a-y
    Keymaster

    @kalicoTemplate hierarchy doesn’t work for bp-default themes or older-style BuddyPress themes that are derivatives of bp-default.

    In your situation, I would just modify /themes/YOUR-THEME/groups/index.php directly.

    If this doesn’t exist in your theme, that means you are using a child theme, so copy /themes/PARENT-THEME/groups/index.php to your child theme and make your mods.

    I’m so wrong! Read my updated reply below.

    #264649
    tommyhares
    Participant
    do_action( 'bp_before_activity_loop' ); ?>
    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ):
    
      if ( empty( $_POST['page'] ) ) : ?>
    
        <ul id="activity-stream" class="activity-list item-list">
    
      <?php endif; ?>
    
      <?php      
        $count = 0;
    
        $args = array(
          'posts_per_page'   => 100000,
          'offset'           => 0,
          'category'         => '',
          'category_name'    => 'freedom-friend-news',
          'order'            => 'desc',
          'orderby'          => 'date',
          'include'          => '',
          'exclude'          => '',
          'meta_key'         => '',
          'meta_value'       => '',
          'post_type'        => 'post',
          'post_mime_type'   => '',
          'post_parent'      => '',
          'author'	         => '',
          'author_name'	     => '',
          'post_status'      => 'publish',
          'suppress_filters' => true 
        );
        $news_articles = get_posts( $args ); 
              
    	while( bp_activities() ): bp_the_activity();
    
    		bp_get_template_part( 'activity/entry' );
              
            $current_user = wp_get_current_user();
            if( $current_user->user_login == 'tommy' ):
              
              $count++;
              $news_iteration = $count / 7)-1;
              
              // Loop through news articles as long as there are articles.
              if( $count % 7 == 0 && !empty( $news_articles[$news_iteration] )):
              
                echo 'News Article';
                echo 'Iteration: '.$news_iteration;
                echo $news_articles[$news_iteration]->post_title;
                echo $news_articles[$news_iteration]->post_excerpt;
          
              endif;
                
            endif;
    
    	endwhile; ?>
    
    	<?php if ( bp_activity_has_more_items() ) : ?>
    
    		<li class="load-more">
    			<a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>
    		</li>
    
    	<?php endif; ?>
    
    	<?php if ( empty( $_POST['page'] ) ) : ?>
    
    		</ul>
    
    	<?php endif; ?>
    
    <?php else : ?>
    
    	<div id="message" class="info">
    		<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    #264632
    kalico
    Participant

    I’m now trying to re-word my original response, so hopefully it will get past whatever filter is preventing me from reposting the dropped message.

    Thanks @danbp. Unfortunately, this wasn’t the solution I needed. Partly, perhaps, but not entirely.

    As you pointed out, I was wrongly copying files from bp-themes rather than bp-templates (a codeblind mistake on my part). But I was doing everything else correctly, in terms of file structure and use of /community/ according to your write up.

    I went through my steps again, this time copying

    /bp-templates/bp-legacy/buddypress/groups/index.php

    over to

    /community/groups/index.php

    with zero impact. (I test this by adding a bit of text in a spot that should display on the live site, and it does not show up. Tried several different places, no effect.)

    This would seem to demonstrate that BP is not reading that index.php file at all. It’s only reacting to the template change if it is called “index-directory.php”.

    I changed the file name (without moving the file) from index.php to index-directory.php, just as I did before, but again, it did not work as expected. The groups directory page picked up the new template, but it displayed a completely stripped-down version of the page, with no CSS at all (white background, default font, everything left-aligned, etc).

    I have been assuming that the index.php file would be a proper starting point (a template) to create custom modifications to the groups directory page (i.e., index-directory.php), but clearly that does not hold true.

    This seems very strange, because in looking at the php code in index.php, it’s got all the elements I see in the source for my live groups directory page. So it appears to be getting that exact same information from “somewhere else” within the plugin structure, but I can’t figure out where.

    My question is now: What file should I use as a starting point to duplicate my existing groups directory, so I can make custom modifications?

    I do hope you (or someone) can point me in the right direction. Thanks in advance!

    #264628

    In reply to: Static page to Dynamic

    Henry Wright
    Moderator

    You use bp_core_new_nav_item(). See this article for more info:

    bp_core_new_nav_item()

    #264613
    danbp
    Participant

    bp-default theme is the old mandatory theme. BP doesn’t use it anymore since 1.9. This historical theme is only in for backpat compatibility perhaps still in use on some very old installs…

    Actually, BP fits to almost any modern theme, correctly formated and respecting WP’s code standarts.

    What you can try is to create in your child theme, a directory called “community” or “buddypress”.
    If you need to alter a bp template, you copy the original file from here:
    /plugins/buddypress/bp-templates/bp-legacy/buddypress/

    You copy only the file you need and you respect the folder structure who starts from /buddypress/.../

    Note that you if you want to use /community/ in the child, this folder is equal to /buddypress/ in the original template folder. You copy (for ex.) group’s index.php file.
    From:
    /plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/index.php
    To:
    /themes/my_child/community/groups/index.php

    #264610

    In reply to: Buddypress Nouveua

    danbp
    Participant

    Not defined yet. It’s still a work in progress.
    https://github.com/buddypress/next-template-packs

    or follow tickets related to “bp-nouveau” on Trac.

    rafiquej
    Participant

    Thanks for your replies 🙂


    @danbp
    your solution only changed From email address. But i want to change Reply-to email address to noreply@example.com


    @r-a-y
    I placed your code in functions.php but when i tried to register, i am getting this error.

    Fatal error: Call to a member function get_address() on string in /public_html/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php on line 94

    It only appears when i use this code, or else it works fine. That’s weird :/

    #264586
    r-a-y
    Keymaster

    View this guide to create your own profile fields:

    User Extended Profiles

    r-a-y
    Keymaster

    I commented on this behavior in this ticket comment:
    https://buddypress.trac.wordpress.org/ticket/7051#comment:3

    BuddyPress sets the Reply-To email header to the admin email’s address by default.

    To override this, you have to use the 'bp_email_set_reply_to' filter since 'wp_mail_from' only handles the From email address header and not Reply-To header.

    The following would work:

    add_filter( 'bp_email_set_reply_to', function( $retval ) {
        return new BP_Email_Recipient( 'noreply@example.com' );
    } );
    #264580

    In reply to: White Page

    danbp
    Participant

    BP pages should be empty, and specially when you open them on dashboard. The content is dynamic and is added depending the context.

    Please read here to understand how this works:

    Configure BuddyPress

    Venutius
    Moderator

    That sounds like an error with the configuration of your Media plugin, not BuddyPress. There’s probably a setting somewhere for an upload limit per group or individual.

    #264574
    giobby
    Participant

    FYI – I’ve also tried to disable all the plugins except buddypress and to use a standard wordpress template (twentyseventeen), but the problem is still there.

    #264566

    In reply to: fatal error message

    paripari
    Participant

    Thank you guys.

    This one did the trick.

    Your theme is using an older BuddyPress function – bp_is_member().

    Switch that out for bp_is_user().

    Theme author will update

    /Hamid

Viewing 25 results - 8,226 through 8,250 (of 69,109 total)
Skip to toolbar