PDA

View Full Version : How to get username from userid ?


funyoo
06-22-2016, 10:46 AM
Hello everybody,

In the attachment table, we have the userid column.

We can get it in the attachmentbit template with

{vb:raw attachment.userid}

But the username column doesn't exist in the attachment table. I want to display the username of an attachment uploader.

How can I get the username from the userid in the template (for example by using the user table which has userid and username columns) ?

grey_goose
06-26-2016, 11:44 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=224810" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=224810</a>