WordPress.org

Support

Support » Plugins and Hacks » BP Profile Search » Can't figure out how to search on BP xProfile custom field

Can't figure out how to search on BP xProfile custom field

  • Have tried in WP 3.5 and 3.6.1 both using BP 1.8.1 and the default BP theme.

    Both plugins appear to work fine in the backend. I can add a new profile field using a BP xProfile type (e.g. email). I can then select that field in BP Profile Search setup but I cannot get it to show up in the advanced search form on the front end.

    I’ve searched the forums, uninstalled, reinstalled all plugins but no joy. I’m at that point when you’ve hit a wall and know you are missing something obvious but just can’t see it.

    Any help?

    http://wordpress.org/plugins/bp-profile-search/

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

    @dontdream

    You are mentioning both plugins, but which plugins are they?

    BP Profile Search 3.5.2 and Buddypress Xprofile Custom Fields Type 1.5.7.7

    Plugin Author Andrea Tarantini

    @dontdream

    Thanks, I’ll have a look and I’ll let you know shortly.

    I’m having the same issue here.

    Plugin Author Andrea Tarantini

    @dontdream

    Still working on that issue, no solution available yet. Sorry!

    Well I’d gladly help. If you need me to go through a certain section of code for you I’ll do it. I believe it is something to do with the way either your code is storing the data in the database or the way the other developer is storing the data in the database that it’s not being retrieved properly. I was looking around in phpmyadmin and that is my best guess. I also read on http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/

    that they wrote
    “Buddypress installation required!! With Buddypress 1.7, I’m using a new hook “bp_custom_profile_edit_fields_pre_visibility” if you don’t have it in your edit profile form or register page, the fields should not appear. Check this if the fields don’t appear and you are using Buddypress 1.7.”

    Thanks for the update Andrea. Let me know if there’s anyway I can help.

    Plugin Author Andrea Tarantini

    @dontdream

    Thank you both for your offer to help. What I am trying to do is to add some hooks (actions and/or filters) to BP Profile Search so other plugins can specify how to handle their custom field types.

    If you are programmers and are willing to send me a patch, that could speed up things a lot. Thank you!

    Where would I do this? I just need an update soon because I have to report back to someone tomorrow. Do you know what files I should change? I’m not a programmer but know a little bit of php/mysql.

    Plugin Author Andrea Tarantini

    @dontdream

    Unfortunately I still don’t know which changes are required, I’m still researching the interactions between the two plugins.

    Hi Andrea thanks for your help! The issue is non plugin related.

    Plugin Author Andrea Tarantini

    @dontdream

    Could you please share what the problem was? I’m still unable to make the two plugins work together.

    And what about pantspress? Is his/her problem solved too?

    No – I still can’t get the Buddypress Xprofile Custom Fields to show up in the profile search form on the front end.

    As a long shot I added the following line (copied from BuddyPress default theme register.php)

    <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>

    to bps-searchform.php but it didn’t have any effect (but maybe I didn’t have it in the right place).

    Hey Andrea/pantspress the problem was caused by custom code a previous developer had added to core wordpress files and some other plugins/themes. Make sure to go through any modifications that have been done in your php files. Luckily the problem had nothing to do with Buddypress Xprofile Custom Fields or BP Profile Search.

    Plugin Author Andrea Tarantini

    @dontdream

    Thank you for your explanation. I’m working on a clean test installation and I can’t display Buddypress Xprofile Custom Fields Type field types in a BP Profile Search search form.

    Can you do that in your installation? And are you using the original and unmodified plugins?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Can't figure out how to search on BP xProfile custom field’ is closed to new replies.
Skip to toolbar