SMF Development > Fixed or Bogus Bugs
Approved Post Notification
wolfetundra:
I've searched and I haven't found anything ...
Currently, my SMF is set up to require approval before a post becomes live.
Is there a way to notify the "user" when their post is approved?
Subject: Post Approval
Body: Your post has been approved.
Illori:
not that i know of, and if you want such a feature you are best to make a mod request.
Oldiesmann:
SMF should already send out notifications...
Lines 2746-2766 of Subs-Post.php (in the approvePosts function):
--- Code: --- // Finally, least importantly, notifications!
if ($approve)
{
if (!empty($notification_topics))
{
require_once($sourcedir . '/Post.php');
notifyMembersBoard($notification_topics);
}
if (!empty($notification_posts))
sendApprovalNotifications($notification_posts);
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}approval_queue
WHERE id_msg IN ({array_int:message_list})
AND id_attach = {int:id_attach}',
array(
'message_list' => $msgs,
'id_attach' => 0,
)
);
}
--- End code ---
Illori:
i just tested on localhost and i cant even get the email to send on approving a post/thread made by a user. enabled mail queue and nothing shows up in the queue either waiting to be sent.
Oldiesmann:
Odd. It's not working on my test board either. I'll look into it more when I have time.
Navigation
[0] Message Index
[#] Next page
Go to full version