Thank you for the .zip!
It works absolutley perfect! 🙂 Love it!
I just miss this:
On the e-mail: I would like to add a prefix i the subject. Eks “(Page name) New answer: thread-title”
I looking forward to translate this! 🙂
Can it be done now?
Very, very good at all!
I just miss this:
On the e-mail: I would like to add a prefix i the subject. Eks “(Page name) New answer: thread-title”
Thanks for this, I have added this to the dev-version. 🙂
Cool!
Ey, I was thinking a little bit more…
And I would like to get a feature that makes me choose WITCH user-roles that should get notifications by new treads and stuff.. Like now, its only administrator.. Would be nice if a could choose/checkbox for all user-roles, and click the role I want to get notified. 🙂
Well, OR .. A choice for moderators offcourse.
Because i only see the option “Notify administrator about new topics” i still use the code on page one. It works for me at this moment. But i can be nicer if i am able to put in a link to the thread and if i can display de subject of the thread in te notification.
Can anybody help me with that?
This is the code i use at this moment
function after_submit($post_id) {
global $wpdb;
$post = $wpdb->get_row($wpdb->prepare(“SELECT text FROM wp_forum_posts WHERE id = %d;”, $post_id));
$to = ‘xxx@xxxx.xx’;
$subject = “Nieuw topic geplaats op het Forum”;
$message = “Er is een nieuwe topic geplaatst het forum met de volgende inhoud: \r\n ” .$post->text;
$headers = ‘From: no-reply@xxxx.xx’ . “\r\n” .
‘Reply-To: xxx@xxx.xx’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();
mail($to, $subject, $message, $headers);
}
Thank u!!!
I miss the option “forum contributor” at the user (where forum modorator can be find). And i miss Forum -> Options -> Notify contributor about new topics.
Am i right?
Hello jmolenaar,
I will try to extend the notification-functionality in a future version so that moderators/administrators can decide if they want to get notifications on new topics.
Here is the ticket on my todo-list:
https://github.com/Asgaros/asgaros-forum/issues/91