![]() |
Question about bbuserinfo array
You know how in vB you can place $bbuserinfo[username] anywhere and it will output your username from the table user? Well, how can I apply this same effect for a new table? Say I create a table much like user, that I am going to store much of the same data user has in it. Call it newusertable. And I would like to use a new array called $bbuserinfonew with as many elements equal to the amount of columns I have in newusertable. Then after giving the array values, probably done in a while or for loop, I can use $bbuserinfonew[username], say, and it would output that user viewing data, from the new table.
How could this exactly be created? :rolleyes: I haven't had too much use with this kind of coding in PHP yet. :ermm: If you understand what I'm asking and could help, it would be great! Even directing me to a place in the vB files that I can find a source to look at would be helpful. ;) |
*kicks him* :p
Well I can give you a push along in the right direction I hope. Now start by opening admin/sessions.php, now somewhere around line 50 or so you should see where $bbuserinfo gets declaired. PHP Code:
so from that you should be able to make your own query like $bbuserinfo. - Neo ;) |
Yes, that is what I've been looking for ;)
Thanks abunch. *limps away* :P |
No problem man :)
|
Velocd: Please remove the text or image from your signature, you are not allowed to have both.
|
Done
Sorry about that, I completely forgot. ;) |
All times are GMT. The time now is 03:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|