Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'hide fields'

Viewing 10 results - 251 through 260 (of 260 total)
  • Author
    Search Results
  • #48357
    Jeff Sayre
    Participant

    Hiding a field on a form is not that difficult. As long as the required data gets added to the database by some other means it doesn’t change the underlying foundation at all.

    As I said, I’m sure that with enough coding you code get this to work. But it might require core hacking. If so, that would be a change to the underlying foundation. I’m not sure without trying it so your best bet is to talk with the WPMU gurus on their forum.

    It is not a WPMU issue.

    The WPMU forum will just send me back here and rightly so.

    Whereas they may indeed send you back here, it is a WPMU issue. Just because you think it is a BuddyPress issue does not make it so. I’ve said that several times, DJPaul has said that, jjj has said that as well.

    WPMU’s functions take care of the underlying registration process. BuddyPress just hooks into that process, adding a few of its own fields and checks along the way. WPMU does not allow you to position the username field in a different sequence–not without behind the scenes changes. Of course it is easy enough to hide it via CSS, but whether or not you can then write data to it, bypassing WPMU’s field validation protocols is a different story. I have not tried that. I am not sure. But, it is a question that must be asked of WPMU, not BuddyPress.

    You said above that:

    I’m not really a coder. I understand I’ll need to learn from scratch or hire someone.

    Well, if you aren’t looking at how the underlying registration functions are coded, then how can you say with such certainty that this is not a WPMU issue?

    I have not spent all the time that I have responding to your various questions in your various threads to get rid of you. If I didn’t want to help, I would simply have ignored your posts. I’m offering you support and pointing you in the best direction for the given issue. You can choose to ignore my advice. That is your prerogative.

    Perhaps you’ve already spent time on the WPMU forums and did not get the response you have wanted. We’ve been as helpful as we can here.

    Without contracting with a coder or coding yourself, you’re out of luck.

    #44969

    In reply to: SQl Question

    Paul Wong-Gibbs
    Keymaster

    Please search forum before asking questions; it’s in the FAQ sticky – https://buddypress.org/forums/topic.php?id=2190

    “How to hide selected profile fields”

    :)

    #40349
    bingoneighbour
    Participant

    Actually it’s pretty easy to see what profile fields are called in the DB – Check the wp_bp_xprofile_fields table and you’ll have an ID associated with each field which you should be able to use to call them.

    #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

Viewing 10 results - 251 through 260 (of 260 total)
Skip to toolbar