Replies
- Brajesh Singh on September 2, 2021 at 6:44 pm in reply to: Woocommerce – My Account Short Code in Sub Tab #40354
Hi Isaac,
Welcome to BuddyDev support forums.
The problem is WooCommerce uses the end point urls relative to your “myaccount” page permalink.
It does not matter where you put this shortcode, the end point urls are always related to the default WooCommerce my account page. This is due to the way the ‘wc_get_account_endpoint_url’ works. It takes the permalink of ‘myaccount’ page(which is set in your WooCommerce settings) and prepares end point urls relative to them.
You can check it by putting the shortcode in a normal page or post instead of the profile tab.
The solution is to filter the specific end point urls to force it point to current page/relative to current page. Profile tabs does not know what kind of content is being used and can not filter this.
In other words, even if you use the shortcode inside the tab, Profile tab will not be able to change the url for WooCommerec links as they are handles by woo.
We have a specific plugin to solve this. you can use BuddyCommerce. The plugin is aware of WooCommerec and the related urls and knows how to filter them.
Please use
https://wordpress.org/plugins/buddycommerce/Regards
Brajesh - Brajesh Singh on September 2, 2021 at 6:03 pm in reply to: [Resolved] User tab pro not showing slug option #40352
Hi Derek,
Welcome to BuddyDev forums.It may happen some time. You can enable it by following the below steps.
Regards
Brajesh - Brajesh Singh on September 2, 2021 at 1:19 am in reply to: Make Custom Profile Tab specific to specific Profile? #40349
Hi La,
Thank you.For the approach 2, the token replacement is done by the Profile Tabs Creator Pro. all you need to do is to tell it using the above token where you need actual user id.
So, if the formidable form provide you with a shortcode which accepts the user id, instead of passing actual user id in that shortcode, pass the value as ‘#displayed_user_id#’
That will make sure the actual user id of the currently displayed user is passed.
Regards
Brajesh Hi Brovuve,
Welcome to BuddyDev support forums.
You can put the following code in your active theme’s(or child theme’s) functions.php
/** * Shortcode for generating edit profile link */ add_shortcode( 'bp-edit-profile-link', function ( $atts = array(), $content = '' ) { $atts = shortcode_atts( array( 'user_id' => get_current_user_id(), 'label' => 'Edit Profile', 'class' => 'edit-profile-link', ), $atts ); if ( empty( $atts['user_id'] ) ) { return ''; } $url = get_edit_profile_url( $atts['user_id'] ); return sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', esc_url( $url ), esc_attr( $atts['class'] ), $atts['label'] ); } );Now, you can use the shortcode
[bp-edit-profile-link]You can also pass the edit profile label and css classes using the ‘label’ and ‘class’ attributes.
If the user is not logged in, It will not sho anything. When the user is logged in, It will show the link to edit profile.
Hope that helps.
Regards
Brajesh- Brajesh Singh on September 2, 2021 at 12:37 am in reply to: [Resolved] BuddyPress Testimonials Issue With Woocommerce #40346
Hi Khalid,
Thank you for confirming.All the best !
Regards
Brajesh - Brajesh Singh on September 2, 2021 at 12:37 am in reply to: critical error conditional-profile-fields #40345
Hi Adrian,
Thank you for the details.The issue is caused by Youzer/Youzify calling the relevant functions early. We have seen similar issue with our other plugin(BP Xprofile Custom Field Types) with them.
Youzer(now youzify) has done too many things which are non standard and broken compatibility that we do not support any compatibility with it for any of our plugins.
Also, I doubt that Conditional profile field will even work with it due to the change in markup. I will suggest avoiding conditional profile field in this case.
Regards
Brajesh - Brajesh Singh on September 2, 2021 at 12:33 am in reply to: Make Custom Profile Tab specific to specific Profile? #40344
Hi,
Thank you for the question.There are two ways to achieve it.
1. If you have a shortcode that accepts user id, you can use our tag replacement feature for it.
You can change
[som-shortcode user_id=32]to
[some-shortcode user_id="#displayed_user_id#"]Now, the plugin will replace this token ‘#displayed_user_id#’ with the actual user id of the displayed user before the shortcode is handled.
2. If you want to put static content specific to each user, You can install an addon plugin to achieve it. Please have a look at the following.
https://buddydev.com/create-dynamic-user-profile-tabs-for-buddypress/Hope it helps.
Regards
Brajesh - Brajesh Singh on September 1, 2021 at 11:42 pm in reply to: [Resolved] BuddyPress Members Directory #40343
You are welcome.
- Brajesh Singh on August 31, 2021 at 6:53 am in reply to: Notification is not done by BuddyPress #40326
Hi,
Thank you for the question.that is not notification. That is a confirmation which is triggered when you perform some kind f destructive action( e.g. delete an activity or similar). BuddyPress uses the browser’s ability to ask you for confirm before processing the actions which might have non-reversible effect.
Regards
Brajesh - Brajesh Singh on August 31, 2021 at 6:50 am in reply to: Different Hover States for BuddyPress Profile Tabs #40325
Hi,
Thank you for the question.I do not think BuddyPress will ever have anything like this. it might be implemented by some plugin or themes. I still think that it will be an overkill to allow changing background of each tab/hover state to different colors. It might suits for some of the use cases but most of the time a consistent color scheme will be much more helpful.
Regards
Brajesh