Guest_imported
New member
- Jan 1, 1970
- 0
I don't know how many of you're familiar with the coding for xmb but I was wondering if someone could write me a small script which says if logged in show the text logged in, if not show not logged in. I tried the following:
<?
include "../forum/index_add.php"
?>
<?
require "../forum/header.php";
loadtemplates('header,footer,index_whosonline,index_category,index_forum,index,index_welcome_member,index_welcome_guest,index_forum_lastpost');
eval("\$header = \"".template("header"."\";"
echo $header;
if($xmbuser) {
eval("\$welcome = \"".template("index_welcome_guest"."\";"
} else {
eval("\$welcome = \"".template("index_welcome_member"."\";"
}
?>
but it only worked when I uploaded the file in the same directory the messageboard is uploaded in. I'm asking this because the help on xmb messageboard is useless. I'd be greatful for your help. Thanx
<?
include "../forum/index_add.php"
?>
<?
require "../forum/header.php";
loadtemplates('header,footer,index_whosonline,index_category,index_forum,index,index_welcome_member,index_welcome_guest,index_forum_lastpost');
eval("\$header = \"".template("header"."\";"
echo $header;
if($xmbuser) {
eval("\$welcome = \"".template("index_welcome_guest"."\";"
} else {
eval("\$welcome = \"".template("index_welcome_member"."\";"
}
?>
but it only worked when I uploaded the file in the same directory the messageboard is uploaded in. I'm asking this because the help on xmb messageboard is useless. I'd be greatful for your help. Thanx