Forum Replies Created
-
In reply to: Where is Post article page PHP file save
It’s not pretty, but here’s a quick way of adding the user email to the admin groups directory:
add_action( 'bp_groups_admin_manage_member_row', 'venutius_groups_admin_member_row', 10, 2 ); function venutius_groups_admin_member_row( $user_id, $item ){ $user = get_userdata( $user_id ); echo '<span>'. $user->user_email .'</span>'; }You’d put this in your functions.php or bp-custom.php
In reply to: Where is Post article page PHP file saveBuddyPress does not include articles, you can post new activity updates, do you mean that or something else?
I could probably write you a plugin to do that email me on venutius at buddyuser.com and we can talk about it.
This displays the email to group admin in the group members list at the front end.
In reply to: Plugin to Search Multiple FieldsHave you asked the peeps at BP Profile Search?
In reply to: Content disappearing for one user. 2nd time!Actually Stream supports BuddyPress, so give it a go and see if it catches what’s happening. If it’s only affecting one user it’s unlikely to be a bug or conflict though it could maybe be a database error.
In reply to: Content disappearing for one user. 2nd time!So would that be a personal activity update?
In reply to: Content disappearing for one user. 2nd time!What type of content is it?
There’s a plugin called Stream that monitors all WordPress activity, that might catch it but I don’t think it supports other plugins.
This code will display the email addresses in the group members list:
<?php $group_id = bp_get_current_group_id(); $user_id = get_current_user_id(); if ( groups_is_user_admin( $user_id, $group_id ) || groups_is_user_mod( $user_id, $group_id ) || current_user_can( 'manage_options' ) ) : $user_data = get_userdata( bp_get_group_member_id() ); ?> <div class="user_email"> <label><?php echo $user_data->user_email; ?></label> </div> <?php endif;You’d need to overload the members.php for your BP theme and place this code in there.
To automatically remove their membership you could write a script to hook on the member role change and automatically remove them from the group but that’s a more complex job, you’d probably need to pay someone to write it specifically for your site.
The team is currently building the BP REST API, this will be an important part of enabling blocks.
In reply to: BP Activity StreamI didn’t find it slow when I looked, seemed to be really fast, maybe this is an issue local to you?
It is possible to set the per page setting for BP_has_activities, but it seems to me you not loading many activities anyway.
In reply to: Buddypress DocsThere’s two you could try, BuddyPress Docs which is a bit old but still works. Or my own plugin BP Post Status which is the new kid on the block.
BuddyPress Docs sets up it’s own post type and adds collaborative editing to it. This means that the editing experience is somewhat limited.
BP Post status uses standard posts and add group based statuses to it so that posts can be assigned as Group posts, members only friends only etc and since it uses posts (or any other post type) you can exxjoy the full classic editor or my own front end publisher – BP Site Post Note that Gutenberg does not support custom post statuses so it can only really be used in classic editor mode.
There’s a couple of other options, such as BuddyDev’s Blog Categories for Groups or if you are looking for a document library there BP Documents.
In reply to: reset() expects parameter 1 to be arrayhttps://buddypress.trac.wordpress.org/ticket/8005 supposed to be fixed.
Two options!
I’ve not tried this but looking at the codebase there’s a filter that will filter the group attributes immediately before save, meaning new groups should always be hidden if you want to make it that way.
Try this:
add_filter( 'groups_group_before_save', venutius_make_new_group_hidden' ) function venutius_make_new_group_hidden( $group_ref_array ) { if ( current_user_can( 'manage_options' ) ) { return $group_ref_array; //let admin set any group status } $group_ref_array->status = 'hidden'; return $group_ref_array; }Let me know if it works
In reply to: Members Page Link Listed on Menu for Logged In UsersYou can use https://wordpress.org/plugins/nav-menu-roles/
In reply to: buddypress registration page is not translatingThen I’m thinking the issue is with loco translate. I’m able to translate the registration page using a plugin call WPT Custom Mo file, if it can do it, Loco should I would have thought.
In reply to: Admin / Rankings / RightsYep but it would require custom code I would have said. There’s a BuddyPress filter called bp_current_user_can and a WordPress filter map_meta_cap you could hook into these, determine the user and situation and choose to allow the action accordingly.
In reply to: buddypress registration page is not translatingI think the first thing to check is that it’s still the BuddyPress registration page. Your theme may have overloaded it and that might be the issue.
In reply to: New update problemsWhich links in particular?
In reply to: rss groupHi there, I can confirm this as an issue, would you like to raise this on trac to get it fixed?
In reply to: Buddy Avatar – OOOPS, SORRY! WE COULDN’T FIND ITAh got you. Looks like something is blocking that page. I’d try the following in the first instance:
1. Check you have member profiles enabled in Settings>>BuddyPress you should have but it’s an easy check.
2. Re-save your permalinks, making sure you are not using the default (top) setting.
3. Deactivate all other plugins apart from BuddyPress and check to see if it works.
4. Try using a default theme such as 2017.
One of those steps should identify the problem.
In reply to: Customized Login PageBuddyPress uses the WordPress login page so any WordPress login page customiser will do that for you. Most have much the same features so just find one that’s still being maintained.
In reply to: Buddy Avatar – OOOPS, SORRY! WE COULDN’T FIND ITBuddyPress does not have an edit function for the avatar and that message does not appear in the BuddyPress codebase, are you sure this is a feature of BuddyPress?
In reply to: BP Private message issueYour best bet is to first deactivate all other plugins apart from BuddyPress and see if you user still have the issue. Then you can rule out a conflict.