WordPress.org

Ready to get started?Download WordPress

Forums

BP Profile Search
Can't figure out how to search on BP xProfile custom field (16 posts)

  1. pantspress
    Member
    Posted 10 months ago #

    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/

  2. Andrea Tarantini
    Member
    Plugin Author

    Posted 10 months ago #

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

  3. pantspress
    Member
    Posted 10 months ago #

    BP Profile Search 3.5.2 and Buddypress Xprofile Custom Fields Type 1.5.7.7

  4. Andrea Tarantini
    Member
    Plugin Author

    Posted 10 months ago #

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

  5. resolve-plugin-issues
    Member
    Posted 10 months ago #

    I'm having the same issue here.

  6. Andrea Tarantini
    Member
    Plugin Author

    Posted 10 months ago #

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

  7. resolve-plugin-issues
    Member
    Posted 10 months ago #

    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."

  8. pantspress
    Member
    Posted 10 months ago #

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

  9. Andrea Tarantini
    Member
    Plugin Author

    Posted 10 months ago #

    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!

  10. resolve-plugin-issues
    Member
    Posted 10 months ago #

    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.

  11. Andrea Tarantini
    Member
    Plugin Author

    Posted 10 months ago #

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

  12. resolve-plugin-issues
    Member
    Posted 10 months ago #

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

  13. Andrea Tarantini
    Member
    Plugin Author

    Posted 10 months ago #

    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?

  14. pantspress
    Member
    Posted 10 months ago #

    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).

  15. resolve-plugin-issues
    Member
    Posted 10 months ago #

    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.

  16. Andrea Tarantini
    Member
    Plugin Author

    Posted 10 months ago #

    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?

Reply

You must log in to post.

About this Plugin

About this Topic