Skip to:
Content
Pages
Categories
Search
Top
Bottom

Plug-in adds new profile fields to default WP profile, can I add them to the BP profile?


  • gmxperry
    Participant

    @gmxperry

    Cross-posting this from the How-To forum since it relates to an addon, but hopefully someone can help.

    Basically, I use BP on my site and I have an add-on called liveTV Bundle which allows me to integrate a user’s Twitch.tv or Own3d.tv stream into their profile and have it display as a thumbnail on a different streaming page.

    Right now, the addon adds a new section to the default WordPress user profile page where the user can add their stream ID and delete existing streams they’ve attached to their profile. I don’t want people to have to edit two profiles, and I’d like to see if there’s any way to hook those fields into the BP profile edit page or if maybe I can just copy the display code into the BP profile edit page.

    This is the code that the plugin currently uses to hook those fields into the default profile. What hooks would I need to have them appear in the BP extended profile edit page? Or is there a better way to do it?

    `//Now hook to create extra profil fields`
    `add_action( ‘edit_user_profile’, ‘livetv_show_extra_profile_fields’ ); `
    `//When the current on the current profil has capabilties to edit -> display`
    `add_action( ‘edit_user_profile_update’, ‘livetv_save_extra_profile_fields’ ); `
    `//When the current on the current profil has capabilties to edit -> update`

    `add_action( ‘show_user_profile’, ‘livetv_show_extra_profile_fields’ ); `
    `//When the current on the current profil has capabilties to show -> display`
    `add_action( ‘personal_options_update’, ‘livetv_save_extra_profile_fields’ ); `
    `//When the current on the current profil is the current and edit -> update`

    `if(!is_admin)`
    `{`
    `//Frontend plugins compatibility`
    `add_action(‘profile_personal_options’, ‘livetv_show_extra_profile_fields’);`
    `//When the current on the current profil is the current and show -> display`
    `}`

    I appreciate any help I can get. Thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Even if you hooked it to the correct place, I doubt that the form save handler would work.


    gmxperry
    Participant

    @gmxperry

    That’s true, I hadn’t even thought of that. Is there any way for me to add a link in the “Edit” profile option which will direct them to the WP profile?

    I guess I should say, I’m sure there’s a way, I’m just not sure which file I would have to make changes to in order to get that to display properly.

    Thanks for your reply!


    gmxperry
    Participant

    @gmxperry

    Actually, I think I got it. I’ve just put a link in the BP profile and WP profile so at least the user can access those fields to edit.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plug-in adds new profile fields to default WP profile, can I add them to the BP profile?’ is closed to new replies.
Skip to toolbar