A quick warning to people that will use this to submit apps to a private forum.
After installing and testing I noticed that the first response to an app was being emailed to the user who submitted as if he was subscribed to the thread. This happened regardless if the user was set to "do not subscribe" in the user CP. This was a problem becuase our members use the apps to discuess good/bad things that we don't want the app seeing.
My solution:
I'm not 100% sure this is a fix but it worked for me.
In the Plugin System (Application Form Handler) I noticed the line:
Code:
$newpost['emailupdate'] = 1;
Which from what I understand will always send the first reply to the users email address. This is really not a good way to code this as there is never an option to turn it off anywhere since it isn't checking anything.
Proper coding that would look at the user CP should look somethin like this:
Code:
if ($vbulletin->userinfo['autosubscribe'] != -1)
{
$newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
}
else
{
$newpost['emailupdate'] = 9999;
}
What I did to prevent anyone from subscribing at all to these threads created though the app form was use:
Code:
$newpost['emailupdate'] = 9999;
Now I am very new to VB so please correct me if anything I stated was wrong. Thanks