Subscribe to ALL topics
Quote from Hamland on November 19, 2017, 7:36 pmIs it possible for our members, who choose to, to subscribe to all topics instead of individual topics?
Is it possible for our members, who choose to, to subscribe to all topics instead of individual topics?
Quote from Asgaros on November 20, 2017, 2:39 pmHello Hamland,
this is not possible at the moment. Currently it is only possible to get notifications about all new topics.
But there is a hook called asgarosforum_after_add_post_submit. This hook can be used to execute custom logic after a topic got created. This could be used to automatically inform all users about new posts.
Hello Hamland,
this is not possible at the moment. Currently it is only possible to get notifications about all new topics.
But there is a hook called asgarosforum_after_add_post_submit. This hook can be used to execute custom logic after a topic got created. This could be used to automatically inform all users about new posts.
Quote from jleidner on November 29, 2017, 5:16 pmHello Thomas,
I would like to inform all users in my internal forum about new posts via email automatically. How do I do it? How is that with the hook exactly?
Thanks for a tip.
Hello Thomas,
I would like to inform all users in my internal forum about new posts via email automatically. How do I do it? How is that with the hook exactly?
Thanks for a tip.
Quote from Asgaros on November 29, 2017, 8:05 pmHello jleidner,
the hook has to be placed inside your themes functions.php file and can look like this:
function submit_info($postID, $topicID) { // Get all users of your site. // Example: https://codex.wordpress.org/Function_Reference/get_users // Send a mail for all users. // Example: https://developer.wordpress.org/reference/functions/wp_mail/ } add_action('asgarosforum_after_add_post_submit', 'submit_info', 10, 2);As you can see there has to be implemented own logic because this behavior is not possible yet with the forum by default.
Hello jleidner,
the hook has to be placed inside your themes functions.php file and can look like this:
function submit_info($postID, $topicID) { // Get all users of your site. // Example: https://codex.wordpress.org/Function_Reference/get_users // Send a mail for all users. // Example: https://developer.wordpress.org/reference/functions/wp_mail/ } add_action('asgarosforum_after_add_post_submit', 'submit_info', 10, 2);
As you can see there has to be implemented own logic because this behavior is not possible yet with the forum by default.
Quote from natchoice on December 4, 2017, 10:13 pmQuote from Asgaros on November 20, 2017, 2:39 pmHello Hamland,
this is not possible at the moment. Currently it is only possible to get notifications about all new topics.
But there is a hook called asgarosforum_after_add_post_submit. This hook can be used to execute custom logic after a topic got created. This could be used to automatically inform all users about new posts.
How do I set the notification for new topics?
Quote from Asgaros on November 20, 2017, 2:39 pmHello Hamland,
this is not possible at the moment. Currently it is only possible to get notifications about all new topics.
But there is a hook called asgarosforum_after_add_post_submit. This hook can be used to execute custom logic after a topic got created. This could be used to automatically inform all users about new posts.
How do I set the notification for new topics?
Quote from Asgaros on December 5, 2017, 7:09 pmAs an administrator you have to enable the “Notify site owner about new topics” option in the forum settings.
As an administrator you have to enable the “Notify site owner about new topics” option in the forum settings.
Quote from natchoice on December 5, 2017, 8:05 pmQuote from Asgaros on December 5, 2017, 7:09 pmAs an administrator you have to enable the “Notify site owner about new topics” option in the forum settings.
So it’s not an option for regular forum users?
Quote from Asgaros on December 5, 2017, 7:09 pmAs an administrator you have to enable the “Notify site owner about new topics” option in the forum settings.
So it’s not an option for regular forum users?
Quote from Asgaros on December 5, 2017, 8:21 pmUsers have an option for this in their WordPress profile as well, called “Notify about new topics”.
Users have an option for this in their WordPress profile as well, called “Notify about new topics”.
Quote from natchoice on December 6, 2017, 6:54 pmQuote from Asgaros on December 5, 2017, 8:21 pmUsers have an option for this in their WordPress profile as well, called “Notify about new topics”.
How does that get accessed if one is using a front end profile system?
Quote from Asgaros on December 5, 2017, 8:21 pmUsers have an option for this in their WordPress profile as well, called “Notify about new topics”.
How does that get accessed if one is using a front end profile system?
Quote from Asgaros on December 6, 2017, 7:32 pmWordPress doesnt have front-end profiles by default, so this functionality is provided by third-party plugins. There are dozens of extensions which bringing features like this to WordPress which makes it impossible for me to add code to the plugin to support them. If I support one, other people will start to ask if I can support other plugins as well. You should contact the author of your front-end-profile plugin and ask him if his plugin provides hook so you can add custom code to make this subscription-option available inside that plugin as well.
WordPress doesnt have front-end profiles by default, so this functionality is provided by third-party plugins. There are dozens of extensions which bringing features like this to WordPress which makes it impossible for me to add code to the plugin to support them. If I support one, other people will start to ask if I can support other plugins as well. You should contact the author of your front-end-profile plugin and ask him if his plugin provides hook so you can add custom code to make this subscription-option available inside that plugin as well.