Cristián Lávaque
Forum Replies Created
-
I was looking at how to help you, and rereading your first post, I realized you’re talking about profile fields specifically…
If you’re using s2Member’s custom profile fields, you can set the field to a certain level in its configuration. https://s2member.com/kb-article/how-do-i-show-different-custom-registration-fields-for-each-signup-form/
See also:
- https://s2member.com/kb-article/s2member-buddypress/
- https://s2member.com/kb-article/buddypress-profile-fields-or-s2member-profile-fields/
🙂
Hi!
Yes, you’d need to customize the template for that page. Googled about it and found this: https://buddypress.org/support/topic/creating-a-custom-profile-member-page/
And add a conditional that checks the person’s access to show or hide those fields… WP Admin > s2Member > API / Scripting > Advanced Conditionals
🙂
Thank you very much! 😀
Thank you very much! 😀🙏
The latest v240325 release includes that fix. 🙂
Thank you very much! 😀
Hi Bernard,
Thanks for reporting that!
I will include this in the next release, but you can try it now if you want…
In the file mentioned in the warning: /wp-content/plugins/s2member/src/includes/classes/security-rest.inc.php
The lines mentioned, 45 and 46, are these:
$type = sanitize_key($route[2]); // e.g. pages $id = (int)$route[3];You can add these right before/above:
if (empty($route[2]) || empty($route[3])) return $response;So you’ll have this:
$route = $request->get_route(); // e.g. /wp/v2/pages $route = explode('/', trim($route, '/')); if (empty($route[2]) || empty($route[3])) return $response; $type = sanitize_key($route[2]); // e.g. pages $id = (int)$route[3];Let me know if you try it and if it helps you!
Warnings are not serious, errors would stop the script from going on. But you may want to hide warnings and errors. If not disable them, at least not display them on the site, instead log them into a file. https://wordpress.org/documentation/article/debugging-in-wordpress/#wp_debug_log
🙂
Thanks for reporting that!
I will include this in the next release, but you can try it now if you want…
In the file mentioned in the warning: /wp-content/plugins/s2member/src/includes/classes/security-rest.inc.php
The lines mentioned, 45 and 46, are these:
$type = sanitize_key($route[2]); // e.g. pages $id = (int)$route[3];You can add these right before/above:
if (empty($route[2]) || empty($route[3])) return $response;So you’ll have this:
$route = $request->get_route(); // e.g. /wp/v2/pages $route = explode('/', trim($route, '/')); if (empty($route[2]) || empty($route[3])) return $response; $type = sanitize_key($route[2]); // e.g. pages $id = (int)$route[3];Let me know if you try it and if it helps you!
Warnings are not serious, errors would stop the script from going on. But you may want to hide warnings and errors. If not disable them, at least not display them on the site, instead log them into a file. https://wordpress.org/documentation/article/debugging-in-wordpress/#wp_debug_log
🙂
Thank you very much, Colin! 🤗🙏
I see… that seems to be because your s2’s javascript is being blocked by some security setting and giving a 403 error…
See: https://s2member.com/kb-article/mod-security-odd-403-503-500-errors/
🙂
You can restrict WooCommerce pages with s2, but not sell s2 access with WooCommerce…
Unless WooCommerce lets you sell wordpress roles/capabilities in some way, then yes, you could sell s2’s roles/caps. https://s2member.com/kb-article/s2member-rolescapabilities/
🙂
great to hear it’s being resolved. Thanks!
It works now.
😀
I even registered a similar domain just in case things were wrong on your end.
Sim, you rock. You’re always so nice and helpful! While there’s been people that made me want to get away from this, you are one of those that make me glad to be doing it. I really appreciate you. 🙏
I will wait for your instructions
What instructions? Would you please email me to the helpdesk? (support a wpsharks com) Please tell me how I can help you, I’ll do what I can.
🙂
That’s great! Thanks for confirming it. I’m glad. 😊
When you get a chance we need to chat about Safe Activation (software that produces serial numbers).
Sure. Please email me to the helpdesk (support a wpsharks com), so we can coordinate a chat/call.
Hi @pwizard,
There was an issue with the domain auto-renewal, and I wasn’t around this week to notice it immediately. It is renewed now and the site is up, although the network propagation may take a while to reach some places.
Is it loading for you now? 🙂
Hi! I’m sorry for the inconvenience…
The site is up now, although the network propagation may take a while to reach some places.
Is it loading for you now? 🙂