thetadpole
03-31-2003, 01:49 PM
Hi, I've been searching around to try and find the solution to this, and I think I've found it, but just wanted to confirm:
I'm integrating vB with the rest of my site (written in PHP) and have included global.php so that I can display the member's username at the top of every page, BUT... I'd also like to display the number of unread PMs... is there an array that gives this information that I can use (like $bbuserinfo), or do I have to do a database query myself on every page?
On a similar note; is there any documentation anywhere (official or otherwise) that shows what variables and arrays are available if you choose to include global.php? For example, I had to search for a while to find that it was $bbuserinfo["userid"] that gave the user ID. Can anyone point me in the direction of some kind of reference guide?
Cheers :classic:
I'm integrating vB with the rest of my site (written in PHP) and have included global.php so that I can display the member's username at the top of every page, BUT... I'd also like to display the number of unread PMs... is there an array that gives this information that I can use (like $bbuserinfo), or do I have to do a database query myself on every page?
On a similar note; is there any documentation anywhere (official or otherwise) that shows what variables and arrays are available if you choose to include global.php? For example, I had to search for a while to find that it was $bbuserinfo["userid"] that gave the user ID. Can anyone point me in the direction of some kind of reference guide?
Cheers :classic: