Can I just ask....why?
I don't see an advantage in doing any of this...also it gives people access to info (depending on how you set up your permissions) to which they may not normally want access to. For example I can find an Admin's username in the login box and get a lot of his info.
Furthermore the code you posted has fairly extensive sercurity holes in it, I suggest your read this article first before you think about creating code for your board. (
Using the vBulletin Input Cleaner).
Then you need to look at
Using the vBulletin Database Class.