Forum Replies Created
-
In reply to: Help with REST API
Hi @meganelford,
basically, your developer is requesting information so that the app can authenticate with the BuddyPress site. Due to the fact users are authenticated, the app needs permission to authenticate using those keys you mentioned.
To make that happen you would need to have a token or oAuth plugin setup on your buddypress site. After that, create those API keys and provide to her.
Here are a few plugins you could try:
https://github.com/WP-API/jwt-authJust be aware that whatever choice you make, there will be a learning curve.
Also, I’d recommend checking how the API will affect the intranet nature of your site. For example, if you intranet is private (the front-end of the site), current BuddyPress API is open. Meaning, some information is open to the public (not logged in information, of course).
Just something to keep in mind. Hope this answer your question, or at least, provides you with next steps (install the plugin and pass the keys information to her).
🙂
In reply to: Buddypress widgets!I’d recommend searching here: https://wordpress.org/plugins/
In reply to: Pefil BuddypressCould you elaborate on that? Don’t understand the request.
Awesome!
In reply to: BuddyPress doesn’t support WP-Rocket?I don’t think there is a corelation. Maybe there is but it might be too specific for your theme.
In reply to: How to use hooks when registering usersThere is no filter with this name. I think you mean an action:
add_action( 'bp_core_activated_user' );In reply to: Make everyone friends automaticallyEven with the BuddyPress CLI, this isn’t feasible. The best option I can think of is you creating a custom command or script to iterate the users and add and accept each other’s friendship requests.
BuddyPress has a CLI command now you can use.
wp bp tool repair friend-countIn reply to: Remove the “General” tab in profile settingsOther option would be: redirect the general tab url to the memberpress account page.
In reply to: Buddypress skeleton componentI agree! The integration will depend a lot on what you are doing, not related to the skeleton per se. So for starters, I think you’ll be all right.
In reply to: deleting records in wp_bp_notificationsWe just introduced a cli command,
wp bp notification delete, that might help you in deleting those notifications.In reply to: confirmation emails are not sent for new usersAlso, it’s important to check if it is a delivery problem. Try to confirm if other e-mails are being sent via SMTP or PHP.
I just had a client with a similar problem where the real culprit was SMTP/PHP related.
In reply to: exporting data, users, and whole bpThere is already a ticket about it: https://buddypress.trac.wordpress.org/ticket/408
In reply to: Alternative to XprofileBuddyPress is alive! 🙂
In reply to: How do i get all the xprofile data from only userid?You can use the BuddyPress REST API for that: https://github.com/buddypress/BP-REST/
It is still a work in progress. But usable.
Use the subject filter:
bp_get_messages_subject_valueYou can certainly use BuddyPress WP CLI for that: https://github.com/buddypress/wp-cli-buddypress
It has a
wp bp group membercommand.Something like
wp bp group member remove --group-id={GROUP_ID} --user-id={MEMBER_ID}In reply to: Rebooting Activity Stream?You can use wp-cli-buddypress to delete the activities from the command line: https://github.com/buddypress/wp-cli-buddypress
In reply to: How to add extra class to AvatarsYou can try something like this:
function yousite_filter_class( $class, $item_id, $object, $params ) { if ( current_user_can( 'manage_options' ) ) { $class = 'admin-account'; } elseif ( current_user_can( 'edit_published_posts' ) ) { $class = 'Author-account'; } else { $class = 'General-account'; } return $class; } add_filter( 'bp_core_avatar_class', 'yousite_filter_class', 10, 4 );BuddyPress has a API that you can use: https://codex.buddypress.org/component/private-messages/
You can hook at the WooCommerce actions when sending the emails and send your private messages.
Hope that helps! 🙂
In reply to: Is it possible to verify members?I will have to be a custom work. No problem exists so far!
In reply to: WP Rest APi + Oauth + Bp RestThe BP REST API does not have support for users yet. My guess is that the version you are using if imcomplete, missing support for several components.
Check the work here for more updates: https://github.com/buddypress/BP-REST
In reply to: Random User when /Members is loaded?You can add as much options as you want:
function more_users( $args ) { if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { return $args; } $args['per_page'] = '50'; $args['type'] = 'random'; return (array) $args; } add_filter( 'bp_after_has_members_parse_args', 'more_users', 10 );In reply to: Random User when /Members is loaded?You can use the ‘bp_after_has_members_parse_args’ hook to filter for random users adding it to the bp-cuscom.php file.
function random_users( $args ) { if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { return $args; } $args['type'] = 'random'; return (array) $args; } add_filter( 'bp_after_has_members_parse_args', 'random_users', 10 );In reply to: Add BuddyPress User To Cart in WooCommerce?I’m working on something very similar to the scenario you just described. Here is an idea it might work for you:
You could add/associate the contractors/user IDs with the WooCommerce cart. It would allow severals contractors to be associated with the same WooCommerce order/cart.
Here is a possible workable model.
– Add a project as a product;
– Add BuddyPress profile users IDs to the product in the cart;
– With the user IDs, you would fetch the users information to show their details;
– Go to the cart/checkout process as normally you would;
– Hook in WooCommerce to send the order but not charge it yet;
– Send the job to the contractor/user;
– Contractor accepts the job, hook in your payment gateway to perform the charge;
– Contractor performs the job as suggested/described by you;
– After job delivered by the contractor and accepted by the customer.A friend suggested I should consider using WooCommerce Pre-Orders.