• Resolved AR2015

    (@ar2015)


    i inherited a project using this field:

    NUMBER

    after doing some research, i see it wasn’t part of the core fields and probably was added by a previous developer. they left ZERO documentation.

    I would like to limit the number this box will go up to (say 30), and also create an identical field except have it not go negative

    WP ADMIN: on the users / profiles field, its called ‘number’
    ‘number’


    i am stuck using Buddypress Xprofile Custom Fields Type 1.5.8.2 because updating the plugin broke some fields. the site was not setup correctly

    i suspect the field would be defined in bp-xprofile-custom-fields-type.php

    but i do not see it here.

    that leads me to believe that its being defined in a jquery file of some sort.

    any help would be greatly appreciated!

    https://www.ads-software.com/plugins/buddypress-xprofile-custom-fields-type/

Viewing 1 replies (of 1 total)
  • Plugin Author donmik

    (@atallos)

    Hi,

    Number was a field from this plugin but I remove it lately because buddypress added a field type number in its defaults buddypress field types.

    You need to change bp-xprofile-custom-fields-type.php, the function bxcft_edit_render_new_xprofile_field and line 674.

    Instead of this code:
    $input = sprintf('<input type="number" name="%s" id="%s"%s class="input" value="%s" />',

    Change the input and put your max value.

Viewing 1 replies (of 1 total)
  • The topic ‘BP XProfile Number Field’ is closed to new replies.