Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Hardeep Asrani
    Participant

    @hardeepasrani

    Amazing!!

    Where’s the mark as resolved or close the topic option?

    Or maybe adding a tag would do that? Let me try…


    Hardeep Asrani
    Participant

    @hardeepasrani

    @shanebp

    Okay, it worked!!! That’s a lot!!

    One more thing – can you please tell me what if it’s in the functions.php file, do I need to use the bp_init then or something else?


    Hardeep Asrani
    Participant

    @hardeepasrani

    That’s not what I’m looking for.


    Hardeep Asrani
    Participant

    @hardeepasrani

    Because I’m trying to create a plugin out of it.


    Hardeep Asrani
    Participant

    @hardeepasrani

    Here’s how it looks like a plugin: https://sites.google.com/site/hardeepasrani/bp-plugin-override.zip?attredirects=0&d=1

    Hope you can help with this…Thanks!


    Hardeep Asrani
    Participant

    @hardeepasrani

    And it will be like pluginfolder/pluginfile.php ? Or something else?


    Hardeep Asrani
    Participant

    @hardeepasrani

    Would I have to do any modifications on your code, and the plugin structure will be like:

    my-plugin/buddypress/members/single/member-header.php

    ??

    Thanks for the help 🙂


    Hardeep Asrani
    Participant

    @hardeepasrani

    This isn’t doing the job either:

    function field_xprofile_twitter()
    {
    
    $group_args = array(
         'name' => 'Social Networks'
         );
    $group_id = xprofile_insert_field_group( $group_args ); // group's ID
    
    xprofile_insert_field( $xfield_args );
    $xfield_args =  array (
               field_group_id  => $group_id,
               name            => 'Twitter',
               can_delete      => false,
               field_order  => 1,
               is_required     => false,
               type            => 'textbox'
        );
    }

    Hardeep Asrani
    Participant

    @hardeepasrani

    I used the following code, and it’s not doing the job:

    function field_xprofile_twitter()
    {
    
    $group_args = array(
         'name' => 'Social Networks'
         );
    $group_id = xprofile_insert_field_group( $group_args ); // group's ID
    
    xprofile_insert_field(
        array (
               field_group_id  => $group_id,
               name            => 'Twitter',
               can_delete      => false,
               field_order  => 1,
               is_required     => false,
               type            => 'textbox'
        )
    );
    }

    Hope you can help 🙂


    Hardeep Asrani
    Participant

    @hardeepasrani

    Thanks for passing the info 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
Skip to toolbar