6
I have a different but related problem.
I'm writing a custom PHP block and i need to check whether the user is registered or anonymous. It seems I can not use Smarty variables while in this custom block, so i tried:
if ($xoops_isuser == 1) {
blablabla...
}
The variable $xoops_isuser does not seem to exist, as I've tried:
echo ($xoops_isuser);
And got nothing on screen. I really need a way to check whether the user is registered or guest. I've tried reading $_COOKIES for the session cookie but the son of a ... Internet Explorer does not delete the cookies after closing, as it was expected. I hate IE, but too many people use it, so i need another solution.
Any ideas please?