Replies
- טליה שוורץ 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. - טליה שוורץ 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? - טליה שוורץ 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 );
- טליה שוורץ 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!
- טליה שוורץ 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!!
- טליה שוורץ 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 1 year, 7 months ago by טליה שוורץ.
- This reply has been marked as private.
- טליה שוורץ 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 i dont mind to purchase membership plugin as memberpress etc but none of them integrates so deep with buddypress profile fields.
i saw a site based on Xenforo forums that sells that option to have a forum signature.
advertising in forum inside topics and replies is forbidden, so signature is the solution and way to tell others what’s my proffesion and link to site (by the way). really usefull. users pay monthly low cost 6$ to have a signature.forum signature is so must to have feature to my opinion. how come there is no such thing? if i will pay for u to build such plugin and then u can sell it to anyone here- will that be much cheaper? (in the contact form i see the budget must start from 500$)
1. it should have option to limit characters and number of links
2. add logo in limted size (Maybe I can give it up, not sure i must need that.)scenario – user purchase membership (memberpress or any)
he gets the abilty to edit that field
when cancelling membership
signature will erased or not be displayed in forum topics/reply