PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Custom User Fields - Contact Methods - not in drop down - Ver 1.6 b2

  1. I used this code to add additional contact methods in the user profile:

    function add_remove_contactmethods( $contactmethods ) {
    
           // Add Contact Methods
    	   $contactmethods['twitter'] = 'Twitter';
           $contactmethods['facebook'] = 'Facebook';
           $contactmethods['googlebuzz'] = 'Google Buzz';
           $contactmethods['friendfeed'] = 'Friend Feed';
           $contactmethods['linkedin'] = 'Linked In';
           $contactmethods['flickr'] = 'Flickr';
    
           // Remove Contact Methods
           unset($contactmethods['aim']);
           unset($contactmethods['yim']);
    
           return $contactmethods;
    }
    add_filter('user_contactmethods','add_remove_contactmethods',10,1);

    I also have these fields set up as Website fields on my form.
    When trying to map these fields in User Registration, the last 4 do not appear in the drop down. They are on the form however.

    Using 1.6 b2 of the plugin. WP 3.2.1

    Thanks

    Posted 12 years ago on Sunday September 11, 2011 | Permalink
  2. Does data exist in the User Meta table with these user meta keys yet?

    Keys/names of meta aren't stored somewhere in a lookup table of some sort. They only exist when data that uses them exist.

    Only user meta that's been used and has values in the database is returned in the user meta drop down. Because that is the only way to query and get a list of user meta names.

    Posted 12 years ago on Monday September 12, 2011 | Permalink
  3. Hi Carl,
    Yes, I see that they are in usermeta, but still not in the drop down....
    I even did an update on the form itself, and in the User Registration form.

    Nada...

    Posted 12 years ago on Monday September 12, 2011 | Permalink
  4. So I received clarification from our developer who works on the User Registration Add-On.

    The list of user meta is pre-defined based on the default WordPress settings. We can't query the user meta to get the list of all the in use user meta keys because there are a LOT of user meta values that would be returned that aren't appropriate for this usage.

    So what you have to do is select "Add Custom" from the drop down and type in the user meta key it should use like you were adding a new one. This doesn't really add a new type of user meta in the traditional sense, it simply uses whatever you input as the user meta key/name used to store the data.

    Posted 12 years ago on Monday September 12, 2011 | Permalink
  5. Hi Carl,
    But I'm trying to map it to a BuddyPress defined field http://grab.by/aSIl

    The BP field is in the left drop down, no problem. But when I try to map it to a field from the form http://grab.by/aSIp - in this case Flickr, it's not in the list. In fact, another form field called Church Size (drop down type) http://grab.by/aSIw isn't there either, along with one called Google Buzz (website type), and LinkedIn (also website type).

    I understand what you are saying about Add Custom http://grab.by/aSIB
    And I can put the meta key in there... but there still will not be a form field on the right to map it to in User Registration http://grab.by/aSIC

    I hope that I am being clear enough.
    Thanks

    Posted 12 years ago on Monday September 12, 2011 | Permalink
  6. Hi WebEndev,

    Would it be possible for you to send me a super admin login to your buddypress install? If this turns out to be a bug, FTP access would be nice as well. :)

    Send to david@rocketgenius.com

    Posted 12 years ago on Tuesday September 13, 2011 | Permalink
  7. Hi David,

    I have created an Admin for you on the site, and also FTP access. You should have received emails on both.
    Thanks much for looking at this.

    Posted 12 years ago on Wednesday September 14, 2011 | Permalink
  8. This issue was caused by corrupt form meta. This can be resolved by recreating the erroneous fields. The addon has been updated to process any fields with this specific corruption without issue in the future.

    Posted 12 years ago on Wednesday September 14, 2011 | Permalink

This topic has been resolved and has been closed to new replies.