PDA

View Full Version : translate userid into username


SoloX
01-10-2011, 03:56 AM
hello:

an external program (chat presence) generates a list of userids and dumps them into a file:

232
2
334
54

I saw somewhere where i can include a php file in my templates but can someone suggest a quick(er) way to translate these ids into usernames so that I can display them on my forums?

Thanks

midnz
01-10-2011, 06:16 AM
The following link to the 3.8 BBCode works with vB4.
What it does is simple... when you use the tag [user] to identify a certain member of the site, its real username with markup will appear.

[user] musername with profile link (https://vborg.vbsupport.ru/showthread.php?t=230564)

SoloX
01-10-2011, 06:26 AM
perfect!!! thanks midnz

--------------- Added 1294648670 at 1294648670 ---------------

ah. spoke too soon.

the code works fine in a thread or when creating a post but i am using another product to display a sidebar column. It does not render [user] in there.

Would you be so nice as to guide me where do I need to make the change in plugin so that this works?

Thanks