The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User ID in database
I'm trying to submit a form to the database, what would be the best way to log the name of the user who submitted the form to the database and what would be the best way to show that name (with a link to their profile) on the page that the form data is retrieved.
|
#2
|
||||
|
||||
I save both the user name and the user id in the database. The reason for this is I save a query or two later. I also build my own link instead of letting vBulletin do it also to save a query or a few querys.
My custom CMS only uses 13 querys, If I was to use all vBulletin functions the querys would be up around 29 or so. Code:
$current_user = $vbulletin->userinfo['username']; $current_userid = $vbulletin->userinfo['userid']; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|