2011-12-10, 10:29 AM
In an external page is it possible to show the entire block "header welcomeblock member"? If yes, how?
I connect external pages to mybb through the following code, that let also to me import the session parameters
I connect external pages to mybb through the following code, that let also to me import the session parameters
chdir("forum/"); // path to MyBB
define("IN_MYBB", 1);
require("./global.php");
chdir("../");
if($mybb->user['uid']){
$userid = $mybb->user['uid'];
$username = $mybb->user['username'];
echo "<p>Sei loggato - $userid - $username.</p>";
$ultima_visita = $mybb->user['lastvisit'];
$ultima_visita_formatt = date("j/m/Y, H:i A", $ultima_visita);
echo "<p>Last visit: $ultima_visita_formatt</p>";
}