Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'hide fields'

Viewing 25 results - 176 through 200 (of 260 total)
  • Author
    Search Results
  • #100192
    vorkun
    Member

    Yeah I am trying to do this also. Any one found out a way to do it yet?

    #98625

    In reply to: Hide profile fields?

    eljustino
    Member

    Thanks for the response, @nahummadrid.

    I’m actually thinking about some data that the users wouldn’t input, but rather that would be generated by another process and linked to their account. I thought the profile would be an idea place to include that info.

    #98623

    In reply to: Hide profile fields?

    Nahum
    Participant

    you could try this https://buddypress.org/community/groups/bp-profile-privacy/ and set those two fields for just user view. I mean if you really don’t want user themselves to see something they’ve inputted I guess you could use CSS to display:none for that field.(thats not the best way) but I would want to know where information I input went to, :) so in those 2 fields description you can say this is only visible to them from the profile page.

    #98304
    David
    Participant

    @boonebgorges My plan has hit a snag. I am having trouble using what you gave me above to include more then one set of form markups. Let me explain…if I include something like

    function bbg_extra_group_fields_markup() {
    ?>

    this form is for a new data table that I created
    }
    add_action( ‘groups_custom_group_fields_editable’, ‘bbg_extra_group_fields_markup’ );

    function bbg_save_extra_group_details() {

    // form 1 processing goes here with insert/update
    }
    add_action( ‘groups_group_details_edited’, ‘bbg_save_extra_group_details’ );
    add_action( ‘groups_create_group_step_save_group-details’, ‘bbg_save_extra_group_details’ );

    The above formula works great! I created a new table and I am able to populate it with no issues. Now..this is where things get messy and I am having trouble trying to figure a way around it. I want to duplicate the same code above with another table for separate settings. I am using jquery show/hide to show the form that is needed for the desired group settings. Another words Group A gets one type of settings and Group B gets another inputing the data to their own data table. So if i duplicate the code above twice the processing clashes…meaning if both groups have a table field with the same name things get a little messed up processing. Is there a way to group the code for Group A and Group B? meaning ” function bbg_save_extra_group_details()” for Group A belongs to “function bbg_extra_group_fields_markup()” of Group A. I am thinking “if” statements but then not sure. I know it sounds confusing but again any ides would be greatly appreciated. Also forgot to mention that when I duplicated the functions for Group B I did name it something new. Thanks

    #95153
    Hugo Ashmore
    Participant

    @questus5

    Look at your bp admin section, you will see the custom profile link you use that to create new groups and fields, as long as a new group is created under the ‘Base’ level then it will appear on the registration page.

    @dorothysulzmann
    As a workaround I would move the three type selections labeled ‘Fan off’? to just after the primary details and use the tree types as just that to confer a user type to each member but also run a simple jQuery show/hide on the further groups so all are hidden and then a check is performed to catch the radio selection and the appropriate group revealed with perhaps a ‘none’ control selection default.

    The proper approach would be to complete a section and then pass the form control fields in a session or buffer to the next view to complete further sections but with BP that will likely start to get complicated, as techguy says there is no quick easy way to do this but with client side scripting it wouldn’t be that difficult.

    paulhastings0
    Participant

    DOB should never be displayed. In fact that’s not even a default BuddyPress registration option. Did you add in some registration fields of your own or did the Thesis theme?

    #89206
    Roger Coathup
    Participant

    @tubruk

    I’m not really sure what you are trying to do with your code. Whereabouts are you trying to hide fields with no data? In the default theme profile-loop.php, fields without values are already not displayed.

    As for quick fixes: You’ll need to replace ‘your-field-id’ with a variable that’s got the field id in it. You’ll also need to write valid PHP e.g. closing the PHP code before beginning your html. I’d steer clear of inline style definitions as well; the default BuddyPress theme comes with a comprehensive set of CSS files, and you’d be better augmenting these with style definitions.

    Unfortunately, this forum isn’t really the appropriate place for PHP coding tutorials – You might be better reading up on PHP before attempting to modify the theme templates in any depth.

    #89176
    Roger Coathup
    Participant

    @tubruk

    in your child theme, wherever you want to hide fields that have no data, you can put a simple if statement, something like:

    if (bp_get_profile_field_data(‘field=your-field-id’) === “”) :
    // don’t display code
    else:
    // display code
    endif;

    Which file to edit, all depends where it is you are wanting to display / hide the profile field. The most likely file for displaying profile fields is profile-loop.php in members/single/profile, but that already skips blank fields (using a call to bp_field_has_data(); that function has to be used inside the profile field loop).

    #89001

    In reply to: Hide profile field

    nickmy
    Participant

    @r-a-y & @djpaul thank you very much I’ve got a last question what do I need to change if I want to hide more profile fields

    #88998

    In reply to: Hide profile field

    r-a-y
    Keymaster

    Tested just now, works for me.
    You need to use the profile id #.

    Go to your profile field setup and check the ID by putting your mouse over the “Edit” field. The ID # is field_id.
    For example, “Name” is 1.

    Either that or go to your DB and manually look up the profile field id in the wp_bp_xprofile_fields table.

    You can also use any profile template tag and do your conditional.

    If you wanted to use the profile name, use bp_get_the_profile_field_name() instead.

    #88868

    In reply to: Hide profile field

    r-a-y
    Keymaster

    You have to ask 1000 and 1 times! ;)

    You have to modify the profile loop (/members/single/profile/profile-loop.php)

    Change this line:
    while ( bp_profile_fields() ) : bp_the_profile_field();

    to:
    while ( bp_profile_fields() ) : bp_the_profile_field(); if ( bp_get_the_profile_field_id() != 'ID # YOU WANT TO SKIP' ) :

    then change the corresponding endwhile; line to:
    endif; endwhile;

    That’s one way of doing it.

    #88840

    In reply to: Hide profile field

    nickmy
    Participant

    I asked 1000 times how to hide special profile fields :P no answer @r-a-y @djpaul @hnla????

    #87069
    nickmy
    Participant

    no I just need a little hack… It must be visible when I use this:

    /***
    * If you’d like to show specific profile fields here use:
    * bp_profile_field_data( ‘field=About Me’ ); — Pass the name of the field
    */

    #79920
    justbishop
    Member

    Thanks :)

    I was actually coming to post that I didn’t really need it any more, but it’d still be useful info I suppose.

    In my case, the actual “blog” part of the main blog wasn’t being used for anything, so I’m just using that as the classifieds post system. I have custom fields set up (custom field template plugin) for users to call their remotely hosted photos, and am using a combo of the Members and Adminimize plugins to hide admin panel stuff that they don’t need to see. I also had to do some editing of the core wp-admin/edit-users.php to get rid of unnecessary profile fields in the backend, but nothing too bad that it can’t be redone after an update.

    #79548
    mrjarbenne
    Participant

    Here’s that plugin I was referring to: https://buddypress.org/community/groups/bp-profile-privacy/

    peterverkooijen
    Participant

    @thelandman, in my solution I use javascript to generate the username from the weird semi-optional xprofile fullname field, hide the username field on the form, use the email login plugin so members don’t need the username to log in, add more custom code to synchronize the fullname and the fullname-derived username to all the various similar fields in the database, etc. It’s messy, but somewhat workable.

    The point is that it should not be that hard. Using full names, Firstname Lastname, should be part of the core. Seeing that none of this is fixed in 1.2+ and probably will never be fixed, I have no plans to upgrade to newer versions of Buddypress and will continue developing my version as a fork, more suited for professional and business use. If anyone is interested in working with me on that, please contact me directly.

    #79263
    mrjarbenne
    Participant

    I use a Profile Privacy plugin created by http://www.jfarthing.com/. Sadly, the link to the plugin in my dashboard comes up 404 in the wp repositorty, and I can’t seem to find reference to it on his site. That said, the plugin allows for you to manage who can see certain fields in the profile (everyone, friends, user). When profile fields are set to “user” only the user and the site admin can view the info. Perhaps an attempt to contact jfarthing will met results. Good luck.

    #79208
    nickmy
    Participant

    please its important

    Paul Wong-Gibbs
    Keymaster

    @bofw Ah, there you are. Was wondering when I’d find your username on here.

    Sarah – are you trying to hide particular fields, or field groups, on the ‘edit profile’ page?

    #77819
    nickmy
    Participant

    no ideas?

    I thought I could maybe solve it with a little php snippet but my knowledge isnt very good

    rossagrant
    Participant

    Great idea,
    Yeah it would be good to somehow hide the first and last name fields and have them filled with copies of the username somehow.
    Let me know how you get on!

    #74886

    In reply to: Badge Maker

    gregfielding
    Participant

    @warut

    I’m playing with 1.3 and it’s working great…

    2 suggestions:

    1. Create an option in the admin menu to hide the names of the profile fields. Most of the fields are pretty self explanatory anyway and the extra words just clutter things up.

    2. Create an extra field for users to type in a short message or description, giving them some other way to personalize their badge.

    It looks great warut!

    Gene53
    Participant

    Done, thanks again.

    Gene

    jivany
    Participant

    So it works? Tag the topic as resolved. ;)

    Gene53
    Participant

    Believe it or not, it didn’t work when I changed Username for 1 but it did when I added ,3 (still don’t know what the 3 is for, LOL).

    Does that mean I don’t really need the funky function and simply change the <input type=”hidden” … > in edit.php or should I just leave things as they are now that it seems to work?

    EDIT: when I added ,3, I couldn’t change the value of the next field and “1” still gives me the error…

    EDIT 2: ROFLOL, it didn’t work because I omitted the , (colon) after the 1. Now everything seems to work.

    Thanks again, I really appreciate your help.

    Gene

Viewing 25 results - 176 through 200 (of 260 total)
Skip to toolbar