Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 3,251 through 3,275 (of 3,608 total)
  • Author
    Search Results
  • #54699
    Paul Wong-Gibbs
    Keymaster
    #54682
    poolie
    Participant

    <?php echo xprofile_get_field_data('2'); ?>

    would work, where 2 is the id of the field.

    #54681
    smuda
    Participant

    @wordpressfan did you wrap <? ?> around it? :)

    @andy that still doesn’t seem to work. <?php echo xprofile_get_field_data($2); ?> gives an error. <?php echo xprofile_get_field_data($name); ?> too. :/

    #54678
    wordpressfan
    Participant

    How do I echo the field’s data?

    The line “echo xprofile_get_field_data( $field_name_or_id [, optional $user_id] );” only displays “echo xprofile_get_field_data( $field_name_or_id [, optional $user_id] );”

    #54356
    shedmore
    Participant

    Anybody have ideas on the post/question above????

    fubp
    Participant

    *Bump.

    Please anyone?

    #54176
    shedmore
    Participant

    Okay…I have more details from my testing. It works now, but I am not really sure WHY. It seems to me that you have to (for some reason) call the get_field_data function (even if its on a useless peice of data) before you can use the set_field_data function.

    If you notice from my post above…the only thing that is different is that I have added a new variable that is simply capturing the Name field (number 1). Well when I add this:

    $nametestfield = xprofile_get_field_data(1,$wpuid);

    And then the set_field after it (with my age variable)…than it starts working, and the field is inputted.

    SO….Is there a reason why you can’t call the set_field independently. Calling in the name is basicaly useless in the function above, but it DOES make the whole thing work for some reason.

    ///////////////////////////////

    function BP_Insert_Test($wpuid, $age) {

    $age = ‘tester gender’;

    $nametestfield = xprofile_get_field_data(1,$wpuid);

    echo(‘user name exists already’ . $wpuid . ‘ and userdata is ‘ . $age);

    echo(‘Need Field is’ . $nametestfield);

    xprofile_set_field_data(2, $wpuid, $age);

    }

    #54174
    shedmore
    Participant

    For some reason…no matter what I try, I can’t inject SPECIFIC variables via the xprofile_set_field_data function….I run this function (below)

    ONLY AFTER running two conditionals to make sure

    /////////

    ONE the buddypress globals are set

    and

    TWO the check for the xprofile function passes

    Both conditionals pass (as expected) then go to my test function below

    ////////

    End result — The echo statement appears correctly…but nothing is appearing in the field values for the user – I am pulling my hair out??????

    Sample

    ////////

    function BP_Insert_Test($wpuid, $age) {

    $age = ’22’; // Should appear in the profile

    echo(‘user id is ‘ . $wpuid . ‘ and userdata is ‘ . $age);

    xprofile_set_field_data(2, $wpuid, $age);

    }

    Any ideas?

    #54166
    Damon Cook
    Participant

    I’m attempting to do something kinda similar. I just want to create a block (pardon my Drupal lingo) that shows a blog’s author information in my theme. I want to specifically show their BP custom fields.

    Right now I’ve copied over bp-sn-parent/profile/profile-loop.php to my theme and called: locate_template( array( 'profile/profile-loop.php' ), true ) but this gives me everything in the user’s profile. I would like to get a little more granular and just specify certain fields. hmmm

    Here is my current example as it exists.

    #54157
    shedmore
    Participant

    Okay….Andy is probably busy, I didnt mean to explicitly ask Andy (only) :)…if anyone has any advice on this I would appreciate it!

    #54119

    In reply to: "No blogs found."

    outolumo
    Participant

    I have this same issue. The blog name bears no resemblance to the username. There’s no reference to any blog in the profile fields.

    WPMU 2.8.4a

    BuddyPress 1.1

    It was not solved by itself overnight.

    #54114
    shedmore
    Participant

    Andy let me ask you….I am playing with the bp-facebook plugin you ported, and specifically trying to add a value to the insert function you have in there now

    function bp_fbconnect_insert_data( $user_id, $usermeta )

    ///////I tried setting an extra value inside that function – statically for now (just for testing) right under the default “full name” insert you have in there now.

    I set it up like this:

    xprofile_set_field_data(‘Age’, $user_id, ‘Test’);

    I have tried setting with double quotes, no quotes, and several different ways, but it never seems to insert into the “Age” field I created in Buddypress.

    Any ideas whats going wrong here? I am wondering if this function isnt firing at the right time? OR maybe I am making a stupid mistake :)

    Thoughts? Thanks

    4828920
    Inactive

    If I am sure .. I did a fresh install .. before had given me an error with the same file. but with the following function:

    $fields = bp_xprofile_field_deprecated::get_signup_fields();

    the error was that he was in all caps and put it in lowercase worked .. but now I get the avatar.

    if I upload the files .. but I do a fresh install. bd untouched .. could be solved?

    I already have is very progressed to delete it.

    excuse my English is not very good

    #54024
    Andy Peatling
    Keymaster

    echo xprofile_get_field_data( $field_name_or_id [, optional $user_id] );

    #54004
    stripedsquirrel
    Participant

    Well, I found that in the BP-blogmeta table the blog in question only had one row (last_activity), but not the Name and Description fields, so I added them manually and now they appear.

    I have no idea why they were not added in the first place though…

    Oh, and he was also missing from the bp_user_blogs table, have added that too and now his profile shows his blog.

    Hope this can be useful for others with the same problem,

    Cheers

    #53942
    stripedsquirrel
    Participant

    I just noticed I have the same problem. I am not sure if this is a bug as maybe not all admins check the old sign-up page?

    I had renamed it to stop splogs, but after the BP installation (1.1, from scratch, with new standard themes), the register pages shows the entire form, including extra profile fields, but the ‘regular’ sign-up page only shows up half (see http://biketravellers.com/wp-newblog.php )

    What is going on? No errors, it just stops halfway.

    Cheers

    #53871
    lewbell
    Participant

    Thanks DJ

    Reinstalled bbpress once again and it seems to respond now.

    Still can’t get the Profile Field questions to show up for new users.

    I think I’m missing something small.

    #53847
    Paul Wong-Gibbs
    Keymaster

    Sounds like your MySQL database connection details aren’t proper. However, if the rest of your WPMU site works…

    Was your previous bbpress install in a seperate database? (i.e. not in the same one as wpmu/buddypress)

    #53712
    shedmore
    Participant

    Thanks Andy, I appreciate it. I can see it now…I will dig through the bp-xprofile.php to figure out the other functions.

    Thanks for the great work!

    #53663
    4727579
    Inactive

    OK Andy solved this one for me in this thread. The answer is this: xprofile_get_field_data( $field_name_or_id, $user_id );

    Where $user_id is (in this case) $member and $field_name_or_id is (in my case) 61. I got the number by looking at the Profile Field I was after in Firefox with the Web Developer toolbar and it showed me the number in the class. I can’t work out another way of seeing a custom profile field’s id.. Off we go!!!

    #53657
    Andy Peatling
    Keymaster

    xprofile_get_field_data( $field_name_or_id, $user_id );

    #53651
    shedmore
    Participant

    Anybody???

    I could really use the help please!

    I’m closing this topic since there is another one announcing the official release. Please route your responses here going forward.

    westpointer
    Participant

    Released today! I appreciate all comments!

    https://buddypress.org/forums/topic/auto-group-join-plugin-added

    #53214
    lostdeviant
    Participant

    I also just noticed that buddypress profiles don’t import from wordpress profiles or vice versa. It takes enough tooth pulling to get people to complete one profile. Adding those fields to sign up would be good because required fields would also have some anti-spam benefits.

Viewing 25 results - 3,251 through 3,275 (of 3,608 total)
Skip to toolbar