• Hello

    I was hoping to get results with country search of my almost 1000 users.

    I used ProfileGrid till shortly, now after looking and searching went back to buddypress 🙂

    I can’t find a way to reuse country entries from wp users (from ProfileGrid).

    So I decided to use BuddyPress Xprofile Custom Field Types, wanting to force my users to fill it again 🙁

    I added extra field country that is now even linked with simple users search.

    Even can users now edit profile and choose their countries 🙂

    So far so good, but nothing will be found 🙁

    Not with simple (linked or typed) search or with plugin Profile Search …

    Any idea?`

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hello jaroslawistok,

    When you use the Country field provided by BuddyPress Xprofile Custom Field Types, you won’t be able to use the standard BuddyPress member search because the plugin doesn’t store the country value, but simply a key for that value.

    You could use BP Profile Search, but unfortunately there is a typo in BuddyPress Xprofile Custom Field Types. You can fix it yourself as follows:

    1. Locate lines 76-77 in \wp-content\plugins\bp-xprofile-custom-field-types\src\filters\class-bp-profile-search-helper.php:

    			case 'country':
    				$field->format  = 'set';

    2. Replace them with:

    			case 'country':
    				$field->format  = 'text';

    Please note that after correcting the above typo, you’ll need to remove your country field from your search form and add it back again.

    Let me know if this works for you!

    Thread Starter jaroslawistok

    (@jaroslawistok)

    Thank you, it works.
    So I have to pay attention not to update 🙂

    Did you inform author about this bag?

    Plugin Author Andrea Tarantini

    (@dontdream)

    You’re welcome!

    I’ll let the author know about this issue.

    Thread Starter jaroslawistok

    (@jaroslawistok)

    Thank You!

    Plugin Author Andrea Tarantini

    (@dontdream)

    Thread Starter jaroslawistok

    (@jaroslawistok)

    Thanks 🙂

    So the next update will do it, I guess 🙂

    Plugin Author Andrea Tarantini

    (@dontdream)

    Yes, I’m sure that they will fix it quickly.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Nothing will be found’ is closed to new replies.