googling “buddypress approve new users” helps before posting to the forum
https://wordpress.org/plugins/bp-registration-options/
i use donmik’s excellent plugin “BuddyPress Xprofile Custom Fields Type” for this…you can add a TOS to xprofile field
@osamanuman @danbp told you to check with Twenty Fifteen and update this thread…instead of that you say “contact with my theme developer”..if its a custom theme your theme developer can fix it..the issue is not related to buddypress…
have you checked this before starting off: https://codex.buddypress.org/getting-started/
PHP must have the GD or imagick modules installed (on the server) to allow re-sizing of images; BP avatar uploads will fail without one of these modules activated (WP will simply fail to create image sizes for posts but won’t show an error)
this might help….create index-register.php
Template Hierarchy
You can put it in your theme/functions.php or in bp-custom.php.
@rglennnall,
thank you for your kind comment… 6 months later !
The initial question was: Is there a way, through a function, I can assign users to groups based on their user role? and Venutius jumped in with: i’d like to know the answer too.
As i’m not a professional, only volonteer, i answer about what i understand – and not only to things i’m sure. Like you apparently. In hope that my answer to your today’s question will satisfy you.
For now, keep your remarks for you, especially if it is to make such a sterile and unconstructive comment on an old topic.
Hi,
login as ste admin and go to dashboard > Groups (wp-admin/admin.php?page=bp-groups). There will be a list of all existing groups. Click on the one you want to asign members.
Eventually open screen option tab (underneath top right corner) and ensure that add new members and members admin options are checked.
Below the group description field, you have another box where you can enter a username for the member you want to add. Normaly you’ll get one by auto-completion after typing a letter or two.
That’all.
Codex ref: https://codex.buddypress.org/administrator-guide/groups/#groups-management-panels
A quick followup, I see the permitted field value for the checkbox (in this case) is stored in field 315 in table wp_bp_xprofile_fields – how do I query this checkbox setting value?
I want to pull the correct value from the database, so in case I update that checkbox field’s option in the backend, I can correctly set it.
I don’t see a function in /buddypress/bp-xprofile/bp-xprofile-functions.php: that seems to pull this, and nothing is locking in with Google….
Hi, Does anybody know how to change the text of the favorite button to an image and still return the AJAX function. I have changed it to shape but it does not return AJAX function that is triggered when you click the favorite button. I’ve changed bp-templates/bp-legacy/buddypress-functions.php to this:
/**
* Mark an activity as a favourite via a POST request.
...
*/
function bp_legacy_theme_mark_activity_favorite() {
// Bail if not a POST action.
if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
return;
if ( bp_activity_add_user_favorite( $_POST['id'] ) )
echo '<img src="../images/star_on.png">';
else
echo '<img src="../images/star_off.png">';
exit;
}
/**
* Un-favourite an activity via a POST request.
...
function bp_legacy_theme_unmark_activity_favorite() {
// Bail if not a POST action.
if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
return;
if ( bp_activity_remove_user_favorite( $_POST['id'] ) )
echo '<img src="../images/star_off.png">';
else
echo '<img src="../images/star_on.png">';
exit;
}
I also did the the necessary adjustment to /buddypress/activity/entry.php and changed _e( 'Favorite', 'buddypress' ); to echo '<img src="../images/star_off.png">'; and _e( 'Remove Favorite', 'buddypress' ); to echo '<img src="../images/star_on.png">';Favourit button now has changed its shape to a nice star that change when you click on it but not as AJAX. It keeps refreshing the page each time I click the button.
any help would be appreciated.
BuddyPress: 2.5.2 —- WP: 4.5 2.5.2 —- WP: 4.5
Did you try searching for info re BP rss feeds?
Perhaps this will help:
https://buddypress.org/support/topic/disable-all-rss-feeds-update/
I changed the language files instead of using the gettext method because of the performance warnings.
However, I still can’t figure out how to change the url
I followed this thread
https://buddypress.org/support/topic/resolved-changing-groups-to-teams/
Which lead me to try the suggestion but it looks like that constant is at least deprecated if not removed.
Changing Internal Configuration Settings
Any ideas?
Hi @imath ,
I saw you take a lot of interest with this problem and I’m having same issue, or at last similar issue.
I can’t see my avatar profile pictures and the link to change that.
I’m using Kleo theme, but if I put twentyfifteen the issue is still there.
I disable all the plugins except buddypress and the issue is still there.
Have the latest version of buddypress and wordpress.
Help please… :~(
Hi,
You’re probably on a large screen. Default display of the directory is already a list. See template code (members-loop.php) using ul and li !
Check your theme or try to simulate a mobile screen (if u use firefox it’s Ctrl+shif+m) to see if your directory get wrapped or not. If not, adjust your (child)theme CSS.
Have you looked at template hierarchy?
Template Hierarchy
Hi @etavio
Your custom plugin is most likely filtering get_avatar to display your custom images. BuddyPress actually bypasses that filter through the use of bp_core_fetch_avatar().
Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-avatars.php#L192
You will need to use a different filter.
BuddyPress users are the same as WordPress so you can create a user using https://codex.wordpress.org/Function_Reference/wp_create_user
To set profile fields data:
xprofile_set_field_data( $field, $user_id, $value, $is_required = false )
$fields = field id
$user_id = current login user id
$value = inserted value
$is_required = boolean
BuddyPress searches username and profile fields to find a member. You would need to develop a custom solution for this. Is this requirement for site admins? If so, you can find members by id in the admin -> Users menu item.
Any profile fields you create in the admin that are in the first section are automatically added to the registration form.
User Extended Profiles
Hi,
you have to check your custom plugin. Or even to deactivate it, as it is no more necessary when you use BP. Problem seems to be that you created something related to members handling before BP was installed.
BuddyPress handles members and their avatars via the buit-in WP avatar function.
If you need more help, please give details about your config, theme and custom code. Thxs 😉
Hi,
it’s related to a custom work of the theme used on buddypress.org. You can read more here and get the source code here.
Read also some advice here
If so, make sure you assign that page to your BuddyPress “register” page under the BuddyPress admin menu.
Unless you are explicitly using the bp-default theme, not recommended, you should always use these templates: buddypress\bp-templates\bp-legacy\
iow. this members-loop:
buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php
Thanks, Shane.
So I have it working now using:
$your_city= xprofile_get_field_data( 'City' ,bp_get_member_user_id());
if ( $your_city != false )
echo $your_city;
I am super new to BuddyPress – is there a reason not to do it that way? I really appreciate your help.
Do not edit core BuddyPress files. Next update, it’ll be replaced and you’ll have to do it all over again.