By nautis on
When I visit http://drupal.org/profile, I see a pretty nice layout for the profile.module called "User List." Is this a new feature that is coming in a future release, because mine looks that same (bad) no matter what theme I used. Also, the user list keeps re-sorting itself based on last login. Does anyone have a work around for this. I would like to be able to display all users in an intuitive directory type interface and there doesn't seem to be an way to do this. Does anyone know how to tweak this feature to display in alphabetical order or something more intuitive? Here's what my profile currently looks like. Help.
- Matthew
Comments
Nice site..
Hi Mathew,
I like your site. Great idea and I love the fact that is not commercial..a real community based website. Well done.
I stand corrected but I think the Drupal profile page is done using CSS. i.e. the DIVS are setup in such away to sit beside each other in columns like that rather than a module.
Anyway...what maybe an idea is to do the following:
a) check out the members.module. It lists users alphabetically and you can specify what information is displayed in the user list..
It also allows you to sort alphabetically or sort by other columns.
You could use both...i.e. user the out-of-the-box standard profile page for a "Browse Users" option and the members.module for a "quick list" option.
Members.module: http://drupal.org/project/members
b) if you're using a phptemplate bsed theme, you can override the layout of just the profile pages relatively simply without having to hack any modules or if the members module doen't satisfy your needs.
Example of overriding the profile pages: http://drupal.org/node/16011
Hope that helps and is of use.
Dub
DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
Dub - Thanks for your kind
Dub - Thanks for your kind comments. I've incorporated some of your feedback. Unfortunately, I'm using a pure php theme rather than phptemplate. I've learned my lesson. This makes me hardcode many design decisions, uhg. I also checked out the members module but it looks to table-ish. What I'm looking to do is just display a simple list of members. I think I've gotten it pretty close.
I do have another question though that wasn't obvious to me: can I restrict access domain.com/profile to those that are logged in?
- matthew | nautis.com
Did you ever get /profile sorted?
Did you ever find a nice way to resort /profile? Since we get served $content premade, I didn't really want to do regexp resorting of the string, so I have this hack in modules/profile/profile.pages.inc:94:
where profile_rank is the profile field (added by me) which I want to sort by. It's really ugly, and if I knew more SQL I'd rather do it there... but really it should've been configurable in the first place :(