Closed (won't fix)
Project:
Buddylist
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2008 at 01:06 UTC
Updated:
25 Apr 2010 at 18:04 UTC
Hi,
I am trying to display a custom profile field instead of a username in the private messaging module - which is dependent on the buddylist module.
I've been looking at the code for both of them.
I've managed to change some stuff in the buddylist module ie the titles of the buddy listings to the username of the person whose buddies they are.
I have just started looking at the buddylist_views.inc file. Is it possible to add an array of values ie a profile field to this file and then reference these values from the buddylist module?
I'm generally trying to replace all instances of the username with a profile field value.
Any help would be great.
Thanks,
Sarah
Comments
Comment #1
marvil07 commented> I'm generally trying to replace all instances of the username with a profile field value.
Take a look at theme_username
Comment #2
scarer commentedi've looked at this before but the arrays and values that are in the code for each module call on values in databases etc.
i have already programmed this hack into my theme but thank you for the info.
i am trying to fix the chatroom module to only display a profile field value instead of a username on message posts.
this is the code i have so far:
Again, any help would be great!
Sarah
Comment #3
marvil07 commentedalso take a look to realname module