Hi All,

Firstly - Drupal rocks! It's head and shoulders the best CMS I've ever used, & I've used a few.

On to my enquiry: I'd love to be able to display titles under usernames. E.g. rather than having:

[PHOTO] Submitted by Duncan Bayne on Sat, 2006-01-21 03:26.

... I'd like to have:

[PHOTO] Submitted by Duncan Bayne on Sat, 2006-01-21 03:26.
Administrator

... so my title appears under my avatar photo. Is there a module that allows you to configure user titles, and to have them displayed under or near the user's avatar photo? I've hunted through the project page etc. but have found nothing.

Also, I'd like to credit Drupal on my site, sort of like a subtle "Powered by Drupal" logo that links here. Do you have such a thing?

Yours,
Duncan Bayne

Comments

GWL’s picture

freyquency’s picture

Drupal buttons: http://drupal.org/node/9070

As for printing the user role under the avatar - I think you would have to add it to a theme. To the best of my knowledge there is not a module that configures user profile information like that.

duncan_bayne’s picture

... looks like I'll have to dust off my PHP hat (it's been sitting under a stack of C# manuals for a while) :-)

ixis.dylan’s picture

<?php
  $poster = user_load(array('uid' => $node->uid));
  print(implode(",", $poster->roles));
?>

Paste that into your node template file. It's crap, but it should get you started.

demolicious | leafish

cneumann’s picture

This is what I figured out how to remove the authenticanted user role and just show the role(s) that you assign. The below works for up to 2 roles and if you have more than 2, then I think that you can figure out how to view the rest. Copy and paste this line into the node.tpl.php for your theme and it should work. This has been tested in IE and Mozilla only.

<?php
  $poster = user_load(array('uid' => $node->uid));
  $poster = implode("," , $poster->roles);
  $poster = explode("," , $poster);
  echo $poster[1];
  if ($poster[2] != "") echo ", ".$poster[2];
?

No crap leafish, a good starting point as you said!

siexton’s picture

I was looking to do this, and found an alternate method that doesnt require PHP knowledge.

1. Install FCKeditor
2. Upload the Powered By icons to your site (all mine went to /files/logos.png)
3. Create a new block (I called mine Powered By:)
4. Insert the images via the URL link into the new block
5. Create links to the appropriate sites
6. Save and enable the new block

FCKeditor makes most of this really easy, and it's easy to add and remove these cool little tributes to our open source brethren.

Enjoy!

compudaze’s picture

Where do you find all the powered by icons? Looking for linux, lighttpd, php, drupal, etc...

idrinkalot’s picture

under the misc folder