By jacauc on
I would like to find out if it is possible to add fields to user profiles: Like Full-Name, DOB etc.
I played with the Profile module, but this does not do what I want it to.
->What I need is to have all fields, everything, on the SAME TAB in the user/edit section.
How can this be done without going and editing user.module directly?
Hope this makes sense.
Thanks
jacauc
Comments
check this out..
Hi Jacauc.
not sure if it's easy to combine everything on the same edit page..I haven't tried that. but it is simple enough to display everything on the one page...and control that layout.
I added a new section to the handbook a while back that has some simple step-by-step instructions:
http://drupal.org/node/35728
hope that helps..
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
Thanks, I actually read
Thanks, I actually read section in the handbook that and played around with it a bit last week :D
Very handy! ...and I will start using it when I have all the profile fields on one user/edit page :P
Thanks for the tip though!
jacauc
profile fields on the same edit page..
no worries..
Am curious if either of the following will work for you (to get all the added profile fields to show up on the same edit page):
When you're adding a new profile field...
(a) leave the CATEGORY field empty when you're adding a new profile field
or
(b) calling the category field
Account Settingscan you try that and post back up here if it works for you?
would be worth knowing if that works.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
nada
Thanks dub,
I have tried your suggestions, but they don't work unfortunately.
-Category is a required field, so cannot be empty, and if I set it to "account settings" it still creates a seperate tab, even though it has the same name.
:(
Does anyone have a
Does anyone have a suggestion of where i can even start looking.
Is this possible at all? (without changing core stuff)
Thanks
http://www.dieinter.net
quick one..
Jacauc,
I'm afraid it looks like you'll have to hack user.module to achieve what you want....pity.but unless another drupaller pops up with an alternative, you're looking at hacking user.module.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
aaaw man
That sucks! :(
Oh well, of I go.... editing user.module.... till the next upgrade :S
Cheers, thanks anyways!
jacauc
the solution
You can make fileds with profile module. After it, you try this mysql command:
update profile_fields set category='account';
The category name is "account", but the drupal is not allow this name. :(
You need hack it with mysql.
Or you can write a module, what can modify the profile module category fields without restrictions. :)
naraku
Thanks naraku, I have tried
Thanks naraku,
I have tried this, but after executing the SQL, when I go to the account, edit page, the entire "Account information" section is missing.
I updated the SQL again to set the category to something else, and its working again like it was, so back to square one.
Any other ideas?
Shot,
jacauc
my ideas
i have the same need for my site, and there goes my 3 cents
1 - idea to throw all fields into one category is rather bad - it will be a mess, categories should be even more visible, maybe with some icons and text available for them
2 - i would like to enable my users to change every profile field in single "save changes" request, so account information and all categories should be visible on one page
3 - i think that, if you create some categories and some fields, and set them being visible in registration page - that is what we need here. We have account settings and some categories fields in one page! no need to reload pages... only we have to port this to edit profile and we should be happy :)
Maybe someone could help?