• Hi All

    I am using the Customize Your Community WordPress Plugin, to allow users to register, login and edit their profile. However, I do not want the following fields on the User profile. Can anyone recommend a way to remove them without having to lose the modification on upgrade.

    The fields I want to remove are:

    * Website
    * AIM
    * Yahoo IM
    * Jabber/ Google Talk
    * Biographical Info

    Thanks in advance!

Viewing 9 replies - 16 through 24 (of 24 total)
  • I used this jQuery code in my main header to hide the bio:

    $('textarea#description').parent().parent().hide();

    This is the only code I found that worked with the 3.0 RC:

    function extended_contact_info($user_contactmethods) {  
    
    $user_contactmethods = array(
    'building' => __('Building'),
    'room' => __('Room'),
    'phone' => __('Phone')
    );  
    
    return $user_contactmethods;
    }  
    
    add_filter('user_contactmethods', 'extended_contact_info');

    I found it while web searching, forgot what site, sorry.
    It takes out all the others and puts in what ever you want. You can add as many on there as you need, like
    'shoesize' => __('Shoe Size')

    Sorry, I should be more specific:
    It removes the AIM, Yahoo IM, and Jabber / Google Talk fields.

    Oh. and a moment to vent…
    WHY are those 3 on there, but not Twitter? or Facebook? or LinkedIn?
    C’mon….

    Thanks for the coding geezerd, and point made!!

    Thanks for the coding geezerd, and point made!!

    @geezerd and @zatuna: what the hell are you talking about? The toppic was “how to remove” and not “how to add” profile fields.

    It would’ve been cooler if you’ld contributed something that hasn’t been posted in this thread before. Simply let me point you to @ipublicis contribution. @geezerd did nothing new.

    So much for my 2 cents…

    I can see your point, I got a bit off subject, but since ipublicus’ code doesn’t work in 3.0, I offered the only thing I found that worked.
    Simply leave the array empty if you want to just remove and not add:

    function extended_contact_info($user_contactmethods) {  
    
    $user_contactmethods = array();  
    
    return $user_contactmethods;
    }  
    
    add_filter('user_contactmethods', 'extended_contact_info');

    And, no “I” did nothing new, since I stated I found the code while web searching.

    So now you know what 2 cents is worth. Not much.

    Hi Geezerd – I want to remove that garbage so bad and when I found this post I thought I was home free but alas, the garbage remains. I’m on 3.0 and here’s what I added to functions.php and the outcome:

    I added (to the very end – obviously before the ?> ) the following:

    function extended_contact_info($user_contactmethods) {
    $user_contactmethods = array();
    return $user_contactmethods;
    }
    add_filter(‘user_contactmethods’, ‘extended_contact_info’);

    This killed my site dead. I then removed just the last line:

    add_filter(‘user_contactmethods’, ‘extended_contact_info’);

    and my site worked fine but the garbage (jabber bio yahoo, etc) was all still there.

    So I’m back to square one. I can list my plugins, etc but on the surface is there anything that jumps out that I may need to address?

    Thanks!

    Hmm… I dunno what to tell you, I just tried it on 3 different sites, it worked fine on all.

    It doesn’t remove:
    Email
    Website
    About Yourself (Biographical Info)

    Those are still showing. Sites all up and crankin’.

    I myself would also like to know how to add new uneditable/non editable fields. Ones that subscribers can’t change, but can see.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Remove some profile fields’ is closed to new replies.