Hello,
specs: component chronocontact 3.2, plugin chronocontact 3.1, Joomla 1.5.22, desperated
I want to display my form only if the Joomla User is logged in.
Therefore I tried this (using directphp):
But the form shows up no matter if the user is logged in or not. The plugin just ignores "else"
therefore I tried this:
And inside form.php:
Result:
The screen displays (besides the normal joomla-content) just this:
Question:
Is there a way, that I can use pure PHP to display the form without the plugin?
What else can I do? 😢
PS I need to show some explanations before I display the form. This explanation has to be public, therefore I need to use the plugin, don't I?
Thanks in advance,
Frank
specs: component chronocontact 3.2, plugin chronocontact 3.1, Joomla 1.5.22, desperated
I want to display my form only if the Joomla User is logged in.
Therefore I tried this (using directphp):
If (Login == "No")
{
echo "nope, blabla";
}
else
{
echo "{chronocontacts}form{/chronocontacts}";
}
But the form shows up no matter if the user is logged in or not. The plugin just ignores "else"
therefore I tried this:
If (Login == "No")
{
echo "nope, blabla";
}
else
{
inculde 'folder/form.php';
}
And inside form.php:
<?php echo "{chronocontacts}form{/chronocontacts}"; ?>
}
Result:
The screen displays (besides the normal joomla-content) just this:
{chronocontacts}form{/chronocontacts}
Question:
Is there a way, that I can use pure PHP to display the form without the plugin?
What else can I do? 😢
PS I need to show some explanations before I display the form. This explanation has to be public, therefore I need to use the plugin, don't I?
Thanks in advance,
Frank