The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Showing username from ID
Hey,
I'm doing some site integration and I'm building a comments system, obviously it's using the vBulletin database for the users. Example: 1 - Bob 2 - Bill Bob is browsing the website, the below two lines will show his user ID or his Username PHP Code:
PHP Code:
However, when Bill views the website it'll show his name instead of Bob. I thought the following would work, and show any username from the ID I put in PHP Code:
Obviously it doesn't work, does anyone know how to display a Username from an ID? |
#2
|
|||
|
|||
You would probably have to do an SQL query that searches the userid and returns the name.
Create a function or something, unless someone else has another method. |
#3
|
|||
|
|||
Actually managed to dig it out of the vB3 section.
Cheers. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|