PDA

View Full Version : Question about using vB info in non-vB script...


MarkB
01-06-2002, 05:09 AM
What, apart from requiring global.php, do I need to do to use vB info in a non-vB PHP script (such as username, profile, email, bbtitle, styles etc)?

Any help appreciated...

Mark

Admin
01-06-2002, 10:52 AM
The info of the user viewing the page is as always inside the $bbuserinfo array (all fields of user and userfield tables are available in that array).
Same with $bbtitle, it's also available for your use.

And of course you can use the $DB_site class to executre queries to get info from the database.

MarkB
01-06-2002, 02:06 PM
Thanks, I shall give it a try.