How do I edit profile fields?
spatz4000 - February 4, 2008 - 21:20
maybe I am missing something or I don't have something configured correctly, but when I go to http://www.example.com/user/8/edit all I see is the basic info that the user entered when they signed up ( plus one or two module inserted items ). However when I set up the site, I created different profile fields that I required users to fill out when they registered. How can I ( or the user) edit those fields later?
Under http://www.example.com/admin/user/profile/edit/4 I have a visibility setting of
Public field, content shown on profile page but not used on member list pages
I have Visible in user registration form checked.
Any ideas?

Tabs
Look for the tabs at the top of the page. If your theme does not print the tabs, switch to one that does.
tabs?
I'm using Bluemarine.
For my normal user I have these tabs:
View Edit TrackFor the admin user I have;
View Edit Track Contact WeblinksWhen I click on Edit for the either user I see nothing related to profiles.
I then switched to Garland and got the same result. Switched to Aberdeen and got the same result.
same problem
I used to have a tab on my "my account" page that said "edit profile", but it recently disappeared following a series of core and module updates. I'm not sure which one may have caused the problem as I didn't notice it right away.
Profile categories
When you create profile fields, you can assign them to categories. Those categories generate sub-tabs that appear when you click on the edit tab for a user account.
I have those
Optional_main_registration
Optional_profile_page
Personal Info
I'm setting up a fresh Drupal 5.7 install locally to investigate whether an update caused a regression.
Fixed it.
Okay so I switched to the Pushbutton theme and visited www.example.com/user/2/edit and I can see the various tabs for the profile categories I created.
What would be keeping these from showing up in Bluemarine? I was using a customised user_profile.tpl.php file, but deleting that didn't help. Any ideas?
It was in my template.php file, this snippet of code:
function phptemplate_menu_local_tasks() {
$output = '';
if ($primary = menu_primary_local_tasks()) {
$output .= "<ul class=\"tabs primary\">\n". $primary ."</ul>\n";
}
return $output;
}
The problem is theme-specific
- and it is driving me nuts (I really do not want to switch away from my custom theme).
If I switch to ANY other theme, then there is no problem.
Resetting the menus with devel module did not help.
Any ideas how I can dislodge this?
Solved!
In my case disabling "Menu Trails" module resolved the problem.
Granted, I was using a rather old 5.x-1.x-dev - I knew the risks.
So go check if disabling your modules helps - it worked for me.
Solved edit profile missig, $Secondary was missing
Hi,
Just in case, I had the same probleme using the framework theme. Below is my solution for the template.php file
Look inside the first if, I just added the $secondary if, and, magic, it worked!
function phptemplate_menu_local_tasks()
{
$output = '';
if ($primary = menu_primary_local_tasks())
{
$output .= "
\n". $primary ."
\n";
if ($secondary = menu_secondary_local_tasks())
{
$output .= "
\n". $secondary ."
\n";
}
}
return $output;
}
Hope it helps, I haven't tested this with the garland the, and it lso works. Interesting!
Since I know nothing about drupal and PHP, this could be completly stupid, my apologies if it is!
Cheers,
Pascal
Pascal
same problem...can't fix it!
I've put quite a bit of work into my custom theme, I don't want to change it...but I can't get the "edit profile" thing to work either. Disabling my modules didn't fix the problem. I'm very new to Drupal - can anyone help? Is this a known issue?
same problem with Chameleon
I had that issue with Chameleon theme, but only in IE, and only when the users profile was over a certain size. The issue turned out to be the fixed width of the theme. When I increased the width the tabs started showing up.
A fix for 6 would be great
I am having the same problem in 6.1 with the fblike theme. Any solutions out there. It's getting very frustrating.
Has anyone figured anything out with this?
Please post any information you have on fixing this. I am still trying to figure it out with no success. Thanks.
Temp Fix
I had to edit one user myself and needed to do it ASAP. Without switching to another theme you can just go to user/88/edit/Personal+Information. This obviously only works if you have clean URLs and named your profile information Personal Information category.
I'm going to work on getting the tabs back myself. If I figure it out I will post.
Perm Fix For me
I was able to fix my page by doing the following. I changed my template.php file from:
function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
case 'page':
global $user;
if (arg(0) == 'user'){
if ($user->uid == 0) {
$vars['template_file'] = 'page-login';
}
elseif (arg(1) == 'login' || arg(1) == 'register' || arg(1) == 'password' ) {
$vars['template_file'] = 'page-login';
}
}
break;
}
return $vars;
}
to:
function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
case 'page':
global $user;
if (arg(0) == 'user'){
if ($user->uid == 0) {
$vars['template_file'] = 'page-login';
}
elseif (arg(1) == 'login' || arg(1) == 'register' || arg(1) == 'password' ) {
$vars['template_file'] = 'page-login';
}
if ($secondary = menu_secondary_local_tasks()) {
$output = '<span class="clear"></span>';
$output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
$vars['tabs2'] = $output;
}
}
break;
}
return $vars;
}
The difference is adding:
if ($secondary = menu_secondary_local_tasks()) {$output = '<span class="clear"></span>';
$output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
$vars['tabs2'] = $output;
}
i already had this and am
i already had this and am still getting the problem
i made a barebones skin that has nothing manipulated and the tabs STILL dont show, while they show up in Garland, ive picked that to pieces and emulated how it shows tabs (which was almost exactly what i had in the 1st place) with no luck.
i have another issue which i assume is related, the breadcrumb is showing up as one of my forums while im in edit profile.
*EDIT
I worked out after much reverse engineering that my problem was a block view i had of a forum in my header. Which was as far as i can tell providing conflicting vars and wigging out the breadcrumbs and secondary tabs / local tasks.
i still need to work out why exactly this is happening, because i want to provide that block view in the header.
Faced the same problem
I dig the code for it because I am not showing the menu tabs in any page. One that worked for me, but not sure its fool proof, as I have not tested it yet. I commented the lines 826-830 in profile.module Drupal 5.x, which is fetching profile fields based on different categories. It worked for me just because, I want to show/edit all profile fields in user edit.
Is it correct?