2009-07-03, 02:55 PM
hi. I want to print the name of the user(when the user open the page).
I did write:
But the username of the user never printed out?! $mybbuser[username] retreive nothing?!
Also, I want to display the number of posts of that user(the user who entered the page containing this code)
Thank's in advance
I did write:
chdir('../'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';
$GLOBAL['dispalypageok']=false;
if($mybb->user['uid']){
// The user is logged in, say Hi
$GLOBAL['dispalypageok']=true;
echo "Hey, $mybbuser[username].<br>
}
But the username of the user never printed out?! $mybbuser[username] retreive nothing?!
Also, I want to display the number of posts of that user(the user who entered the page containing this code)
Thank's in advance