-
David Cavins replied to the topic Email’s situation’s are not displayed… in the forum Requests & Feedback 8 years, 9 months ago
You can also try the BuddyPress email reinstallation tool if you’re having problems. It’s in WP Admin at Tools > BuddyPress, like
/wp-admin/tools.php?page=bp-tools. -
David Cavins replied to the topic Question Regarding Group Creation Link in the forum Ideas 8 years, 9 months ago
Hi @destac–
Please open a ticket on trac: https://buddypress.trac.wordpress.org/
which is a better place to suggest improvements to BuddyPress.
Thanks!
-David
-
David Cavins replied to the topic Hiding profile tabs (i.e. messages) based on user role in the forum Creating & Extending 8 years, 9 months ago
I’m note sure how your custom roles were created, so I can’t tell you how to figure out if the current user is one or the other, but basically, you’ll be using code like this:
[Read more]
function bpcodex_remove_member_tab_on_role() {
$role = 'owner;
if ( 'owner' == $role ) {
bp_core_remove_nav_item( 'messages' );
bp_core_remove_nav_item( 'friends'… -
David Cavins replied to the topic creating a group type page in the forum Creating & Extending 8 years, 9 months ago
Hi, those details are parsed in
bp_ajax_querystring(), and there’s a filter you can work with:bp_ajax_querystring.You can also filter the query args for every
bp_has_groups()loop directly, using the filterbp_after_has_groups_parse_args.However, the simpler answer is probably to use your group type’s built-in directory page, which would have…[Read more]
-
David Cavins replied to the topic Fixing deprecated bp_nav code? in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi @katmacau–
Here are some examples for changing navigation menus using the new API:
This is what I’m guessing you’ll want to use:
`
function bpcodex_remove_member_notifications_tab() {
bp_core_remove_nav_item( ‘notifications’ );
}
add_action( ‘bp_actions’,…[Read more] -
David Cavins replied to the topic Profile Links – Removing http/https in the forum Creating & Extending 8 years, 9 months ago
Hi there. If I’m understanding correctly, you’re wanting to modify URLs added to profile fields by your users. The profile fields are analyzed for search links and other links here:
https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-xprofile/bp-xprofile-filters.php#L326BP uses the WP function
make_clickable()to make links…[Read more] -
David Cavins replied to the topic [Resolved] Still getting a Fatal Error with BP Group Hierarchy plugin in the forum Third Party Plugins 8 years, 9 months ago
I’ve written a updated plugin to add group hierarchy: https://github.com/dcavins/hierarchical-groups-for-bp
It’s basically a drop-in replacement for the original BPGH, with a few other features rolled in. Be sure to use the plugin’s options page to import your BPGH group settings.
-
David Cavins replied to the topic Admin and other usergourp color in online widget in the forum Creating & Extending 8 years, 10 months ago
Here’s an example of how to add the user’s roles to their avatar (profile image).
https://gist.github.com/dcavins/31c2f264d0e56cd2832cb3c63a994b97Then you can use css to change the appearance based on roles.
-
David Cavins replied to the topic creating group type pages in the forum How-to & Troubleshooting 8 years, 10 months ago
Hi, the groups directory can handle that using some built-in arguments: https://codex.buddypress.org/developer/group-types/
mysite.com/groups/type/ninja could be use to show only groups of type “ninja”.
-
David Cavins replied to the topic How to create a dynamic link to “my friends” in the forum How-to & Troubleshooting 8 years, 10 months ago
@commando1 As long as you have BP 2.6 or newer, the redirection will happen automatically. If it isn’t, you might try turning off other plugins to see if any of them have hijacked some URLs.
-
David Cavins replied to the topic Creating custom registration page, moving elements in the forum Creating & Extending 8 years, 10 months ago
Hi there,
Here’s an example of adding a custom section to the registration form. All you have to do if it’s static is add it and handle the input:
https://gist.github.com/dcavins/e3e6a702e35d4f9ec8948c920d8b6c03You could similarly add other profile fields/field groups on any of the hooks available on the registration page, though I’d use a…[Read more]
-
David Cavins replied to the topic Broken links in the forum Installing BuddyPress 8 years, 10 months ago
The links themselves look OK to me (BuddyPress is generating the correct links), but they are redirecting away at the server level. I’d check your htaccess files and other server-level routing code to find where the malicious code’s been added.
Also, change your hosting setup passwords (like control panel, FTP access, DB access) as soon as you can.
-
David Cavins replied to the topic Is there a Child Plugin or do we start afresh after update? in the forum How-to & Troubleshooting 8 years, 10 months ago
Place the template file you want to use in your child them at the location specified here: https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/#registration-page
When BuddyPress is updated, it won’t affect your child theme.
-
David Cavins replied to the topic Is there a Child Plugin or do we start afresh after update? in the forum How-to & Troubleshooting 8 years, 10 months ago
Yes, the template hierarchy will use template parts from your theme:
If you’re using a theme that is updated, then, yes, you should use a child theme to keep your changes.
-
David Cavins replied to the topic Showing groups, filter users in the forum How-to & Troubleshooting 8 years, 10 months ago
Hi Marc-
It sounds like you’re just getting started. Custom fields are part of the extended profile component. Read more about it here:
It is not really possible to show groups with…[Read more]
-
David Cavins replied to the topic why buddypress have unknow autocomplete code? in the forum Third Party Plugins 8 years, 10 months ago
Hello there. BuddyPress doesn’t add jQuery to a site (it relies on WordPress to provide jQuery). It looks to me like you’re using a plugin to fetch jQuery from a CDN rather than use the local version that comes with WordPress. Disable your plugins one at a time until the code changes, then you’ll have found the cuplrit.
-
David Cavins replied to the topic url with code for username in the forum Requests & Feedback 8 years, 10 months ago
I’m not sure exactly what you’re asking for, but my best guess is that you’re looking for a URL that will redirect the current user to his or her user profile.
-
David Cavins replied to the topic Show number of posts per member in the forum How-to & Troubleshooting 8 years, 12 months ago
WordPress has a built-in function for getting the number posts published by a user:
https://codex.wordpress.org/Function_Reference/count_user_postsIf you’ve been able to figure out how to display profile data, use the same approach here, and you should be in good shape.
-
David Cavins replied to the topic Moderation for buddypress activity in the forum How-to & Troubleshooting 8 years, 12 months ago
This plugin doesn’t add a pending queue for approval, but it does allow users to flag inappropriate posts for moderation:
https://github.com/hwdsbcommons/BP-Moderation/ -
David Cavins replied to the topic Moving time-since span in the forum How-to & Troubleshooting 8 years, 12 months ago
The simplest answer is probably to style that span as
display: blockthen you have a number of options for forcing it below other elements. It’s going to depend a lot on your theme.If you choose to modify the template, the template to modify would go in
child-theme/buddypress/members/member-header.php. - Load More
@dcavins
Active 1 week ago