1
Hi all,
I try to install a new (PHP) block in which I'll show different text according to if a user is logged in or not. I looked into some of the forum posts and so far I came up with this:
include "/mainfile.php";
if ( $xoopsUser ) {
echo 'Welcome to this page!';
} else {
echo 'Register now!';
}
However, this does not work; it always displays 'Register now!'. How do I fix this?