Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I don't know how many of you're fam

Status
Not open for further replies.

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 &quot;../forum/index_add.php&quot;
?>
<?
require &quot;../forum/header.php&quot;;
loadtemplates('header,footer,index_whosonline,index_category,index_forum,index,index_welcome_member,index_welcome_guest,index_forum_lastpost');

eval(&quot;\$header = \&quot;&quot;.template(&quot;header&quot;).&quot;\&quot;;&quot;);
echo $header;

if($xmbuser) {
eval(&quot;\$welcome = \&quot;&quot;.template(&quot;index_welcome_guest&quot;).&quot;\&quot;;&quot;);
} else {
eval(&quot;\$welcome = \&quot;&quot;.template(&quot;index_welcome_member&quot;).&quot;\&quot;;&quot;);
}
?>

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top