-
David Cavins replied to the topic Change activity link on a multi language site in the forum How-to & Troubleshooting 6 years, 9 months ago
Hi Martijn-
I imagine that the reason that no one answered is that none of the volunteers that offer help here knows anything about your specific issue.
You can change the activity directory link like you were guessing, using the
bp_get_activity_directory_permalink
filter:
[Read more]
add_filter( 'bp_get_activity_directory_permalink', function ( $url )… -
David Cavins replied to the topic [Resolved] Change Order by (Groups –> Documents) in the forum How-to & Troubleshooting 6 years, 9 months ago
Hi Ulrich-
I’m guessing this is also about BP Docs, and the same filter holds the answer:
add_filter( 'bp_after_bp_docs_has_docs_parse_args', function ( $args ) {
$args['orderby'] = 'title';
$args['order'] = 'ASC';
return $args;
} );
-
David Cavins replied to the topic [Resolved] Change number of Viewing item (Groups) in the forum How-to & Troubleshooting 6 years, 9 months ago
Hi Ulrich-
It sounds like you’re talking about BuddyPress Docs, not BP. If so, there’s a filter, and you could use it something like this:
add_filter( 'bp_after_bp_docs_has_docs_parse_args', function ( $args ) {
$args['posts_per_page'] = 100;
return $args;
} );
-
David Cavins replied to the topic Profile Links – Removing http/https in the forum Creating & Extending 6 years, 9 months ago
Sounds promising!
-
David Cavins replied to the topic Register issues – Looping in the forum How-to & Troubleshooting 6 years, 9 months ago
Hello there. BuddyPress doesn’t use a shortcode–a register page just need to exist and be identified. Could you be using some other plugin?
Otherwise, double-check that the register page is properly associated at wp-admin > settings > buddypress.
-
David Cavins replied to the topic Not receiving most notification emails. All plugins deactivated in the forum How-to & Troubleshooting 6 years, 9 months ago
Hello, if emails are being sent (you’re receiving them at a Yahoo address), then my first guess would be that gmail is treating the mails as spam. Look in your spam folder to see if they’re there.
There are a number of ways to improve deliverability, but that’s beyond the scope of BuddyPress. You might read up on the topic at SparkPost or one of…[Read more]
-
David Cavins replied to the topic Fixing deprecated bp_nav code? in the forum How-to & Troubleshooting 6 years, 9 months ago
To change items, see the link I referenced: https://codex.buddypress.org/developer/navigation-api/#change-item-names-of-users-and-groups-nav-menus
-
David Cavins replied to the topic Show Follow Button on Each Member's Profile Page in the forum Third Party Plugins 6 years, 9 months ago
BuddyPress adds the friends button via the action:
add_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );
You’re saying “follow” so I’m assuming that you’re using a plugin that modifies the basic BP behavior. You might check to see that that plugin doesn’t unhook the
bp_add_friend_button()
from the member header.…[Read more] -
David Cavins replied to the topic Profile Links – Removing http/https in the forum Creating & Extending 6 years, 9 months ago
Huh. Well, I guess you could probably find URLs like that using some regular expression pattern for
<a href="<url>"><url></a>
and apply it like you did at https://core.trac.wordpress.org/ticket/32787, but I’m no regex expert, so I can’t help with that.
It would be easier once
make_clickable()
adds a filter, for sure. -
David Cavins replied to the topic Email's situation's are not displayed… in the forum Requests & Feedback 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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]
- Load More
@dcavins
Active 1 month, 2 weeks ago