Thought it best to start a discussion re: overriding the USER LIST page layouts here, rather than in the handbook.
In response to a question by Steve:
-----------------------------------------------
I used your snippet to display profile. It works fine when I display it in http://www.mysite.com/user/John_Smith. All the profile fields have their label and looks exactly what I wanted. I will look like:
Name: John Smith
City: New York
About me: I am a web designer.
But when I display it as http://www.mysite.com/profile or http://www.mysite.com/profile/city/new_york to list all the profiles, then it does not show the 'profile field labels' and only profile fields are listed . It looks like:
John Smith
New York
I am a web designer
----------------------------------------------
Hi Steve,
I haven't created an override for the user_list pages yet, so I don't have a quick answer to your query.
I think you need to override the theme_user_list
function. the example above overrides the theme_user_profile
function.
I don't have time to try this at the moment, but, if you try this:
- copy the override snippet for the user_profile and add it to your template.php file
- before saving the new template.php file, change "user_profile" to be "user_list" eg. instead of
phptemplate_user_profile
it should read phptemplate_user_list
. (do the same for the phptemplate callback)