userid can sometimes be cryptic or abbreviated so would prefer to use data created in users profile - i.e. full name instead.

I would add profile info using: http://drupal.org/handbook/modules/profile

But this documentation does not say how a programmer should access this info in php

Can you advise?

I'd be happy to help add this feature but would need to know:
- where in the station code is the user id displayed - so that I can modify this to my needs
- how do I obtain profile data for a user - I know I could access the underlying database directly but I'm guessing that there is a standard abstracted drupal method for doing this (?)

Comments

drewish’s picture

You could change it by overriding the core theme_username() theme function to load the profile data and then display that.

I'd be willing to consider adding a DJ specific theme function (that by default mapped to theme_username) to HEAD but not the 1.x branch.

drewish’s picture

Status: Active » Fixed

feel free to reopen this if that doesn't make sense.

therobyouknow’s picture

Thanks, I'll give it a go.

But first I had to figure out how to read user profile fields in the first place, as this was a glaring omission in the drupal documentation. So here's my code to do this -for a different situation however.

http://drupal.org/node/195257

I'll reuse these ideas for this problem.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.