Gamempire
08-31-2008, 08:32 PM
how can i take the functions of vbulletin to read the user session status? (if the user is a guest or not)
because i would like to put in my website (www.gamempire.it) a script that read the user session permission of the forum (www.forum.gamempire.it) and if it's logged in on the forum, it show something, and if the user is not logged in, it show something else..
like "
include ("../forum/something.php");
if ($vbuser['isloggedin']) { ... }
else { ... }
"
thanks
--------------- Added 1220223938 at 1220223938 ---------------
i find this..
but if the file is not in the same directory of the forum, how can i include the global.php?
how can i set the forumpath for the global.php?
because i would like to put in my website (www.gamempire.it) a script that read the user session permission of the forum (www.forum.gamempire.it) and if it's logged in on the forum, it show something, and if the user is not logged in, it show something else..
like "
include ("../forum/something.php");
if ($vbuser['isloggedin']) { ... }
else { ... }
"
thanks
--------------- Added 1220223938 at 1220223938 ---------------
i find this..
but if the file is not in the same directory of the forum, how can i include the global.php?
how can i set the forumpath for the global.php?