Search Results for 'buddypress'
-
AuthorSearch Results
-
March 23, 2017 at 8:37 pm #264961
In reply to: Filtering activity
Venutius
ModeratorYou probably just need to copy the content of your old child theme buddypress directory into your new childtheme directory.
March 23, 2017 at 12:57 pm #264949In reply to: Can’t change user_mentionname by buser_username
danbp
ParticipantPlease read the forum before asking… A similar question came up yesterday with an answer to
This modification not work… I don’t understand why
March 23, 2017 at 12:54 pm #264948In reply to: Add New Tab Private to each user
danbp
ParticipantCopy the whole content of that example file into bp-custom.php.
You can also transform it into a mu-plugin by just adding it some header information.
Once done, you can test the tabs and try to understand how they work. And then apply your own preference.
March 23, 2017 at 11:05 am #264946In reply to: Automatically activate users added by administrator
berthaboy73
ParticipantOK – I’ve just found this:
add_action('bp_core_activated_user', 'kleo_add_member_activity'); function kleo_add_member_activity($user_id) { add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s")); }on https://seventhqueen.com/blog/buddypress/show-users-members-directory-right-account-activation.html
So will just have to import user data again (using https://codection.com/import-users-csv-meta/) and modify the code to add that activity record.
March 23, 2017 at 8:54 am #264941In reply to: customizing profile-header
danbp
Participantwhat i wanted to say was that if you use the allow header image option, BP will use a different header template. When you don’t use this option, BP will use member-header.php
The’re two component who use header’s: members and groups.
To handle groups header, it is exactly the same logic as for the members header.
In the group directory (bp-templates/bp-legacy/buddypress/groups), you have 2 files named group-header.php and cover-image-header.php where you can handle goup header customization.March 23, 2017 at 8:39 am #264939In reply to: Username vs profilename
danbp
ParticipantTry this plugin:
https://github.com/r-a-y/buddypress-usernames-onlyFor the “why”, perhaps it is because “chat” and “forum” have their own logic. Both aren’t part of BuddyPress.
Note also that there is no obligation to use all the things appearing on the templates. If you don’t want them, symply remove or hide them.For example, the names who appear on profile header are effectively different. Why would you need to use both, that’s nonsense! I guess this is only in so you can choose which one is better for your project. And it is so because (probably) it is better and easier to choose between something you see thant between something theoretical exposed or detailed in code comments…
Note that my remark concern only the appearence, not the internal fonctionality of username vs.displayname or nicename.
March 23, 2017 at 5:27 am #264937In reply to: Anyone Know How I can Get Buddypress version 2.8.1
March 22, 2017 at 12:16 pm #264894Topic: Profile Visibility Not showing Dropdown
in forum How-to & TroubleshootingDroidism
ParticipantEnvironment:
PHP 7.0.3
Apache webserver
MySQL v5.5.49
WordPress v4.7.3
BuddyPress v2.8.2
Theme: Emmet Lite v1.5.0
Other plugin: noneHi,
I have installed BuddyPress on a fresh local install and used the Emmet Lite theme.
My problem is that when I create a user, login to the site using a completely different browser, with the cache purged and browsing history removed on start, and go to the user profile, I do not have the option to change the profile visibility. The dropdown for the Name is not showing at all.
Please see settings-profile-visibility on the BuddyPress codex.
When you view the image you will see “Base -> Name” and “Visibility -> Everyone” in a dropdown. In my install the “Visibility -> Name” is not a dropdown and not selectable attall.
Thanks in advance for helping me figure this one out.
March 22, 2017 at 10:44 am #264893In reply to: hide members list on opening directory
Henry Wright
ModeratorIn that case there’s a few options. You could try to find a plugin. If a plugin isn’t available you could suggest the feature. Alternatively you could hire a developer.
- https://en-gb.wordpress.org/plugins/
- https://wordpress.org/ideas/
- https://buddypress.org/support/forum/plugin-forums/bp-jobs-board/
Hope this helps!
March 22, 2017 at 9:08 am #264888In reply to: How Do You Reorganize Groups?
danbp
ParticipantGeneral knowledge about Groups
Your question is really too vague (a way to reorganize the groups). Groupss can already be filtered by Last Active (default), Most Members, Newly Created, or Alphabetical.
If not enough, you need to give more details about what you want.
March 22, 2017 at 9:02 am #264886In reply to: Get error 508 on buddy press. what I should do
danbp
ParticipantMarch 21, 2017 at 12:55 pm #264866In reply to: hide members list on opening directory
Henry Wright
ModeratorYou can filter using
bp_after_has_members_parse_args. Take a look here for examples:March 21, 2017 at 12:52 pm #264865In 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 534 -
AuthorSearch Results