Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 3,801 through 3,825 (of 3,908 total)
  • Author
    Search Results
  • #40347
    enlightenmental1
    Participant

    it appears the profile fields are being named rather generically…

    i.e.

    field_1

    (first name)

    field_2

    (xprofile field #1)

    field_3

    (xprofile field #2)

    I need a way to manually call/insert these values… and Im assuming they aren’t named “field_3” in the database

    I was hoping if i add an extra field and call it “Referred by” that the DB table name would be “referred_by”

    this this a correct presumption?

    I have little knowledge of functions and this code has ALOT of them….

    #40336
    enlightenmental1
    Participant

    I think i understand what you mean…. well… not really

    function bp_the_profile_field_value() {

    global $field;

    $field->data->value = bp_unserialize_profile_field( $field->data->value );

    echo apply_filters( ‘bp_the_profile_field_value’, $field->data->value, $field->type, $field->id );

    }

    you’re saying add a “if” statement, so if the “x_profile fields = this” do “this”…..

    I dont know enough about php….

    #40283
    Burt Adsit
    Participant

    You’ll have to modify the member theme functions that display the fields in the profile. That gets generated in: /buddypress-member/profile/profile-loop.php

    by the function: bp_the_profile_field_value() in /mu-plugins/bp-xprofile/bp-xprofile-templatetags.php

    There’s a filter in there that you can hook: echo apply_filters( ‘bp_the_profile_field_value’, $field->data->value, $field->type, $field->id );

    So that you can detect these specific fields and change what gets generated by bp.

    #40234
    enlightenmental1
    Participant

    I see, I see… thanks

    by “make plugin” you mean just handcode what i want….

    can you tell me which files to edit:

    wp-signup.php

    (edit this to add extra fields to registration once I remove x_profile functionality)

    how about the “edit profile” page?

    which PHP file is that?

    I still need to display those fields as “readonly”

    thanks again

    #40232
    nicolagreco
    Participant

    “you can do that making a plugin sure”

    i said :D

    For plugins i mean doing the thing you’ve thought

    #40231
    enlightenmental1
    Participant

    Hey Nicola,

    I don’t mean to disagree with you, and Im sure you know more than me, but I think this IS possible….I’ve done it on other WP installs

    once the extra profile fields are created, I just need a way to call them back.

    (I realize I would be removing the “get additional fields” function and just code it by hand)

    For example if I wanted to display the users first name, I would use this:

    Register Page:

    <input type="text" name="first_name" id="first_name" class="input" value="" size="25" tabindex="20" /></label>

    Profile Page:

    <input type="text" name="first_name" id="first_name" class="input" value="<?php echo $_GET['first_name']; ?>" size="25" tabindex="20" READONLY=READONLY /></label>

    so rather than displaying the form fields dynamically(x_profile), I would just hand code them in based on what “extra fields” I’ve created

    that will work won’t it?

    I just need to know which files to modify….

    thanks for brainstorming with me

    #40216
    nicolagreco
    Participant

    It can’t be done right now, but you can do that making a plugin sure

    Nicola

    #40176

    You can currently use the bbGroups plugin by BurtAdsit to do this with group forums. He’s paused integration for other Extended Profile fields and non-group forums for now, but that is the closest integration available currently.

    Take a look over at http://code.ourcommoninterest.org/

    Science Content!


    The problem with doing it any other way right now, is that without grabbing and caching forum specific BuddyPress profile info and putting it into a convenient user_meta array, it would require an additional query into the database for each user that you want each piece of info for. So lets say you not only want the avatar, but their fullname, and another piece of profile info that you’ve made up. That’s three queries a person, per post, per page. A page with 10 posts just gave you 30 extra queries. The bbGroups plugin works great to counter act this, but I’ve been the primary beta tester experiencing hiccups and Burt has patiently been trouble shooting with me to figure out why. The past week life has sort-of halted my ability to test, but it is a priority for me to address.

    #40142

    Unfortunately not yet, but I suspect this will be something that someone will come around and make, if not to be introduced into the core later on.

    Currently the search is global, searching all fields for one particular phrase. This could probably pretty easily be filtered and narrowed down via a plugin, but currently none exists.

    #40123
    Burt Adsit
    Participant

    To do this you’ll have to replace the current bp function xprofile_add_signup_fields() with your own. In bp-custom.php create a new function that renames the current function like so. Just copy the whole thing over and rename it.

    function my_xprofile_add_signup_fields(){

    <body of existing bp function>

    <your mods to the avatar area>

    }

    remove_action( ‘signup_extra_fields’, ‘xprofile_add_signup_fields’ );

    add_action( ‘signup_extra_fields’, ‘my_xprofile_add_signup_fields’ );

    #40098
    fishbowl81
    Participant

    We need to get Andy to changed the member theme not to show private profile fields, and then use those private profile fields in custom boxes to diaplay stuff. This would be a great way to ask for zipcode, and build a custom module to show a Google Map, or ask for birthday and just show a count down timer until their birthday.

    Where I don’t expect this to be in the 1st version, but would be nice to get the details hammered out in early post release versions.

    Brad

    #40086
    mspecht
    Participant

    Avatars are created by the xprofile component as part of the ‘signup_extra_fields’ action, specifically bp-xprofile-signup.php.

    My guess is you could create your own action and add it to ‘signup_extra_fields’ and remove the ‘xprofile_add_signup_fields’. I say guess as I have not tried it :-).

    #40078
    ladysham
    Participant

    While I could make them separate fields, they would not appear together in the profile. Using the date format makes it easier for it to appear as a date, without the year if necessary. Many people do not wish to list their complete birthday where it is visible on the net for security purposes.

    So, it would still be helpful to know where this can be modified. Thanks!

    Kelly

    #40060
    Decisionc
    Participant

    thanks brad. not sure how to use that function, tho.

    to be clearer, I wanted to know if I can ask my user: What do you want your new “Full Name” to be? in a form, and then take their new name, and replace the old full name in their profile with what they want.

    (obviously, I would also want to edit profile fields other than full name)

    is there a way to do this?

    #39987
    Burt Adsit
    Participant

    More filtering was added to xprofile fields in trunk.

    #39978
    Burt Adsit
    Participant

    This thread has a solution. It turns off all the auto linking in the profile fields. Right now it’s either on or off.

    https://buddypress.org/forums/topic.php?id=733#post-3324

    #39946

    Currently the Extended Profile fields do not have an option to explain to the plugin or template engine what kind of filters to apply to them, so by default they all become searchable unless they are an unformatted URL.

    HTML is currently stripped from textarea fields. My guess is eventually each field will have more than just a “type” but also a logic behind it too, just not for the 1.0 release.

    #39910
    jtbailey
    Participant

    I’d like to see:

    1. better taxonomy with separate vocabularies (think Drupal). For example if there’s a profile field called “home town” and the user enters New York, NY, that would link to a list of other people who’s hometown is New York, NY (instead of doing a sitewide search for everything containing “New York”)

    2. some type of user role system with different permissions for each role, and different profile fields per role (business, typical user, whatever)

    3. ability to comment on Activity posts (like Facebook, though I assume this is already in the pipeline)

    4. total integration with Picassa and Flickr ( check out what this guy’s been doing with the 6.x version of this: http://drupal.org/project/picasa . It’s the best sort of photo management for a CMS I’ve come across )

    #39786

    -rather than limiting access to members only, a perfect feature would be that the user choose (if permitted – I mean, choices allowed should be defined by the admin) how he wants to protect his profile : for each group of fields; public | members only | groups | friends.

    I think this would be rather necessary !

    #39731
    rlwpub2
    Member

    fishbowl81,

    You just lost me. What I want to do is have a dropdown box. When they select an option then auto magically a group of fields appear that are appropriate for their option selection. If they change the dropdown then those fields disappear and new appropriate fields for the newly selected option appears.

    Re’s

    Rob

    #39701
    fishbowl81
    Participant

    I hope Andy releases some code to support some of these Easter Eggs. Maybe we should hold an Easter Egg hunt, with prizes for everyone who can find unused Database fields or unused functions in the code. I know of a 1/2 dozen which I would really like to see implemented soon.

    Brad

    #39700
    fishbowl81
    Participant

    you can…

    do this.. mark fields as private, change your profile fields to dispaly public only, and then use the values to generate a customer profile box.

    You can easily get profile values directly, and can perform any calculations you want based on these values. But I’m sure it might be a little confusing to show these, so you need to have them marked as private. These private fields will not be shown once you modify the profile member theme.

    Hope that gives you some ideas,

    Brad

    #39683
    jeff-sayre
    Participant

    Yes, by using the Extended Profile fields this idea can already be implemented. But perhaps I’m missing something. Whereas multiple href tags are placed within single posts everyday in the blogosphere, it is a lot harder to extract (parse) that data–each individual link–for other purposes.

    In this particular instance, placing a member’s outbound homepage links, each in their own individual record, makes it a lot more useful. In other words, a 1:N relationship between a member and his or her chosen online homesites. They could add as many as they like and each would appear in a nicely formatted table, one row for each link, each record. This would provide a more flexible and easy to manipulate subset of profile data for plugin developers to utilize.

    However, such relational design in this case may be over engineering the data schema and might be of limited use for the vast majority of developers. It could also make the management of the profile fields more complex–from a coding standpoint.

    But, this general concept of offering a way for plugin developers or site admins to place multi-record fields (model 1:N type data) within profiles would be very powerful. Currently, most social network platforms do not provide that type of relational complexity within their users’ profiles. True 1:N relationships are simply listed within a single field. For instance, members of a musicians network list their albums or songs within each album in a list within a large text field.

    You get the idea. Maybe this is not too useful for most. But I think providing the option could help BP become an even more sophisticated platform.

    #39666
    rlwpub2
    Member

    Thanks I just submitted one with a little more detail.

    Re’s

    Rob

    #39665

    Can’t answer to say if it will support this, but it wouldn’t hurt to add this in the trac as an enhancement. I see how this could be valuable.

Viewing 25 results - 3,801 through 3,825 (of 3,908 total)
Skip to toolbar