markup to show if the user is logged in
markup to show if the user is not logged in
as with all the tags, nesting allows building of complexity
such that
[use]somefile[/use]
loads up "somefile" if the user is logged in.
you can also do it another way
where the string "somefileguest" is the result when the user
is not logged in, and "somefile" is the result if they are.
the code for the loggedin / notlogged in tags is again very simple;
listing "/plugins/loggedin.aXMLpi"
----------------------------------
if ($userdata->{'loggedin'})
{
$result = $data;
}
listing "/plugins/notloggedin.aXMLpi"
-------------------------------------
unless ($userdata->{'loggedin'})
{
$result = $data;
}