Replies
- Talia B on September 20, 2022 at 8:53 am in reply to: how to add reach text field in a user profile #46595
thanks. Waiting patiently
- Talia B on September 19, 2022 at 9:03 am in reply to: how to add reach text field in a user profile #46572
just to be clear, my will is to add to this plugin:
https://buddydev.com/plugins/buddypress-profile-data-control/
option to limit character for a specific field + implement the feedback mechanism to the user on the chars length. - Talia B on September 19, 2022 at 8:40 am in reply to: how to add reach text field in a user profile #46571
i would like to pay for
“implement some kind of the fedeback mechanism to the user on the chars length. Without that, this only applies on save and is not very helpful for the end user.”
what’s the price? - Talia B on September 12, 2022 at 9:42 am in reply to: how to add reach text field in a user profile #46460
as u suggested , i want to use this to limit chars in the signature field :
https://wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/
but am affraid it will somehow harm/not integrate well with buddyboss platform (and profiles)
1. do u think it can harm?2. how come u dont have this option in any of your plugins? (chars limit)
i saw your answer here:
https://buddydev.com/support/forums/topic/snipped-code-prevent-links-in-xprofile-new-plugin/can you pls edit this so this will only apply for specific profile field called signature?
3. this code will apply when clicking “save”/update in edit profile screen?/**
* Limit the allowed no. of characters for xprofile field.
*
* @param bool $validated is validated?
* @param string|array $values value(s).
* @param BP_XProfile_Field_Type $field field object.
*
* @return bool
*/
function buddydev_limit_xpfield_length( $validated, $values, $field ) {
$allowed_len = 0;if ( $field instanceof BP_XProfile_Field_Type_Textarea ) {
$allowed_len = 500; // how many chars.
} elseif ( $field instanceof BP_XProfile_Field_Type_Textbox ) {
$allowed_len = 100;
}if ( $allowed_len ) {
$validated = strlen( $values ) < $allowed_len;
}return $validated;
}add_filter( ‘bp_xprofile_field_type_is_valid’, ‘buddydev_limit_xpfield_length’, 10, 3 );
- Talia B on September 11, 2022 at 5:10 pm in reply to: [Resolved] restrict access to a profile field by a membership plugin? #46451
really appreciate your help here. thanks!
- Talia B on September 8, 2022 at 12:10 pm in reply to: [Resolved] restrict access to a profile field by a membership plugin? #46407
So your advice is to stick with one role per user?
signature can be a profile field, that’s from the plugin readme:
”
If you are trying to activate user signature on top of BuddyPress installation,
Add a profile field with name “Signature”. (Profile field name should be correct for the functioning of the plugin).”so i am going to buy your data control plugin 🙂 thanks a lot!
1. for future reference- Can I get an idea of what the discount percentage is?
2. for creating new role (same as subscriber capabalities) can is use this code:<?php
add_action(‘init’, ‘cloneRole’);function cloneRole()
{
global $wp_roles;
if ( ! isset( $wp_roles ) )
$wp_roles = new WP_Roles();$sub= $wp_roles->get_role(‘subscriber’);
//Adding a ‘new_role’ with all subscriber caps
$wp_roles->add_role(‘new_role’, ‘Premium member’, $sub->capabilities);
}
?>thanks you for this great forum and support!!
- Talia B on September 6, 2022 at 8:59 pm in reply to: [Resolved] restrict access to a profile field by a membership plugin? #46372
oh sorry, just notice u suggested to assing it to a role (not type).
so role can do the job..
having two roles can be done properly?- This reply was modified 2 years, 2 months ago by Talia B.
- This reply has been marked as private.
- Talia B on September 6, 2022 at 8:32 pm in reply to: [Resolved] restrict access to a profile field by a membership plugin? #46368
i ment – two profile **types
i also saw this:
https://wordpress.org/support/topic/limit-profile-fields-based-on-membership-type/
but again – i dont think their is an option to assign two profile types