Hi, i have installed this plugin and it is notyfing correctly but it doesn’t work for private post and I don’t know why. I want to notyfing private post to my registered users.
Anybody can help me?
Thanks!
]]>Hey there,
Im trying to make a change on the plugin:
What im seeking is to always show a FIXED paragraph (first one of the post) to be sent in the email body.
As i get in to the code, i can see there is a “caracter lenght” value set to “40” as default.
Is there any option to replace this fixed lenght for something like “first paragraph”?
ref: $mailcontent .= ‘<h2>guid.’&refferer=mailnotify&uid=’.$userid.'”>’.$postobject->post_title.’</h2>’.implode(‘ ‘, array_slice(explode(‘ ‘, $postcontent), 0, 40)).’ guid.’&refferer=mailnotify&uid=’.$userid.'”>[…]‘;
Regards
]]>I can’t see how change the sender email address, it is always WordPress. There are guys who ignore such a sender or put it into spam order.
]]>Hello,
Thanks for the plugin.
Does anyone else have the problem of notifications being sent to all users? (not just the ones who have UAM access to that specific post). I saw an old topic about this, but it was closed, so am opening a new one.
I’ve done a clean install of WordPress 4.4.1 and only have UAM and New Post Notification plugins installed. Yet, if I create two users (one with access to ‘group1’ and one with access to ‘group2’) they both get the email notification when I publish a post with ‘group1’ only access.
Someone mentioned that $user->caps lists the users role, not the user’s UAM groups. That seems to make sense, but I don’t know how to fix it.
Any help would be appreciated. Besides this issue, I really like the simplicity of this plugin and really hope I can get this figured out so I can continue to use it.
I have been using this plugin to send email alerts to approximately 80 users. It has worked fine until today. Internet Host (Inmotion Hosting) tells me they only send 50 emails at a time. They suggested I contact you to determine if this can work with this plugin.
Thanks!
]]>I’ve made for my use a spanish translation, you can download it here.
]]>Hi, I understand that this plugin is no longer supported. I really need urgent help! I can’t find any plugin that have the same feature as this already.
I have installed this plugin. My problem now is, I can view or rather set the settings through the WP backend but not the frontend.
How to enable the settings to show on the User Profile Page on the frontend instead of logging in to the backend?
Appreciate for the help!
]]>This looks like a good plugin but I noticed the user is not automatically subscribed to posts, despite it saying so. I can see in the plugin file that it has been commented out.
I can also see a lot of unanswered topics dating back a year.
Has the developer stopped developing or supporting this?
]]>Hi,
I use this plugin to send notification emails to the employees of our company.
I received complains about not receiving those emails. After some research, I found out that they triggered spamfilters resulting in automatic deletion.
Rule breakdown below
pts rule name description
—- ———————- ————————————————–
0.00 HTML_OBFUSCATE_10_20 BODY: Message is 10% to 20% HTML obfuscation
0.00 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
0.00 HTML_MESSAGE BODY: HTML included in message
1.05 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
2.70 HTML_OBFUSCATE_10_20_2 Message is 10% to 20% HTML obfuscation
I altered the ‘npn_generate_mail_content’ funtion in the npn_plugin.php file like this:
function npn_generate_mail_content($postobject,$postcontent,$postthumb,$userid){
$userdata = get_userdata($userid);
$authordata = get_userdata($postobject->post_author);
$mailcontent = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'.PHP_EOL;
$mailcontent .= '<html xmlns="https://www.w3.org/1999/xhtml">'.PHP_EOL;
$mailcontent .= '<head>'.PHP_EOL;
$mailcontent .= ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'.PHP_EOL;
$mailcontent .= ' <meta http-equiv="X-UA-Compatible" content="IE=edge" /> '.PHP_EOL;
$mailcontent .= ' <meta name="viewport" content="width=device-width, initial-scale=1.0" />'.PHP_EOL;
$mailcontent .= ' <title>'.$postobject->post_title.'</title>'.PHP_EOL;
$mailcontent .= '</head>'.PHP_EOL;
$mailcontent .= '<body style="font-size: 12px; font-family: Arial;">'.PHP_EOL;
$mailcontent .= ' <p>'.__('Hello','npn_plugin').' '.$userdata->first_name.',</p>'.PHP_EOL;
$mailcontent .= ' <p>'.$authordata->first_name.' '.__('published a new post','npn_plugin').' '.__('at','npn_plugin').' '.get_option('blogname').':</p>'.PHP_EOL;
$mailcontent .= ' <h2 style="font-size: 18px;"><a href="'.$postobject->guid.'&refferer=mailnotify&uid='.$userid.'">'.$postobject->post_title.'</a></h2>'.PHP_EOL;
$mailcontent .= ' <p>'.implode(' ', array_slice(explode(' ', $postcontent), 0, 40)).' ...</p>'.PHP_EOL;
$mailcontent .= ' <p style="font-size: 10px;">'.__('You can deactivate the subscription in your','npn_plugin').' <a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php">'.__('Profile','npn_plugin').'</a></p>'.PHP_EOL;
$mailcontent .= '</body>'.PHP_EOL;
$mailcontent .= '</html>'.PHP_EOL;
return $mailcontent;
}
Haven’t tested it yet, but I am confident that it solves this problem.
Removed the part about categories also
]]>Hi kilozwo,
I’d like to report a bug and hope you can help out.
This plugin doesn’t respect the selected “Access” after selecting the groups and publishing the post. It sends out the notification mail to ALL users, despite having selected only 1 UAM Access group in the post.
It works fine if you first select the Access group, save the post as a draft, and publish it afterwards. But if you publish it directly, it’s af if the code below is sending all users a notification:
if (empty($allowed_groups)) $access = true;
Any chance you can update the plugin to fix this?
Thanks in advance,
RVS
Hi, I have this problem.
If I choose all categories in the in the user profile, plugin works correctly and it send the notification.
If I choose the single category, plugin does not work and I obtain this message:
——————————-
Warning: Invalid argument supplied for foreach() in /ferrara/wp-content/plugins/new-post-notification/npn_plugin.php on line 55
Warning: Cannot modify header information – headers already sent by (output started at /ferrara/wp-content/plugins/new-post-notification/npn_plugin.php:55) in /ferrara/wp-admin/post.php on line 235
Warning: Cannot modify header information – headers already sent by (output started at /ferrara/wp-content/plugins/new-post-notification/npn_plugin.php:55) in /ferrara/wp-includes/pluggable.php on line 1196
—————————-
WordPress Version 4.2.1
New Post Notification Version 1.0.10
Thanks in advance
Claudio
On Notification Mail:
Du kannst diese Benachrichtigungen deacktivieren: Mein Profil .Es k?nnen auch einzelne Beitragskategorien ausgew?hlt werden.
npn_plugin-de_DE.mo
]]>I cannot get the New Post Notification plug in on my site. How do I do this? Please help!!
]]>Hi,
When publishing a new post, subsribers recieve an e-mailnotification.
But, the link to the new post in the e-mail isn’t correct.
It adds &refferer=mailnotify&uid=9 to the link, which results in Page not Found.
How can this be fixed? Thanks!
]]>All users are getting emails for posts with permissions on it. They can’t view the post but they are getting notified about it.
]]>Hello,
Is it possible to validate the plug-in for all users already enroled ?
Thanks for your answer
So the global setting of text/html breaks the reset password link since the <> cause it to disappear. To fix this, you can change the New Post Notification plugin (which was the only one causing it on my site) to set the mail to HTML then set it back to PLAIN after the send command.
In this file
wp-content/plugins/new-post-notification/npn_plugin.php
do the following
1) Search for the HTML-Mails add_filter line and move it (copy, delete, then add)
a) delete from near top of plugin
b) Add it right above the foreach loop
// Use HTML-Mails
add_filter(‘wp_mail_content_type’,create_function(”, ‘return “text/html”; ‘));
// Go through the users and check the access //
foreach ($users as $user){
2) Add the default plain line below the // send Mail code
// send Mail if User activated Notification and there was no notification before.
if ($access==true AND $cat_chosen==true AND get_the_author_meta( ‘npn_mailnotify’, $user->ID )==’1′ AND get_post_meta( $post_ID, ‘npn_notified’, true) != ‘1’) wp_mail( $user->data->user_email, ‘[‘.get_option(‘blogname’).’] ‘.__(‘New Post’,’npn_plugin’).’: ‘.$postobject->post_title, npn_generate_mail_content($postobject,$postcontent,$postthumb,$user->ID));
}
// Use default plain
add_filter(‘wp_mail_content_type’,create_function(”, ‘return “text/plain”; ‘));
That will fix the issue!
]]>Hi! We use WordPress 3.9.2 with UAM and New Post Notification in the last version. We have found a big bug in your plugin.
When we safe a post before publishing it, no user will be notified by the plugin, even if the users are in the correct user groups.
When we publish the post directly (without safing it before) ALL users will be notified about the new post, even if they aren’t member of the checked user group.
Do you have an idea, how we can fix this problem?
Best regards, Maik
]]>How can I include html and css in the emails?
Thank you.
]]>Hey there,
my users told me that they were not receiving a password reset link in their password reset mail. I investigated, and I saw that you are using add_filter for the mail content type in the npn_plugin.php file. I also learned that this sets a global vaiable and might interfere with other plugins. Thus, I commented that one and instead changed the relevant section to include a header array, like this:
// send Mail if User activated Notification and there was no notification before.
$headers = array('Content-Type: text/html; charset=UTF-8');
if ($access==true AND $cat_chosen==true AND get_the_author_meta( 'npn_mailnotify', $user->ID )=='1' AND get_post_meta( $post_ID, 'npn_notified', true) != '1') wp_mail($user->data->user_email, '['.get_option('blogname').'] '.__('New Post','npn_plugin').': '.$postobject->post_title, npn_generate_mail_content($postobject,$postcontent,$postthumb,$user->ID), $headers);
}
This allows the password reset to work as expected and still have the notification mail in HTML format.
Thanks for this awesome plugin!
best
Lisa
Hi there, I’m using this nice plugin, but I noticed that when I recive an email notification the sender is “WordPress” and uses a “wordpress@” email. How can I change that?
]]>I’ve made for my use a french translation,you can download it here.
Rv
]]>Hi
For a week or so, this plugin has stoped sending email. Before it was. I’m not using UAM.
Help please
I would liek to know if this plugin could be used to notify users when a new property is listed?
Do you offer custom installation for the plugin?
]]>Hi, every time someone makes a change on their post, it sends the notification again, is there a way to stop this?
]]>Hi,
I have some problem with this integration.
I created two group with User Access Manager (ex. group01, group02).
I created a post’s category (ex. News).
I created two user with this features:
– user01 with GROUP “group01” and MAIL SUBSCRIPTION “News”
– user02 with GROUP “group02” and MAIL SUBSCRIPTION “News”
I published three posts with this features:
– post01 with CATEGORY “News” and ACCESS “group01”
– post02 with CATEGORY “News” and ACCESS “group02”
– post03 with CATEGORY “News” and ACCESS “group01+group02”
All users receive three mail for all three posts. This is bad, the right configuration is two mail with this difference:
– user01 mail with link to “post01+post03”
– user02 mail with link to “post02+post03”
I need to check something else?
In frontend two users read right posts. The problem is only email.
I use:
– WordPress 3.9
– New Post Notification 1.0.8
– User Access Manager 1.2.5.0
Thank you and sorry for my english…
]]>Is there any way to send the whole content and not only an excerpt?
Thanks in advance!
I am getting this in my email notifications and cannot figure out why this is happening.
(fake url) https://www.urladdress.com/post/&refferer=mailnotify&uid=1.
Because of that alone, the links are always taking me to 404 page. Probably something simple that I am overseeing or missing, but equalling frustrating.
Thank you for this fine plugin. A question: I installed and activated this plugin after publishing some posts. Now I changed one of these previous posts from sticky to non-sticky and now your plugin fired this old post as a new one to the users. Is this intended?
Thanks
Dietrich
My profile displays both pages and categories as post notification options.
How do I eliminate the pages; they do not conatin posts.
I wish to display only category pages.
Also, will a noticication be sent everytime there is a new post or can I configure your plug-in to sent a notice only once a day?
Thanks!
Dana
]]>