Hey there,

I really like the simplicity of the BIO module to use as a profile for users. Eventually i'd like to know if it would be possible to add the "bio" tab so that it's inside the 'account -> edit" tab and not directly on the user page.

That way, users can click on "edit" and then they could fill their different account information with all the sub-tabs at the same place.

For example, on my site I have "Adsense" , "Location" that are directly inside the EDIT ACCOUNT tab, as "sub-catégories". It would be normal for the user to have it's "profile" tab inside the ACCOUNT of the user, like nodeprofile works...

Is this a good idea?

Patchak

Comments

It should just be a simple mod to bio_menu to set the bio path to user/N/edit/bio - I tried it though and it didn't work.

Any ideas?

Status:Active» Closed (works as designed)

This is how nodeprofile should work. Bio is separate from the regular user profile by design.

Yeap, I fully support this feature request with some more clarification:

Normally, for the site registration and profile-editing processes to be logical and clear, the fields filled in during the registration should be basically the same as those filled in when editing one's profile.

Now I just love the way users fill in their bio fields at the registration stage (just CCK fields without any bionode's title and body fields). But when they go to edit their bios they are presented with the 'title' and 'body' fields of the bionode. I don't use these fields anywhere (use views+panels instead) and to me showing them to the users looks a little bit strange and misleading. I could try hiding these fields with CSS 'display:none;' method but it looks like a huge roundabout.

So if you could create such an edit-tab with just the fields selected in the "Registration form fields", that would be awesome. Thanks in advance!

Version:5.x-1.0» 5.x-1.2

Hey dldege, I've tried modifying bio_menu and it worked for me - I've got the biography edit form under the "edit" tab.

Basically, I just replaced the line:

'path'  => 'user/'. arg(1) .'/bio',

with this one:

'path'  => 'user/'. arg(1) .'/edit/bio',

you may also want to add a 'weight' value for the tab to position it wherever you like, e.g.:

'weight' => '10',

Status:Closed (works as designed)» Fixed

I think that the original issue can be fixed now. I will open a new one for having a bio-editing form without title and body fields.

Status:Fixed» Active

I still think the suggestion in the original post is a good one, but this isn't fixed since there's nothing in the code to deal with this, yet. I disagree with Darren Oh that it's a feature that the bio node tab on a user account is a top-level tab, not a subtab of the edit tab. You're editing something about the user, so it should just be another subtab on the edit tab IMHO.

Combined with this tip for drupal 5, how to change the edit tab name, makes this a nice customization:

http://www.innovatingtomorrow.net/2008/02/21/rename-tabs-drupal-5

Quite similar, but slightly different: I'll work on #271669: Allow editing of bio in user edit form now.

Thanks. Your tip worked for the admin and those in roles but it doesn't show for regular users. I checked my persmissions and they have the right to edit user profile so I don't get why it's not showing.

Hey dldege, I've tried modifying bio_menu and it worked for me - I've got the biography edit form under the "edit" tab.

Basically, I just replaced the line:

'path' => 'user/'. arg(1) .'/bio',

with this one:

'path' => 'user/'. arg(1) .'/edit/bio',

you may also want to add a 'weight' value for the tab to position it wherever you like, e.g.:

'weight' => '10',