Yes, that is almost what I meant. A user should only be allowed to subscribe for the Categories that they have permission for, and the Categories that they haven't got permission for should not be visible on the list either.
So, a clarification was required because for each category you have this sort of table: Add Announce Close Delete Edit Sink View Answers Questions
So, I was wondering which one of these would be more appropriate for the general case. If he has a permission to View, then he should be able to subscribe.
Yes, I think you're right. If a user has permission to view, he should be able to subscribe. By the way - thanks for your answers! It is great you're already thinking about a solution.
dear friends, I am using the latest version but still experiencing the same (old) issue. Everytime I post a new topic or reply some other I get dozens of "Mail Delivery Error" messages like this one:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
user_9@deleted.email The mail server could not deliver mail to user_9@deleted.email. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
Where do you get these messages? And who is user_9? Can you also post the result of the following MySQL query: SELECT UserID, Email, Admin, Deleted FROM GDN_User WHERE Email = 'user_9@deleted.email';
also, my mailbox is being filled with duplicated messages. every notification comes twice. it means: first for informing about the topic and the second one to explicit the text posted.
For the double notification, upgrade vanilla or search the forums for the solution in the code.
The new version should not add deleted people to notifications but will keep sending notifications to people subscribed from the first version of the script. Try running this in your database: delete from GDN_UserMeta where UserID in (select UserID from GDN_User where Deleted = 1);
Yes, that is almost what I meant. A user should only be allowed to subscribe for the Categories that they have permission for, and the Categories that they haven't got permission for should not be visible on the list either.
Have a good time!
Hi cdavid,
I wonder if you had a chance to look at implementing this yet? It causes a problem because members who do not have the permission to view a category still receive an email for the new post which I do not think should happen. If they don't have permission to "view" then they should not receive an email notification for that category. At least it appears that way on my testuser account.
cd, Thanks for this fantastic plugin! I came across an issue and wondered if you might suggest a quick fix/addition to the default script: For users who are are set to a specific role (i.e. cannot view/post to a certain category), they can still go to their preferences page and see a checkbox next to all of the categories, even if they can't view some of them :) I noticed in the script around line 109 it does a query for basically all categories - any way to check here what categories the user can view and only show checkboxes for those categories? I'm not totally comfortable coding in php - any help/suggestions would be greatly appreciated!
is this diffrent from "auto bookmark the discussion when i post a comment"? im looking for this kind of feature, not sure if this plugin does it. thanks
Hey, guys, I am back now after some exhausting finals and a short break. I will take a look at both @Dan Devine and @johngoodell issues.
@aidster this does this too ... //Also bookmark the discussion for all those users $Sender->DiscussionModel->BookmarkDiscussion( $DiscussionID, $User[0], $Discussion = NULL );
Hi there. I'm no programmer. I installed the plugin and have tried to get emails by using a "local email server" (the Vanilla option if you don't use an SMTP) and also by using an SMTP relay. While using the Vanilla option I never receive an email and if using a gmail SMTP I always get a page long error. Can someone please help me? I have used gmail smtp and also my own private ISP smtp that I *definitely* know the way around and it is still not working. Have tried all variations of SMTP ports and security.
Here is the error I get when using SMTP:
SMTP Error: Could not connect to SMTP host. exception 'Exception' with message 'SMTP Error: Could not connect to SMTP host.' in /home/content/a/m/m/ammaga/html/forum/library/core/class.email.php:201 Stack trace: #0 /home/content/a/m/m/ammaga/html/forum/plugins/EMailSubscribe/default.php(73): Gdn_Email->Send() #1 /home/content/a/m/m/ammaga/html/forum/library/core/class.pluginmanager.php(353): EMailSubscribe->PostController_AfterDiscussionSave_Handler(Object(PostController), Array, 'postcontroller_...') #2 /home/content/a/m/m/ammaga/html/forum/library/core/class.pluginmanager.php(306): Gdn_PluginManager->CallEventHandler(Object(PostController), 'PostController', 'AfterDiscussion...', 'Handler') #3 /home/content/a/m/m/ammaga/html/forum/library/core/class.pluggable.php(122): Gdn_PluginManager->CallEventHandlers(Object(PostController), 'PostController', 'AfterDiscussion...') #4 /home/content/a/m/m/ammaga/html/forum/applications/vanilla/controllers/class.postcontroller.php(174): Gdn_Pluggable->FireEvent('AfterDiscussion...') #5 [internal function]: PostController->Discussion() #6 /home/content/a/m/m/ammaga/html/forum/library/core/class.dispatcher.php(297): call_user_func_array(Array, Array) #7 /home/content/a/m/m/ammaga/html/forum/index.php(38): Gdn_Dispatcher->Dispatch() #8 {main}
Hey, guys, I am back now after some exhausting finals and a short break. I will take a look at both @Dan Devine and @johngoodell issues.
@aidster this does this too ... //Also bookmark the discussion for all those users $Sender->DiscussionModel->BookmarkDiscussion( $DiscussionID, $User[0], $Discussion = NULL );
/cd
Hi /cd,
Just a quick note that there is still an interest in a modification of this plugin that supports roles.
Thank you for this. Have Just installed the new plugin and got a new problem. If I want to subscribe to all discussions I can not choose this, or I can not see that I have chosen this. The checkmark is not visible so I have to check all categories? uses 2.0.14
So, 1) do you have a box with "Subscribe to all"? 2) can you check it? 3) can you try to update to the latest version and tell me if it works? 4) if not, can you please install firebug for firefox, turn it on for the profile page (the bug has to be yellow) by clicking on it, activate the Script and Console tabs (click on the arrow by their name and then click "Enable"), refresh the page and look if there is any error appearing in Console when you click the "Email Subscription" link and if you check the box?
I have this problem also with the latest version. The 'subscribe to all' that was previously enforced on all users was removed so nobody received email notifications. as the site administrator (and therefore with full permissions to all categories - which i did check to confirm) I could not re-tick this option even for myself.
Comments
Have a good time!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Add Announce Close Delete Edit Sink View
Answers
Questions
So, I was wondering which one of these would be more appropriate for the general case. If he has a permission to View, then he should be able to subscribe.
/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •By the way - thanks for your answers! It is great you're already thinking about a solution.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
user_9@deleted.email
The mail server could not deliver mail to user_9@deleted.email. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •SELECT UserID, Email, Admin, Deleted FROM GDN_User WHERE Email = 'user_9@deleted.email';This should help me find out what happened.
/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •is this what you want?
SELECT UserID, Email, Admin, Deleted
FROM GDN_User
WHERE Email = 'user_9@deleted.email'
LIMIT 0 , 30
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •note: i have 9 different users, all deleted /old users with the same beahavior
version: 2.0.9
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •The new version should not add deleted people to notifications but will keep sending notifications to people subscribed from the first version of the script. Try running this in your database:
delete from GDN_UserMeta where UserID in (select UserID from GDN_User where Deleted = 1);This should fix the problem. Let me know.
/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •However, I'd like to see these options moved into the [My Preferences] link in one's profile that already manages emails for notifications.
Is that not possible to hook? By having this out as a new item it makes the other stuff harder to find and way less obvious.
My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
3 • Off Topic Insightful Awesome LOL •I wonder if you had a chance to look at implementing this yet? It causes a problem because members who do not have the permission to view a category still receive an email for the new post which I do not think should happen. If they don't have permission to "view" then they should not receive an email notification for that category. At least it appears that way on my testuser account.
Thanks!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks for this fantastic plugin! I came across an issue and wondered if you might suggest a quick fix/addition to the default script:
For users who are are set to a specific role (i.e. cannot view/post to a certain category), they can still go to their preferences page and see a checkbox next to all of the categories, even if they can't view some of them :) I noticed in the script around line 109 it does a query for basically all categories - any way to check here what categories the user can view and only show checkboxes for those categories? I'm not totally comfortable coding in php - any help/suggestions would be greatly appreciated!
Thanks again for the great work!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@aidster this does this too ...
//Also bookmark the discussion for all those users
$Sender->DiscussionModel->BookmarkDiscussion(
$DiscussionID,
$User[0],
$Discussion = NULL
);
/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I have used gmail smtp and also my own private ISP smtp that I *definitely* know the way around and it is still not working. Have tried all variations of SMTP ports and security.
Here is the error I get when using SMTP:
SMTP Error: Could not connect to SMTP host. exception 'Exception' with message 'SMTP Error: Could not connect to SMTP host.' in /home/content/a/m/m/ammaga/html/forum/library/core/class.email.php:201 Stack trace: #0 /home/content/a/m/m/ammaga/html/forum/plugins/EMailSubscribe/default.php(73): Gdn_Email->Send() #1 /home/content/a/m/m/ammaga/html/forum/library/core/class.pluginmanager.php(353): EMailSubscribe->PostController_AfterDiscussionSave_Handler(Object(PostController), Array, 'postcontroller_...') #2 /home/content/a/m/m/ammaga/html/forum/library/core/class.pluginmanager.php(306): Gdn_PluginManager->CallEventHandler(Object(PostController), 'PostController', 'AfterDiscussion...', 'Handler') #3 /home/content/a/m/m/ammaga/html/forum/library/core/class.pluggable.php(122): Gdn_PluginManager->CallEventHandlers(Object(PostController), 'PostController', 'AfterDiscussion...') #4 /home/content/a/m/m/ammaga/html/forum/applications/vanilla/controllers/class.postcontroller.php(174): Gdn_Pluggable->FireEvent('AfterDiscussion...') #5 [internal function]: PostController->Discussion() #6 /home/content/a/m/m/ammaga/html/forum/library/core/class.dispatcher.php(297): call_user_func_array(Array, Array) #7 /home/content/a/m/m/ammaga/html/forum/index.php(38): Gdn_Dispatcher->Dispatch() #8 {main}
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Just a quick note that there is still an interest in a modification of this plugin that supports roles.
Dan
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Many thanks for looking into this - let me know if you need help testing and/or clarifying examples I've come across...
John
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks, looking forward to trying it!
Dan
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks again.
Dan
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Have Just installed the new plugin and got a new problem. If I want to subscribe to all discussions I can not choose this, or I can not see that I have chosen this. The checkmark is not visible so I have to check all categories?
uses 2.0.14
/susslet
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •/cd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •