BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #46754

    hello sir, please is there an update with that?

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #46596

    i dont mind to have it as a seperate simple plugin. just thought it might contribute to others

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #46595

    thanks. Waiting patiently

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #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.

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #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?

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #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 );

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #46451

    really appreciate your help here. thanks!

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #46407

    So your advice is to stick with one role per user?

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #46406

    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!!

  • Participant
    Level: Enlightened
    Posts: 81
    טליה שוורץ on #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?