BP Profile Search › Can I build a new field which has a range of number?
-
AuthorPost
-
Frank
GuestHi Andrea!
Bp profile search is amazing. I’m a Chinese developer and I’m trying to study and modify it for some interesting way.
Here’s my question. Can I build a new field which has a range of number?
For example, I have a field named “actual weight”, and by the profile search, we can build a form with “range” to filter the “actual weight” .
I want to have another field named “healthy weight”. The “healthy weight” should be a range, such as “50kg-60kg”. When I have a given number, I wanna search for all the users whoes “healthy weight” can cover this given number.
What should I do ?
Though I know this might be a small dish for you, I have no other way but ask for your help to solve this problem.
Thanks for your help and time.Frank
GuestJust now, I installed the “Xprofile custome field”, here we can create a “from to” field, that’s actually what I want.
However, I find there are two questions.First, after I added a “from to” field and set the min(80) and max(85) values,
in my profile page, it shows with all the html words”<span class=”bpxcftr-fromto-from-value”>80</span>-<span class=”bpxcftr-fromto-to-value”>85</span>”.
I just need “80-85”. Can you fix it?Second, when I build a form in the edit-form page, the “from to” field diaspearred in the list, while other new Xprofile fields stays. Does this mean that the “from to” filed can not used to search or filter?
What should I do?
Thank you.
Frank
GuestIt’s me again.
I found that the search form can add up to 12 fields, can I add more?
Or how can I do search with more than 50 fields? Is it possible?
Thanks again and again.andrea
Plugin AuthorHi Frank,
The field type “From/To values” displays correctly on my test site. It doesn’t show up in the profile search form builder because it’s not compatible with BP Profile Search.
The search form doesn’t have a max number of search fields, you should be able to add as many as you wish.
-
AuthorPost