Search Results for 'buddypress'
-
AuthorSearch Results
-
March 21, 2017 at 12:52 pm #264865
In reply to: customizing profile-header
Henry Wright
ModeratorCan you show us the full path you have to your child theme’s member-header.php file?
It should be your-theme/buddypress/members/single/member-header.php
March 20, 2017 at 5:04 pm #264845In reply to: Remove members who have no memberships
Hugo Ashmore
ParticipantNote: Please do not provide a .php fix. I edited the php a couple days ago to apply a fix (unrelated to this one) and it crashed my entire site. I will not be editing the php.
I suggest then that you consider contracting a developer to do this for you or contact memberpress to provide a solution.
We are a volunteer help forum for buddypress, the best we can really do is provide code that might help you but doing that while bearing in mind offering code is more than should be expected on these sorts of forums.
March 20, 2017 at 8:58 am #264828In reply to: BuddyPress Newsletter relaunched
Slava Abakumov
ModeratorJust sent a new issue!
BuddyPress Newsletter #25 – BP 2.9 schedule, new BP.org redesign ideas, promo etc
March 18, 2017 at 7:43 pm #264802In reply to: Search, challenge to opponent
zo1234
ParticipantThat seems beyond the scope of buddypress, you may want to search for a gamification plugin. Also, don’t hold your breath on getting an answer here. For such a popular plugin, the support sucks and I’m becoming less and less of a fan of buddypress. The solutions aren’t straight forward, it’s “Here modify 20 files and create this new child theme and create 1000 lines of code”. Not a very user-friendly plugin compared to others.
March 16, 2017 at 10:38 pm #264772In reply to: Profile matching feature
elijeh
ParticipantI looked at the description of that before and thought it seemed to be aimed at matching people with similar characteristics – which is what I already have.
I want something that allows a member to say he/she wants a match to characteristics that are different. For example, she doesn’t smoke but is ok if he does. Or he drinks but wants her to be a person who doesn’t. Or he is 6’3″ tall and is looking for someone who is shorter than that.
My understanding of what I’ve currently got is that it takes one member’s profile and matches it with members who have identical profiles (except for the “man looking for a woman” field).
Do you know if match-me-for-buddypress allows non-identical matching?
March 16, 2017 at 10:07 pm #264771In reply to: Profile matching feature
Venutius
ModeratorTake a look at https://wordpress.org/plugins/match-me-for-buddypress/ I think this is a good start.
March 16, 2017 at 6:31 pm #264767shanebp
ModeratorYou need to contact the creator of that plugin: buddypress-who-clicked-at-my-profile
March 16, 2017 at 12:11 am #264754In reply to: Change “Name” Field to First & Last Name
maccast
ParticipantI was dealing with this problem too. It might not be exactly what you’re looking for, but in my case I just decided to hook into the BP signup, extract the full name, split it at the first space and then update the WordPress ‘first_name’ and ‘last_name’ user metadata fields with the results.
Here is the code you can add to your
functions.phpor custom plug-in:// define the bp_core_signup_user callback function ac_bp_core_signup_user( $user_id ) { // make action magic happen here... $fullname = bp_get_member_profile_data( array( 'field' => 'Name', 'user_id' => $user_id ) ); //split the full name at the first space $name_parts = explode(" ", $fullname, 2); //set the firstname and lastname for WordPress based on the BP name //firstname if( isset($name_parts[0]) ) update_user_meta( $user_id, 'first_name', $name_parts[0] ); //lastname if( isset($name_parts[1]) ) update_user_meta( $user_id, 'last_name', $name_parts[1] ); //not needed for an action, but I always like to return something return $fullname; } // BuddyPress save first name last name to WP profile on signup add_action( 'bp_core_signup_user', 'ac_bp_core_signup_user', 10, 1 );March 15, 2017 at 9:12 pm #264751mikeboltonca
ParticipantShane, I wonder if you can help me stitch together the sequence of events between clicking “Post” on the “What’s new?” form and the moment that
groups_is_user_member()is called.I’m wondering if there might be an intermediary step I could modify so it doesn’t perform the member check in this particular case.
I still need
groups_is_user_member()intact to keep non-managers out of the Management group, so hacking that function directly (or filtering it across the board) won’t do the job for me.Thanks again for your insight. BuddyPress is a gloriously complex system, and it takes a long time to reverse-engineer it by reading docs and looking through the files.
March 15, 2017 at 8:21 pm #264750In reply to: Change “Name” Field to First & Last Name
Henry Wright
ModeratorThanks for the reply, so you’re saying I should rename this field to “First Name” and create a secondary field for “Last Name” ?
That’s one approach you could take.
If there is nothing special about the field, is there a hook or filter where I can replace the field entirely and map them to first / last name fields in WordPress?
I think not unfortunately. You could request one be added by opening a ticket on Trac
March 15, 2017 at 8:04 pm #264745shanebp
ModeratorYup, it’s failing on
groups_is_user_member()inbp-groups\bp-groups-functions.php.You could hack that function, but I think what you really need is a filter hook on the return.
Then your task would be simple.groups_post_update()inbp-templates\bp-legacy\buddypress-functions.phpusesgroups_is_user_member()You could create an enhancement ticket on trac.
March 15, 2017 at 6:01 pm #264742In reply to: Record activity when xprofile field is updated
exentric
ParticipantFor anyone else looking for this ….. and I know there are a lot of you because I found hundreds of similar posts , here it is link I think that this functionality is very very important to buddypress , and hopefully it will be added and extended (i will be posting what I add to this functionality here) , @danbp there is no way I could believe that no one else needed this function
March 15, 2017 at 1:52 pm #264738In reply to: Trying to get property of non-object
AiratTop
ParticipantPHP Notice: Trying to get property of non-object in /site_path/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php on line 534March 15, 2017 at 10:22 am #2647326logics
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.
-
AuthorSearch Results