WordPress.org

Ready to get started?Download WordPress

Forums

Buddypress Xprofile Custom Fields Type
[resolved] Playing nicely with other plugins (6 posts)

  1. Christian Wach
    Member
    Posted 1 year ago #

    Could you remove line 183 so that other plugins which define other types don't get this message displayed if they hook into the xprofile_admin_field filter after your plugin does:

    $html = "<p>".__('Field type unrecognized', 'cc')."</p>";

    Thanks,

    Christian

    http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/

  2. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    You're right, I have solved this in the latest version 1.5.2.

    Thanks to you.

  3. Christian Wach
    Member
    Posted 1 year ago #

    @atallos: thank you for the quick response.

    One more thing to consider: on line 438 (line 439 in 1.5.2), you ought to be hooking in to bp_custom_profile_edit_fields_pre_visibility rather than bp_custom_profile_edit_fields, so that the items in the edit screen render in the correct order.

    Cheers,

    Christian

  4. Christian Wach
    Member
    Posted 1 year ago #

    While I'm on a debugging mission here, I should mention that the function bxcft_remove_xprofile_links should be hooked to bp_setup_globals because the filter you're trying to remove has not yet been applied at bp_init. Line 1104 in 1.5.2.

    Cheers,

    Christian

  5. Christian Wach
    Member
    Posted 1 year ago #

    I should mention that my observation about the bp_custom_profile_edit_fields_pre_visibility hook only applies to BP 1.7.

    Cheers,

    Christian

  6. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you again!!! You're right.

    I have changed to this hook bp_custom_profile_edit_fields_pre_visibility only if it exists for users who are still using prior versions of Buddypress.

    I have also changed to bp_setup_globals. Great debugging!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.