Closed (fixed)
Project:
Station
Version:
5.x-1.3
Component:
Programs
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2007 at 10:09 UTC
Updated:
24 Dec 2007 at 13:21 UTC
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
Comment #1
drewish commentedYou 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.
Comment #2
drewish commentedfeel free to reopen this if that doesn't make sense.
Comment #3
therobyouknow commentedThanks, 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.
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.