Christian Freeman (codelion)
Forum Replies Created
-
Thanks @bukhari10!
I uploaded the updated plugin and it’s working smoothly now. I was also able to change the “Insufficient funds” message via the included filter. Here’s the code snippet:
function bgb_mycred_insufficient_funds( $message ) {
if ( ! function_exists( 'mycred_get_users_balance' ) ) return $message;
$user_id = get_current_user_id();
$balance = mycred_get_users_balance( $user_id );
$cart_total = WC()->cart->cart_contents_total;
$amount_needed = $cart_total - $balance;
$url = home_url() . '/add-points'; // The page where the buyCRED shortcode exists
$link = '<a href="'. $url .'" target="_blank" class="button">Add Points</a>';
$message = sprintf( __( 'You don\'t have enough Points. <span>Add %d Points</span> to your account to continue. %s', 'bgb-theme'), $amount_needed, $link );
return $message;
}
add_filter( 'mycred_woo_error_insufficient_funds', 'bgb_mycred_insufficient_funds', 10 );I also created another similar code snippet, that calculates the amount of points they need to add to make the purchase, and adds the buyCRED button with that exact amount to the WooCommerce checkout:
function bgb_add_buycred_to_checkout() {
if ( ! function_exists( 'mycred_get_users_balance' ) ) return;
$user_id = get_current_user_id();
$balance = mycred_get_users_balance( $user_id );
$cart_total = WC()->cart->cart_contents_total;
$amount_needed = $cart_total - $balance;
// Don't show the button if the user has enough
if ( $amount_needed < 0 ) return;
echo do_shortcode( '[mycred_buy gateway="paypal-standard" class="button checkout-buycred" amount="'. $amount_needed .'" ]Add '. $amount_needed .' Points[/mycred_buy]' );
}
add_action( 'woocommerce_review_order_before_submit', 'bgb_add_buycred_to_checkout', 10 );It’s working great. Thanks again.
OK, after clearing?my browser cache as well as the server cache, and restarting the browser, the 404 is gone.
Looks like this problem is solved.
Forum: Plugins
In reply to: [WP ULike - All-in-One Engagement Toolkit] 0 in Blog Archive Post ContentThanks Alimir,
I turned off the auto display and added to my theme template. Everything is working great now. Thanks again, and keep up the good work!
Forum: Plugins
In reply to: [BP Birthday Greetings] Does it show Birthdays Coming?Awesome, thanks!
Do you have any estimated time for when the update will be released?
Forum: Plugins
In reply to: [BP Birthday Greetings] Does it show Birthdays Coming?My Time Zone is set to New York in WordPress.
Forum: Plugins
In reply to: [BP Birthday Greetings] Does it show Birthdays Coming?Hi Prashant,
For me, when I enter the Birthday for the current day, it doesn’t appear in the widget. It only shows up if I set the Birthday to Tomorrow.
How is the date calculated? Is it based on your Time Zone, or the Time Zone set in my WordPress install?
Forum: Plugins
In reply to: [Author Avatars List/Block] Showing BP XProfile Fields via ShortcodeThanks a ton Paul!
I updated to the latest version and the comma separated values are working smoothly. Now, I just need to use the filter you showed me to add the field labels before the field values.
Thanks again!
Forum: Plugins
In reply to: [Author Avatars List/Block] Showing BP XProfile Fields via ShortcodeHey Paul,
I’m just checking back in with you on this. Do you have any ideas on how I can get convert the Array output into a comma separated string of values? Do I need to edit core files for this? And if so, which ones?
Thanks, and keep up the good work!
Forum: Plugins
In reply to: [Author Avatars List/Block] Showing BP XProfile Fields via ShortcodeThanks Paul,
I tried to adapt the filter you provided to swapping out the array value to a comma separated list, but it’s just not working for replacing the value within the html variable.
Thanks, that would be awesome if you could implode arrays into a string of comma separated values.
Forum: Plugins
In reply to: [Author Avatars List/Block] Showing BP XProfile Fields via ShortcodeThanks for the quick solution Paul!
I’m not able to add those xProfile fields to the Authors List. However, I noticed that it doesn’t display the field data for XProfile fields that are in a multi-check/list format, with multiple values. It only outputs “Array”.
Do you think that you could update this to output a comma separated list of values for these type of fields?
Thanks again, and nice work my friend!
Forum: Plugins
In reply to: [Author Avatars List/Block] Showing BP XProfile Fields via ShortcodeHi Paul,
What do you mean by disable options? I don’t see anything related to xprofile fields on the shortcode creation button in the TinyMCE. Is there an argument that I can use to add the xprofile field name to the shortcode manually?
Forum: Plugins
In reply to: [BuddyPress for LearnDash] No Settings in WP AdminWell, I also have the Enable MultiBlog constant enabled, so I guess I expected BP for LD to recognize that the constant was enabled (Making BuddyPress Gloabal accross all of my sites), but I guess it doesn’t do that.
My solution was to Network Deactivate BuddyPress, and Single Site activate it on each SubSite (Keeping MultiBlog enabled). So BuddyPress is still Global, but now BP for LD works, because BuddyPress is no longer network activated.
Thanks guys
Forum: Plugins
In reply to: [BuddyPress for LearnDash] No Settings in WP AdminHello,
Okay, I updated to the latest version and it fixed the issue with the white screen when trying to edit certain Courses. So thanks for that.
I’m still experiencing the issues of the missing settings in WP Admin, BP Groups, and LD Courses. To answer your question:
BuddyPress for Learndash (Single Site Activated)
BuddyPress (Network Activated)
LearnDash (Single Site Activated)I tested on another Multisite install where BuddyPress is single site activated, and everything works just fine. All of the settings are there in WP Admin, BP Groups, and LD Courses.
Forum: Plugins
In reply to: [BuddyPress for LearnDash] No Settings in WP AdminI’m viewing the settings page as a Super Admin (I’m on a WordPress MultiSite) and even if I try logging in as an another Admin user on the site, the settings still aren’t appearing. And, when I check the group settings (On the front end and in WP Admin), there are no settings for LearnDash Courses listed there.
I’m also having the same issue a Blank Page when trying to edit certain courses, as posted by quite a few others here:
https://www.ads-software.com/support/topic/blank-page-course-backend/So, there are obviously some bugs in this version of the BP for LearnDash plugin. How quickly can you fix these issues? Right now, I can’t use this plugin at all because none of the settings are there.
Any thoughts on this guys?
I understand that this is a feature that you said you were developing, but that was quite some time ago, and I need this feature in order to start using Awesome Support fully.
It’s a great plugin, but I feel that this is a major missing element.