Search Results for 'buddypress'
-
AuthorSearch Results
-
March 15, 2017 at 10:22 am #264732
6logics
ParticipantI 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' ) ); }March 15, 2017 at 9:08 am #2647316logics
Participantwe 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.
March 15, 2017 at 7:20 am #264728safewp
ParticipantFor 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.2Please help.
Thank you.
March 14, 2017 at 7:30 pm #264717In reply to: Is it profile or members conditional tags?
Henry Wright
ModeratorI’ve just removed
bp_is_member()from the Template Tag Reference so there’s no confusion going forward:March 14, 2017 at 6:36 pm #264715In reply to: Get notification action link
shanebp
ModeratorMarch 13, 2017 at 2:12 pm #264689In reply to: Novice: How to install/use ACTIVITY STREAM features
Venutius
ModeratorThat shortcode is not part of BuddyPress, you need to refer your request to the plugin developer for the shortcode, would that be BuddyDev?
March 13, 2017 at 9:51 am #264686In reply to: BuddyPress Newsletter relaunched
Slava Abakumov
ModeratorJust sent a new issue!
BuddyPress Newsletter – #24 – BP security release, Community Hosting, BuddyApp Theme, BP with WooCommerce etc
March 13, 2017 at 9:00 am #264685In reply to: Username exposed on the profil
McCage
ParticipantI 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.
March 12, 2017 at 2:45 pm #264677Muhammad Kashif
Participantthis may be a good start https://wordpress.org/plugins/match-me-for-buddypress/
March 10, 2017 at 10:48 pm #264659In reply to: Activity Custom Content After Post Iteration
Henry Wright
ModeratorHow do I do that on the server side?
You’d use the modulo operator, like in my example above.
Did this work for you?
March 10, 2017 at 10:27 pm #264657In reply to: template overload isn’t working as expected
r-a-y
KeymasterActually, what hnla points out is correct. Disregard what I previously wrote, I was thinking of something entirely different!
index-directory.phphas to be a full template withget_header()andget_footer().You should copy your theme’s
page.phptemplate and rename it toindex-directory.php. Then move this file towp-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.phpand make your changes to that file.March 10, 2017 at 9:39 pm #264655In reply to: template overload isn’t working as expected
kalico
ParticipantHi @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.phpdoes not work as the index.php file when copied to
/community/groups/index.phpNow, 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.
March 10, 2017 at 8:13 pm #264652In reply to: template overload isn’t working as expected
r-a-y
Keymaster@kalico –
Template 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.phpdirectly.If this doesn’t exist in your theme, that means you are using a child theme, so copy/themes/PARENT-THEME/groups/index.phpto your child theme and make your mods.I’m so wrong! Read my updated reply below.
March 10, 2017 at 7:13 pm #264649In reply to: Activity Custom Content After Post Iteration
tommyhares
Participantdo_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; ?>March 9, 2017 at 10:11 pm #264632In reply to: template overload isn’t working as expected
kalico
ParticipantI’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.phpover to
/community/groups/index.phpwith 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!
March 9, 2017 at 8:39 pm #264628In reply to: Static page to Dynamic
Henry Wright
ModeratorYou use
bp_core_new_nav_item(). See this article for more info:March 9, 2017 at 9:58 am #264613In reply to: template overload isn’t working as expected
danbp
Participantbp-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.phpMarch 9, 2017 at 9:44 am #264610In reply to: Buddypress Nouveua
danbp
ParticipantNot defined yet. It’s still a work in progress.
https://github.com/buddypress/next-template-packsor follow tickets related to “bp-nouveau” on Trac.
March 9, 2017 at 4:40 am #264594rafiquej
ParticipantThanks for your replies 🙂
@danbp your solution only changedFromemail address. But i want to changeReply-toemail address tonoreply@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 94It only appears when i use this code, or else it works fine. That’s weird :/
March 8, 2017 at 9:39 pm #264586In reply to: Profiles: How to expand it?
r-a-y
KeymasterView this guide to create your own profile fields:
March 8, 2017 at 9:37 pm #264585r-a-y
KeymasterI commented on this behavior in this ticket comment:
https://buddypress.trac.wordpress.org/ticket/7051#comment:3BuddyPress sets the
Reply-Toemail 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 theFromemail address header and notReply-Toheader.The following would work:
add_filter( 'bp_email_set_reply_to', function( $retval ) { return new BP_Email_Recipient( 'noreply@example.com' ); } );March 8, 2017 at 7:54 pm #264580In reply to: White Page
danbp
ParticipantBP 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:
March 8, 2017 at 7:09 pm #264578Venutius
ModeratorThat 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.
March 8, 2017 at 5:58 pm #264574In reply to: Issue with Avatars: wrong upload path
giobby
ParticipantFYI – 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.
March 8, 2017 at 3:52 am #264566In reply to: fatal error message
paripari
ParticipantThank 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
-
AuthorSearch Results