Delphiprogrammi
01-10-2006, 10:00 AM
hi people,
i posted this in the php coding section to but i'm really stuck on this.I have in my modification an option (yesno) and this if enabled sends an email to moderators (or admins if there are no mods) when somebody reports a bad post.But the thing refuses to work.I even reported it as a bug but the vbulletin developers say it's not a bug.here we go
if(!$vbulletin->options['postreports_enabled'] && ($vbulletin->options['postreports_alsoemail']))
{
//the option is enabled ("yes" is selected)
eval(fetch_email_phrases('reportbadpost',$email_la ngid));
vbmail($moderator['email'],$subject,$message,true);
}
else
{
//disable the sending of postreported emails
$moderator['email'] = null;
}
i put this code in the hook "report_send_email" but i never receive email even is the option is enabled.Now i can't figure out what the heck is wrong with this :(
i posted this in the php coding section to but i'm really stuck on this.I have in my modification an option (yesno) and this if enabled sends an email to moderators (or admins if there are no mods) when somebody reports a bad post.But the thing refuses to work.I even reported it as a bug but the vbulletin developers say it's not a bug.here we go
if(!$vbulletin->options['postreports_enabled'] && ($vbulletin->options['postreports_alsoemail']))
{
//the option is enabled ("yes" is selected)
eval(fetch_email_phrases('reportbadpost',$email_la ngid));
vbmail($moderator['email'],$subject,$message,true);
}
else
{
//disable the sending of postreported emails
$moderator['email'] = null;
}
i put this code in the hook "report_send_email" but i never receive email even is the option is enabled.Now i can't figure out what the heck is wrong with this :(