The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New/unread PMs
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: |
#2
|
||||
|
||||
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.... |
#3
|
|||
|
|||
Cheers Xenon, much appreciated! :beard:
|
#4
|
||||
|
||||
if you use my hack (vB assistant), you can do this.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|