1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to remove default user profile fields?

Discussion in 'XenForo Questions and Support' started by fredrikse, Jul 20, 2012.

  1. fredrikse

    fredrikse Active Member


    I wonder how I can remove default user profile fields like those ones in the picture below?

    user profile.jpg

    When I do my import from vBulletin I already have custom user profile fields which I intend to continue using in xenForo.
  2. Chris D

    Chris D XenForo Developer Staff Member

    What may be easier is to copy the contents of the custom fields in vBulletin to the default ones in XenForo via a My SQL query.

    The thing is, those default fields are called in lots of templates so removing them may cause template errors. I'm not sure, I haven't tested it.

    But, the thing is, those fields - they're all default ones in vBulletin, aren't they? Why did the end up being "custom"?

    If they are the default ones, the data will automatically copy over to the XenForo ones.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The vB importer recognizes vB's default location, occupation, and home page fields and imports those values into the corresponding default fields in XF. It shouldn't be a problem unless you aren't using vB's default profile fields for those things.


    If you end up with duplicate fields then a query is possible. Here is an example:

    Chris D likes this.
  4. fredrikse

    fredrikse Active Member

    The reason for those fields being custom ones is that I for a couple of years ago migrated to vBulletin from a custom forum that I had developed myself. Looking in the rear mirror maybe I should have used the default fields in vBulletin.

    The suggestion to move, for example, the location information to the default field instead of having it in a custom field, sounds like a very good idea to me. I really don't want to get rid of any fields. Maybe just hide them from the members to see. Is that possible? I didn't find any settings to that in the options area.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Custom fields can be hidden. But those 3 fields are not custom. Those are "integrated" user fields that do not have a "hide" option. But they can be manually removed with template edits.
    Chris D likes this.
  6. Chris D

    Chris D XenForo Developer Staff Member

    Yeah, that makes sense. This should be easy enough to get around.

    It's certainly possible to hide custom fields on a per field basis. This is what the options should be set as to completely hide a field - you may for your own purposes want to change their name so you know at a glance they're your old ones, but the settings below would hide them to members:

  7. Chris D

    Chris D XenForo Developer Staff Member

    I read it that he wanted to do the query to move the contents, but keep the vBulletin custom fields and hide them..

    I dunno.

    Either way, both bases covered with two good answers :p
  8. fredrikse

    fredrikse Active Member

    Thanks for two great answers that cover moste of want I want to achieve. What I don't want to do is to go down the road with template edits. I want to keep xenForo "as is" without any edits. Maybe I mixed the cards up for you a little bit before regarding the custom fields.

    If I choose to import from vBulletin I would want to transfer as much info as I can from those custom fields to the fields that come with xenForo. When that is done I might as well just get rid of them because there wouldn't really be any point in hiding them, would there? :)

    Jake, you link to the SQL query seems to do the job with some modifications:

    Right now I think it is location and gender that needs to be moved when the import from vBulletin is completed.

Share This Page