Quote:
Originally Posted by Jaguartje
I'm using this hack a while now, but now I found out that Unregistered or unloggedin visitors can also fill in the form and post it. I don't want this. The form has to get a prevention of submitting the form if someone is known as "Unregistered" on the website. I've tried the code below, but this doesn't seem to function:
PHP Code:
if ($bbuserinfo == 'Unregistered')
{
$errormessage = "You have to register or login first before submitting this form. You can register <a href=\"http://www.coy-guild.net/register.php\">here</a>" or log in <a href=\"http://www.coy-guild.net/login.php\">here</a>.;
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
}
Any suggestions?
|
In the hook, there is the following setting: USERGROUPS ALLOWED
Set it to 0 and 1