I figured it out to a certain degree...
On my forum, I include a header and a left menu which is a part of my own design. I decided to display the points in the left menu. The left menu is a php file, and here is the coding I used...
<? echo round($vbulletin->userinfo['vbbux']); ?>
<? echo round($vbulletin->userinfo['vbbank']); ?>
<? echo round($vbulletin->userinfo['vbbux']+$vbulletin->userinfo['vbbank']); ?>
You can also use this same coding to display the points on *NON-FORUM* pages. You do this by including the following coding in a php file:
$dir = getcwd();
if ($dir != "/your/server/path/site.com/html/community" && $dir != "/your/server/path/site.com/html/community/admincp" && $dir != "/your/server/path/site.com/html/community/modcp") {
require_once($_SERVER['DOCUMENT_ROOT'] . '/community/global.php');
Then in your .htaccess you include that file by:
php_value auto_prepend_file "/your/server/path/site.com/html/include.php"
This will allow you to show the user's points on any non-community page.
|