Forum Replies Created
-
In reply to: Option – This is a notice to all users
Look at
function _bp_enforce_bp_moderate_cap_for_admins
in
bp-core\bp-core-caps.phpNote:
// Only users that can 'manage_options' on this site can 'bp_moderate'So try adding that cap to trainers.
You could also write a function that also uses the
map_meta_caphook, but with a larger number re priority so that it runs after the function noted above.In reply to: Option – This is a notice to all usersThe function that sends notices
function messages_send_noticeinbp-messages\bp-messages-functions.php
has a hard-coded check for bp_moderate:bp_current_user_can( 'bp_moderate' )By default, ‘bp_moderate’ is only assigned to site admins.
Did you try giving the
bp_moderatecapability to trainers?also –
create_usersis a very powerful capability, perhaps unsuitable for a role other than site admin.In reply to: Question about notificationsYou will need to write custom code for that task.
There is lots of existing code/plugins that does similar things.
You could probably tweak an existing plugin to only work for your client.Google: ‘wordpress comment email notification plugin’
You mean the ‘Member Type’ fields?
It may be an issue with your theme.
Try switching momentarily to a WP like 2013 to confirm.In reply to: Buddypress Legacy Files – Up-to-date?Basically, the core uses these files for display:
buddypress\bp-templates\bp-legacy\If you want to change the display, you can overload those files and thereby avoid changing anything in the BP plugin folder.
In reply to: Clone or duplicate a BP GroupI’m not aware of any code re ‘Clone Group’.
And it would be very easy for such code to create a real mess.imo, this is definitely plugin territory.
Look at the generate groups code in this plugin:
https://wordpress.org/plugins/bp-default-data/In reply to: Buddypress Legacy Files – Up-to-date?The current files re themes are here:
buddypress\bp-templates\bp-legacy\You should always use those when overloading to a theme or child theme.
The use of ‘legacy’ in the dir name is unfortunate and confusing, imo.
By grey box, do you mean the ‘Cover Image’ area?
Try uploading a cover image.
Or turning them off via wp-admin > Settings > BuddyPress > Settings > Cover Image UploadsIn reply to: Create user field visible to user and admin onlyafaik, by default all profile fields are visible ( and editable ) by site admins.
So there is no need for Visibility: Admins Only.
Fields set to Visibility: Only Me will be visible to the member and site admins.In reply to: Users automatically joining all groupsIf you disable learndash and signup as a new user – are you automatically a member of all groups?
If not, then issue is somewhere in learndash or a related plugin.
If you are, then you are running some custom code.
BuddyPress does not auto-join new members to groups.In reply to: members-loop.php – Not Updating?Using WP 2013 theme, I can overload the members-loop and the changes are visible.
iow. I can’t duplicate your issue.Try adding some text to the top of your template overload.
Check your
plugins/bp-custom.php, if you have one, for functions re the members loop.Deactivate any plugins re members loop.
In reply to: members-loop.php – Not Updating?It could be that your theme is loading its own version of members-loop.
To confirm switch momentarily to a WP theme like 2013 and see if your edits appear.In reply to: Members connecting with eachotherI’m not aware of a plugin or code re ‘Connect’.
But then you don’t explain what you expect ‘Connect’ to do.
You’ll need to do a thorough search for any existing solutions.In reply to: Add profile meta to activity item…assumed that tweaking the 1, 3 will re-order the placement
Read this to learn what the
1, 3does.To insert your string into the action string, use str_replace.
Something like:
$job_title = '</a> <span class="job-title">' . ' | Web Developer' . '</span>'; $action = str_replace( '</a>', $job_title, $action);In reply to: Restrict Add Group Page by MembershipCreate a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\groups\create.phpAdd a conditional that checks user level at the top.
Or use the do_action hook ( read 2nd answer ) at the top of that file:
do_action( 'bp_before_create_group_page' );
and write a function in yourtheme/functions.phpThe premium version allows you to set a custom redirect url – which could be thought of as a homepage for visitors.
http://www.philopress.com/products/bp-simple-private-pro/In reply to: Remove Cover Photo OptionThe images are not stored in the database.
They are stored in the uploads folder.
For a member with user_id = 1:
/wp-content/uploads/buddypress/members/1/cover-image/To remove the cover photo, use the ‘Delete My Cover Image’ button at the bottom of this screen:
.../members/designloud/profile/change-cover-image/If you don’t see that button, it may be an issue with your theme.
To confirm, try switching momentarily to a WP theme like 2013In reply to: Add profile meta to activity item…this file just pulls in bp_activity_action
And that’s what you need to filter.
There are a couple of filters you can use.
Look atfunction bp_activity_action
in this filebuddypress\bp-activity\bp-activity-template.phpYou probably want to use the first filter.
Something like:function graeme_activity_action( $action, $activity, $r) { $action .= ' something added here'; // simple example return $action; } add_filter( 'bp_get_activity_action_pre_meta', 'graeme_activity_action', 1, 3 );Have you tried https://wordpress.org/plugins/bp-simple-private/ ?
Provide an example of a profile link that results in a 404.
And an example of the link to the members page.It only takes a few seconds to test if it’s a theme or pmpro issue.
Assuming that it’s not deprives you of valuable clues.In reply to: wpdiscuz update edit the user templatewpdiscuz provides support for BuddyPress – not vice versa.
Please talk to them at:
https://wordpress.org/support/plugin/wpdiscuzPlease stop double & triple posting.
Your other posts on this topic have been removed.In reply to: BP TimezonesTry something like:
$member_zone = bp_get_member_profile_data('field=Time Zone'); $member_current_date = new DateTime("now", new DateTimeZone( $member_zone ) ); echo $member_current_date->format('Y-m-d H:i:s');In reply to: Option – This is a notice to all usersCreate a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\messages\compose.phpAdjust the conditional that shows the checkbox so that the ‘trainer’ role is allowed.