ohspot
04-09-2003, 11:07 AM
I'm trying to print a message either welcoming members back, or if they are not logged in, asking them to either login or register.
I have tried This
<?
require("forums/global.php");
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
echo "Welcome back, <b>$username</b>";
}
?>
But can't get it to work. Basically, I want one of the following messages:
Welcome Back, USERNAME
OR
Please Login or Register To Interact In Our Community.
With the words Login, Register & Community being hyperlinks to their respective areas.
This page/message will be outside the forums directory.
Thanks in advance for any help!!
:)
I have tried This
<?
require("forums/global.php");
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
echo "Welcome back, <b>$username</b>";
}
?>
But can't get it to work. Basically, I want one of the following messages:
Welcome Back, USERNAME
OR
Please Login or Register To Interact In Our Community.
With the words Login, Register & Community being hyperlinks to their respective areas.
This page/message will be outside the forums directory.
Thanks in advance for any help!!
:)