Sauron
Forum Replies Created
-
I don’t use buddypress but peepso which screenshot do you need? and where can I find it?
I only see the following error if I were to choose stripe
Fatal error: Uncaught ValueError: Unknown format specifier “v” in /customers/9/b/4/bdsmleven.nl/httpd.www/wp-content/plugins/paid-memberships-pro/classes/gateways/class.pmprogateway_stripe.php:2450 Stack trace: #0 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-content/plugins/paid-memberships-pro/classes/gateways/class.pmprogateway_stripe.php(2450): sprintf(‘Opmerking: je g…’, ‘2%’) #1 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-content/plugins/paid-memberships-pro/classes/gateways/class.pmprogateway_stripe.php(300): PMProGateway_stripe->show_connect_payment_option_fields(true, Array, ”) #2 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-includes/class-wp-hook.php(308): PMProGateway_stripe::pmpro_payment_option_fields(Array, ”) #3 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #4 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-content/plugins/paid-memberships-pro/adminpages/paymentsettings.php(194): do_action(‘pmpro_payment_o…’, Array, ”) #6 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-content/plugins/paid-memberships-pro/includes/adminpages.php(290): require_once(‘/customers/9/b/…’) #7 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-includes/class-wp-hook.php(308): pmpro_paymentsettings(”) #8 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #9 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /customers/9/b/4/bdsmleven.nl/httpd.www/wp-admin/admin.php(259): do_action(‘admin_page_pmpr…’) #11 {main} thrown in /customers/9/b/4/bdsmleven.nl/httpd.www/wp-content/plugins/paid-memberships-pro/classes/gateways/class.pmprogateway_stripe.php on line 2450
@cjsheps can you tel me the plugin please?
So more than 1 id doesn’t work. If I place more than 1 ID, it will show the widget to everyone for members and non-members.
can you tell me if the code is correct?/**
- Hide widgets by widget instance ID for protected members only content.
- Update the $hide_widget_instances_array with the array of widget instance IDs you want to filter.
- Update the pmpro_hasMembershipLevel check for your membership level IDs.
* - Add this code below to your PMPro Customizations Plugin – https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_widgets_by_membership_level( $instance, $widget, $args ) { // Set an array of widget areas by ID to filter.
$hide_widget_instances_array = array( ‘bp_core_whos_online_widget-3’ ); // Check if this widget instance should be filtered.
if ( in_array($widget->id, $hide_widget_instances_array ) && ! pmpro_hasMembershipLevel( 2, 6, 7 ) ) {
return false;
}
return $instance;
}
add_filter(‘widget_display_callback’,’my_pmpro_widgets_by_membership_level’, 10 , 3 );
Is it possible to add more level ID that will be checked at the same time?
for example:
level 0 should show everything
level 1,2,3,4,5,6,7,8,9 not allowed to show certain widgets?I can’t figure it out with the code because I can only indicate 1 level id at a time.
my code is now/**
- Hide widgets by widget instance ID for protected members only content.
- Update the $hide_widget_instances_array with the array of widget instance IDs you want to filter.
- Update the pmpro_hasMembershipLevel check for your membership level IDs.
* - Add this code below to your PMPro Customizations Plugin – https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_widgets_by_membership_level( $instance, $widget, $args ) { // Set an array of widget areas by ID to filter.
$hide_widget_instances_array = array( ‘bp_core_whos_online_widget-3’ ); // Check if this widget instance should be filtered.
if ( in_array($widget->id, $hide_widget_instances_array ) && ! pmpro_hasMembershipLevel( 1, 2, 3, 4, 5, 6, 7, 8, 9 ) ) {
return false;
}
return $instance;
}
add_filter(‘widget_display_callback’,’my_pmpro_widgets_by_membership_level’, 10 , 3 );
Forum: Plugins
In reply to: [myCred Paid Memberships Pro] Translate stringProblem has been solved.
Thank youForum: Plugins
In reply to: [myCred Paid Memberships Pro] Translate stringWhen I updated the plugin the ‘You don’t have enough Points to purchase this membership’ text is completely gone on the website. Neither in english or dutch (which I translated it too).
I can still find the sentence in the translate file, but whatever I write it doesn’t re-appear/change.
Can this bechecked or changed please?its solved
tnx
Forum: Plugins
In reply to: [myCred Paid Memberships Pro] Translate stringreplaced but same problem
I also only see Allert in English when I remove the Dutch translation
see linkForum: Plugins
In reply to: [myCred Paid Memberships Pro] Translate stringSorry, I thought it worked but I only see the translation of alert, I don’t see the rest
while it is well translated
where did you put the translation file?
I also had to create a template because it wouldn’t exist.
see:- 1.jpg (897×355) (bdsmleven.nl) (attachment translation)
- 2.jpg (1695×766) (bdsmleven.nl) (translation string loco translate)
- 3.jpg (1711×538) (bdsmleven.nl) (settings loco translate)
Thanks in advance
Forum: Plugins
In reply to: [myCred Paid Memberships Pro] Translate stringGood morning,
I have no idea what was going on but I deleted the translation and created a new one, now the string is there.
i also use loco translateso it is solved
Best regardsMichel
Forum: Plugins
In reply to: [myCred Paid Memberships Pro] Translate stringThis is the same version that I already installed and the problem persists even after reinstallation
Michel
I have set up a shadow site where exactly the same thing happens
https://www.kinkymarktplaats.nl
and here are only the necessary plugins
where can I send the data so that you can log in yourself?I work with youzify plugin and if I activate it then the counts are not done properly
I can give you access to the admin of the site to view itSee image :