Forum Replies Created
-
In reply to: Auto adding users to grpups
BuddyPress does not include a feature to sell membership
In reply to: Buddypress isn’t creating pagesThe next thing to check is if there is something messing with the BP pages, so deactivate all other plugins apart from BuddyPress and install a default theme such as 2016 and see if they display.
In reply to: Buddypress isn’t creating pagesHi there,
Two things to check:
1. Have you linked the pages to BuddyPress in Settings/BuddyPress/Pages?
2. Have you changed your permalink settings to be anything other than the WordPress Default?
In reply to: Copy buddypress files into child themeso the directory structure should look like this:
themes/your-child-theme/buddypress/members/file.phpetc. can you confirm this is what you have got?Would you have a plugin or theme that is redirecting the buddypress default template search?
In reply to: Auto adding users to grpupsIn reply to: Customizing BuddyPress Template FilesYou’d have to do something like this:
function venutius_start() { if( function_exists( 'bp_register_template_stack' ) ) { bp_register_template_stack( 'venutius_register_template_location' ); } // if viewing a member page, overload the template if ( bp_is_user() ) { if ( bp_get_theme_package_id() == 'legacy' ) { add_filter( 'bp_get_template_part', 'venutius_replace_template_legacy', 10, 3 ); } if ( bp_get_theme_package_id() == 'nouveau' ) { add_filter( 'bp_get_template_part', 'venutius_replace_template_nouveau', 10, 3 ); } } } add_action( 'bp_init', 'venutius_start' ); function venutius_register_template_location() { return <directory>; //replace with the main directory you are putting your new template files in } function venutius_replace_template_nouveau( $templates, $slug, $name ) { switch($slug) { case 'members/single/profile/change-avatar' : if ( '<your_directory>/members/single/profile/change-avatar.php' ) ) { return array( 'members/single/profile/change-avatar.php' ); break; } else { return $templates; break; } } return $templates; } function venutius_replace_template_legacy( $templates, $slug, $name ) { switch($slug) { case 'members/single/profile/change-avatar' : if ( file_exists( '<your directory>/'members/single/profile/change-avatar.php' ) ) { return array( 'members/single/profile/change-avatar.php' ); break; } else { return $templates; break; } } return $templates; }Something like that should work, not tested it though but you should get the idea.
In reply to: bp_before_profile_avatar_upload_content obsolete !!?Hi there, presumably you have changed to the BP Nouveau theme, in this case the action hook name has changed from
bp_before_profile_avatar_upload_contenttobp_before_member_avatar_upload_content.In reply to: Show pending friend requestsI’ve not seen such a plugin
In reply to: Customizing BuddyPress Template FilesThat would probably be best, otherwise you’d have to write your own progrmatic way of switching between the two template files depending on the theme used.
In reply to: Customizing BuddyPress Template FilesYou’d need to change the overload file to be one from the legacy template.
In reply to: remove sidebar on members pageThat’s down to your theme, open the page in the editor and see if there’s an option to have a one column layout applied to it.
In reply to: How to Hide Export Data in user profile settingsBy the looks of things you can try the following:
add_filter( 'bp_settings_show_user_data_page', 'venutius_remove_data_page' ); function venutius_remove_data_page($filter) { return false; }You could put this in your functions.php or bp-custom.php
In reply to: Social Media WebsiteI’d first try switching between BP Nouveau and BP Legacy in settings/BuddyPress/Options. I’d then try a default theme.
In reply to: Producing array of group user idsYes that might be easier, presumably you just need to tweak the activity_add function to make it group specific.
I think the issue with using a nesting plugin to allow nesting on shortcode within another makes it pretty difficult to get support, it could be any of the three plugins that’s not working correctly.
In reply to: Producing array of group user idsI’ve not played with Toolset so have limited knowledge of that. I take it that it’s expecting a comma delimited list of usernames. my first question is – is it looking for the WP Username and is your list returning them correctly (as opposed to the BuddyPress fullname).
I think what I’d do first is to take the shortcode output and paste this into the Toolset shortcode manually to see if that works. If it does then it would appear the Toolset shortcode and your shortcode are not interacting properly.
In reply to: Producing array of group user idstake a look at https://wordpress.org/plugins/bp-profile-shortcodes-extra/ in this plugin there’s a group members list shortcode, you should be able to pick up what you need from there.
In reply to: Group’s main navigation missing forum and adminThat sounds like you may have a JavaScript issue, try seeing if anything is reported in your browsers JavaScript console – right click on page, select inspect element and then select the console.
In reply to: Group’s main navigation missing forum and adminImgur allows you to upload images and provide a link to view them.
By the sounds of things you probably have a conflict. Things I would try:
1. Set BuddyPress theme to BP Legacy
2. Deactivate all other plugins apart from BuddyPress
3. Try with a default theme such as 2016.In reply to: Group’s main navigation missing forum and adminYou can use Imgur to provide a link to the image
In reply to: Group’s main navigation missing forum and adminHi there, have you enabled group forums in Settings/Forums?
In reply to: Like/ShareYou could try WPUlike and maybe BuddyPress Activity Share
In reply to: Adding wordpress capabilities to buddypress adminsOne thing about this is that since group creation is open to all users, creating a group would be a simple way to get post creation rights. You may want to look at BuddyPress Restrict Group Creation to limit who can create a group in the first place.
In reply to: Adding wordpress capabilities to buddypress adminsHi D4nny,
a simple way of doing this I thought would be to hook off a groups creation completion action as follows:
add_action( 'groups_group_create_complete', 'venutius_auto_change_role' ); function venutius_auto_change_role() { $user = get_userdata( bp_loggedin_user_id() ); if ( in_array( 'subscriber', $user->roles ) !! in_array( 'contributor', $user->roles ) ) { $user->set_role( 'author' ); } }I’ve not tested this, it’s just off the top of my head. It should only set the roles of subscribers and contributors to author otherwise it would downgrade other user roles.
In reply to: Where is the BP Plugin repository?That’s probably one for the bbPress forums then – https://bbpress.org/forums/ within each group with a forum there should be a forum menu item that links to the group forum. I’d first check there are no plugin conflicts by deactivating all other plugins except for BuddyPress and bbPress, if you still don’t get the menu item within the group then try a default theme such as 2016. BuddyPress forums are provided by bbPress, so that’s the best place to go for support.
In reply to: Where is the BP Plugin repository?Ah you mean there’s not a forum menu item within the group itself?