I'm using Drupal (4.6-rc) as the framework for a community website operated by a newspaper. I'd like to be able to publicly identify users by role and/or some sort of title. (Many forum packages can do that.) The major immediate objective is to distinguish staff from community members. I'm using PHPtemplate, so I can do interesting things with the formatting. Suggestions?

Comments

agentrickard’s picture

Clarification:

To distinguish staff from community members without showing that profile field to members during registration or account editing.

So we need an admin-only field to attach to accounts.

--
http://ken.blufftontoday.com/

yelvington’s picture

OK, here's how we solved this problem, for the time being, using phptemplate and profile_load_profile():

  if ($picture) {

        print $picture;
        $node_user->uid = $node->uid;
        profile_load_profile($node_user);
        print("<small>$node_user->profile_title</small>");
 } 

This doesn't do any permissions checking. For most purposes it might be better to call profile_view_profile() instead.

The profile_title is editable by users, which is not ideal, but this at least gets the identity attached to name/face.