Quote:
Originally Posted by Altered
Question:
I have a form i want to allow unregistered users to access/submit. I have the permissions all set and everything works great. My problem is this;
When the form is submitted it posts in a thread i selected and i also want it to send the user a private message. This works fine when a user is logged in but i get the following error message when an unregistered user is logged in.
Code:
Form failed to submit. The following error(s) occured:
The following users were not found:
Unregistered
Is there anyway to make it so it only sends the private message to logged in users?
|
Form Hook: Before Submit:
PHP Code:
if ($vbulletin->userinfo['userid'] == 0)
{
foreach ($form['action'] as $id => $action)
{
if ($action == 1)
{
unset($form['action'][$id]);
}
}
}