PDA

View Full Version : New/unread PMs


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:

Xenon
03-31-2003, 04:21 PM
question a:
nope it's not already included in global.php so you have to write such a query yourself (the vb one is located in index.php)

b:
i don't know of such a reference, but it's hard to write it, because it's really a lot ;)
the whole vb options are defined in the global.php (and the files included from it)
then the bbuserinfo array, the $templatecache $session....

thetadpole
03-31-2003, 05:37 PM
Cheers Xenon, much appreciated! :beard:

Sebastian
04-03-2003, 05:00 PM
if you use my hack (vB assistant), you can do this.