PHP Code:
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "setting(varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile,product)
VALUES ('modpmtext', 'posting', 'Hi $username,\r\n\r\nThis message is to advise you that your $type titled \"$threadinfo\" has been $action.\r\n\r\nThe $type is located at this URL $url\r\n\r\nIf you have any questions, you can ask an administrator for assistance\r\n\r\nSincerely,\r\nThe $bbtitle staff.', 'Hi $username,\r\n\r\nThis message is to advise you that your $type titled \"$threadinfo\" has been $action by $modby.\r\n\r\nThe $type is located at this URL $url\r\n\r\nIf you have any questions, you can ask an administrator for assistance\r\n\r\nSincerely,\r\nThe $bbtitle staff.', 'textarea', 150, 0, 0, 'free', 'modautopm')");