Quote:
Originally Posted by Zero Tolerance
$bbuserinfo contains a lot of information, if you make a file in your forums directory called "test.php", and put this code in it:
PHP Code:
<?php
require_once("./global.php");
print_r($bbuserinfo);
?>
Then visit this file in your browser, you will see a load of mumbo jumbo, right click, view source, you will get a lot of stuff, like:
To use this field, just put $bbuserinfo[FIELD]
So if you see:
[myfield] => Bla bla
You would use:
$bbuserinfo[myfield]
- Zero Tolerance
|
thanks! that was awesome and so much info. for others who may find it also useful, i have found the following bbuserinfo's helpful as well:
$bbuserinfo[joindate]
$bbuserinfo[lastvisit]
$bbuserinfo[lastactivity]
$bbuserinfo[lastpost]
$bbuserinfo[reputation]
$bbuserinfo[pmtotal]
$bbuserinfo[pmunread]
$bbuserinfo[lastvisitdate]
*edit*
actually, don't use anything with dates as they show up as really long numbers.