Arrow


Version 1.3.4: Peter’s Collaboration E-mails for WordPress Share on Facebook

Here’s a plugin I wrote to take advantage of the pending review feature available in WordPress 2.3 and higher. Note that the latest version of this plugin requires WordPress 2.5 and higher.

With the default pending review feature, you can have “Contributor” users who can write posts. However, these posts are not published until an “Editor” or “Administrator” user comes along and approves the post. What this plugin does is send e-mails at three steps:

  1. When a Contributor user submits an article for review: The plugin e-mails a list of moderators of your choice, letting them know that there is a post ready for review, and giving them a link to edit the post.
  2. When a post is approved: The original Contributor user gets an e-mail saying that their post has been approved and who it was approved by. If the post was directly published, the author is given a link to read the post as the whole world sees it. If the post is scheduled to be published, the author is informed of the time that their post will go live. When the post does go live, the author will get another e-mail informing him / her of that.
  3. When a post’s status is changed back to “draft” from “pending”: The original Contributor user gets an e-mail saying that their post has been reverted back to a draft, along with a link to edit and re-submit the post.

You can assign specific moderators (these must be Administrator or Editor users) to specific Contributor users:

The management screen for configuring moderators

When used with Peter’s Post Notes on WordPress 2.7 and higher, users can leave notes to accompany the e-mails for each step in the workflow.

Get the plugin

Without further ado:

Download Version 1.3.4 of Peter’s Collaboration E-mails for WordPress [January 11, 2010: Plugin now removes its database tables when it is uninstalled, instead of when it is deactivated. This prevents the collaboration rules from being deleted when upgrading WordPress automatically.]

Download the WordPress MU version here.

Version 1.3.3 [September 22, 2009: Maintenance release to remove unnecessary code calls and increase security.]

Version 1.3.2 [June 27, 2009: Minor fixes for translations.]

Version 1.3.1 [June 19, 2009: Updated plugin for WordPress 2.8.]

Version 1.3.0 [February 16, 2009: Added e-mails at the "pending-to-future" and "future-to-publish" transitions.]

Version 1.2.2 [February 6, 2009: Added backwards translation support for WordPress 2.5.]

Version 1.2.1 [January 3, 2009: Added .po and .mo files for translators.]

Version 1.2.0 [December 10, 2008: Added another e-mail trigger: when a pending post's status is changed back to a draft. Also added interoperability with Peter's Post Notes (for WordPress 2.7 and up) so that users can leave descriptive notes at each step in the workflow.]

Version 1.1.0 [September 18, 2008: You can specify moderators per post category.]

Version 1.0.1 [August 7, 2008: Database table names no longer use a fixed prefix. They now use whatever your WordPress installation uses ("wp_" by default).]

Version 1.0.0 [July 22, 2008: You can now specify moderators per user.]

Version 0.2.0 [Nov 11, 2007: Two new options: 1) Specify a name and e-mail address to send all e-mails (instead of having the contributor as the sender for pending e-mails and the contributor as the sender for approval e-mails); and 2) Toggle whether to show the contributor, in the approval e-mail, which user approved his / her post.]

Version 0.1.0 [Oct 31, 2007: First version!]

Turkish translation of 0.2.0 by Baris.

Slovakian translation (UTF-8) of 0.1.0 translated by sir.peterson.

Installation

Simply unzip the file peters_collaboration_emails.php to your WordPress plugin directory. Then, activate it in the Plugins menu in the WordPress admin section.

Details about the e-mails sent (who the sender should be; whether the contributor should know who approved his/her post; and so on) are configured by editing the top of the plugin file itself. The default settings should be sufficient for most implementations.

Moderator rules are configured in the Settings > Collaboration e-mails admin menu. Moderators are Administrator or Editor users who should be notified whenever a post is submitted for review. You can create groups of Contributor users and assign different moderators for each group. In other words, different users can be notified based on who wrote a post. You can also assign moderators based on post categories. If a Contributor user belongs to multiple groups and/or a post has multiple categories, all moderators who have been assigned to the relevant groups and categories are e-mailed.

Troubleshooting

Now, whenever you release a plugin the first comments you usually receive are people who have trouble with your plugin. Hopefully I can build a brief troubleshooting section first:

- If you are not receiving any e-mails, make sure that the PHP mail() function is configured properly (ask your web host or if you’re computer-savvy, check it out yourself; or if you have credentials for an SMTP server, install and configure the WP Mail SMTP plugin). If you are trying to send to multiple recipients via SMTP, note that WordPress up to 2.8 has a bug; I described a fix in this post. Also make sure that a Contributor user has actually submitted a post for review.

- If you want to use this plugin with pages, you need to allow the Contributor user to actually create pages (as by default they cannot). Use a plugin such as Capability Manager to add the “edit pages” capability to the Contributor role. With that plugin, you can even create new roles if you’d like.

- If the plugin simply breaks, make sure you are using WordPress 2.5 or higher. Also check the settings near the top of the plugin file (in the WordPress admin section, go to Plugins > Plugin Editor > Peter’s Collaboration E-mails).

- Need help installing the plugin or customizing your installation? Hire my consulting services: peterATmugo.ca!

Arrow

72 Responses to “Version 1.3.4: Peter’s Collaboration E-mails for WordPress”



  1. n-blue says:

    It’s interesting and useful for multiple authors blog. Can we impliment this for commenter. Like, email commenter when their comment that hold is approved.



  2. sir.peterson says:

    Hi,

    I have localized this plugin to Slovak language(UTF-8)

    Loocated at:
    http://www.blogspot.sk/wp-content/plugins/peters_collaboration_emails_sk.phps

    Keep up the good work, thanx.
    P.



  3. Peter says:

    sir.peterson: Thanks for the Slovak translation. This is now posted under the main download link.

    n-blue: Here’s code for a plugin that e-mails the commenter when their held comment is approved:

    http://www.theblog.ca/wp-content/uploads/2007/11/email_on_approve.txt

    I don’t intend on providing support on such a plugin or developing it further, but anybody can feel free to use the code in there.



  4. n-blue says:

    Thank you, Peter.



  5. Daniel Condurachi says:

    I wish you all you need to develop this good idea



  6. houserocker says:

    thanks for this great and very easy to use plugin!!



  7. Rosyidi says:

    it will be great if there is a option menu.



  8. Peter says:

    What options would you like? Or do you mean the same options that are in the plugin file, but in a graphical user interface?



  9. Rosyidi says:

    Yes, in graphical user interface, so user can easily configure this plugin.
    Couse some people don’t know to edit on php code, me too.
    I think this is the only one plugin for contributor. So, that’s great. thank’s a lot.
    Sorry bad English :)



  10. Steve says:

    I put this in my school WPMU installation. It works great! Prior to installation, I had to ferret through each blog taking 8-10 mouse clicks whether they had a new post or not. Now I can approve that which is submitted and can do so with three clicks including opening the email! What a time saver!

    You extended the utility of the recently (and incompletely) implemented “submit for review” option and made it truly usable.

    Your commenting makes configuring straight forward. For some reason WPMU does not allow you to edit the file via the backend, rather one has to access it via ftp to edit. No problem for me or anyone who runs a WPMU installation.

    Nice job! I’ll recommend this to all others who run educational blogs that require moderating.

    Thanks!



  11. Spiewgels says:

    I hate being the idiot here but how exactly do I input the different editor’s e-mail addresses for the part where I add everyone that I want to be able to moderate posts ($pce_mods)? Do I just enter another e-mail address followed by a semi-colon? I’ve tried several different things and keep messing it up.



  12. Peter says:

    Hi Spiewgels,

    Hi! Here's an example if you wanted to add 5 e-mail addresses, not including the address that is configured as the administrator on your WordPress installation:

    Replace:
    $pce_mods[] = get_option('admin_email');

    With:

    $pce_mods[] = 'example_addy@hotmail.com';
    $pce_mods[] = 'example_addy1@hotmail.com';
    $pce_mods[] = 'example_addy2@hotmail.com';
    $pce_mods[] = 'example_addy3@hotmail.com';
    $pce_mods[] = 'example_addy4@hotmail.com';



  13. Spiewgels says:

    Thanks very much, I’m trying it now and will let you know how it works out!!!



  14. Spiewgels says:

    Okay, everything seems a go! thank you very much



  15. Matt Wiebe says:

    Thanks for implementing this plugin. It’s quite shocking that this isn’t already a part of the WP core. What good is a “pending review” status if you don’t know about pending posts?



  16. lafig3 says:

    Hello,

    this extension is a very good idea, but I’m having trouble getting it to work. I think my php mail() function is working correctly, because I receive mails when users register on the blog. But when save a post with the pending for review option, I do not receive any mail. What can be the problem?

    Thanks



  17. Peter says:

    Hi lafig3,

    Without knowing more details it is difficult to guess what the problem is. This plugin should send an e-mail when a Contributor user clicks the “Submit for review” button, when the status of a post becomes “pending”. Another e-mail is sent when that post is approved.

    If you are merely saving a post, nothing should happen. Also, nothing should happen if you are an Administrator, Editor or Author user (on default installs) and you make a new post.



  18. lafig3 says:

    Thanks! I was saving the post as admin, that’s why I wasn’t receiving any warnings.

    This is a very useful plugin, thank you!



  19. Jeromy says:

    Found a bug (maybe you're already aware). If the contributor submits for review, than comes back and assigns a category, and clicks 'submit for review' again, it automatically approves and publishes the post. Not an issue for me cause I actually hide that panel to my authors. Just thought you should know. I'm using WP 2.3.3 with php5



  20. Peter says:

    Hi Jeromy,

    Thanks for pointing out the issue with the "submit for review" feature. Is this a problem only with my plugin? I was unable to reproduce this problem with and without my plugin with WordPress 2.3.3 and WordPress 2.5.



  21. Ken says:

    Im having the same issue as jeromy. contributors are inadvertently publishing posts without my approval. I wasn't sure how they were doing it until I realized they were going back and making changes and re-submitting before I had a chance to approve.



  22. Peter says:

    I still cannot re-produce this error after multiple attempts, using a "contributor" user, making edits, changing categories, etc. Are you running any other plugins that might affect the publishing process?



  23. Peter says:

    Ah, I have finally reproduced this bug with a Contributor user account by first saving a draft, changing the status to "Private", then finally submitting it for review. The good news is, my plugin isn't what's causing it and this bug was supposedly fixed in WordPress 2.5 as reported here.



  24. shammi says:

    what is the user is not a registered user. that creats a blog. will he get the mails when approved



  25. Peter says:

    Hi shammi, this plugin only covers articles being approved and published so no, this plugin does not send an e-mail when a user account is approved.



  26. baron says:

    hi there .thanks for plugin:

    Does anybody know if tis script is compatible with Wordpress 2.5.1 ?

    Thanks in advance for any help on this!

    regards



  27. Peter says:

    Yes, it is compatible with WordPress 2.5.1.



  28. Kris Rzepkowski says:

    Hi Peter,
    I'm trying to do what you said in your January 22nd comment. I'd like to have the email go to one other person beside the site admin. When I put in exactly what you have written as an example email address

    $pce_mods[] = ‘example_addy@hotmail.com’;

    and click Update file (WP 2.5.1 Plugin editor) I get a fatal error and the plugin deactivates. This is the error:

    Parse error: syntax error, unexpected '@' in /home2/ithirewi/public_html/wp-content/plugins/peters_collaboration_emails.php on line 26

    Any ideas?? Thanks.



  29. Peter says:

    Hi Kris, this is almost certainly a case of weird characters. Be sure to use a straight apostrophe (or "single quote") instead of any curly version.



  30. Kris Rzepkowski says:

    Many thanks Peter. That was the fix. I copied the text right from your comment rather than from a text editor. I'm not experienced enough to recognize the cause. Great plugin!



  31. sean says:

    Works like a charm.

    One feature I would like to see is the ability to assign a specific editor to a specific (or multiple) contributor(s). Our company has multiple departments that would use a work flow of a lower level contributor that writes a post and then their specific department head would act as editor and approve that post.

    Thanks for a great plug in!



  32. Alasdair Davies says:

    Fantastic plugin, and great work. Thank you!

    I too like Sean, would be delighted if it proves possible to modify the plugin to select an email address to send a notification to based on the category the contributer posted a blog.

    Is such a thing possible?

    Many kind regards,

    Alasdair



  33. Peter says:

    Yes, it would certainly be possible to craft a solution with different "approvers" being notified based on the user who posted it (Sean's need). I have a possible framework for this in my head but can't guarantee that I'll be able to get to it any time soon due to other work taking more priority. Anybody want to help?

    Setting different approvers based on the category (Alasdair's need) is more difficult but still do-able. If this is built on top of user-dependent approvers, this would require a more sophisticated set of approval rules. (Check by user, then category or vice versa?) And what if it's posted to multiple categories? Which category would take precedence?



  34. Alasdair Davies says:

    Hi Peter,

    I think Sean's needs would work perfectly looking at the solution again. Different approvers would do the same job, and prevent the need to specify which category should take precedence.

    I'd love to help update the plugin, but am more a designer than a coder I'm afraid - hopefully someone can help you with the framework though.

    Keep up the good work.



  35. sean says:

    Like Alasdair, I am more of a designer than a developer - I am afraid I don't know my way around php/mysql enough to be much help here. Perhaps, seeing that there is a desire for this type of functionality among the community, some one with a little more expertise may be able to jump in and take a shot at it. Thanks guys!



  36. Philix says:

    Thanks, this is exactly what i was looking for.



  37. Alasdair Davies says:

    Thanks for the update Peter,

    Downloading it now - Speedy update too. Add a donation button to your site and I'll send you a thank you.

    Cheers,

    Alasdair



  38. Pxl_Buzzard says:

    I love the idea of the plugin; however, I'm have 4 authors that I check before I publish their posts. Would it be possible to code in different user level support?



  39. Peter says:

    Hi, I'm not 100% what you mean, but I think this is already possible. You would 1) Assign these users the built-in Contributor role, then 2) Add them to a group in my plugin with you as the moderator.



  40. Pxl_Buzzard says:

    But see, I like them having the power that comes with being an Author still. Or what if I wanted to check an editor's work? I think it would be beneficial to add the choice of user roles to the plugin.



  41. Peter says:

    So you mean: even if those users can immediately post their changes (and have those changes live on the site), you still want to be notified whenever anything written by them has been updated. If so, this is certainly do-able, although I'll have to take some time to think about whether this would fit with the intention of the plugin.



  42. Jean-Paul Horn says:

    Love the plugin. This is really useful for our multi-author blog. Could you please add a fix for table prefixes in your next version? Our table names aren't prefixed with wp_, but with our websitename. Your plugin creates two tables with the standard wp_ prefix and has some usermeta checks against wp_capabilities, which is called example_capabilities for our database. The prefix may be configured in wp_config.php if I recall correctly.

    I have already fixed this is in my own install, but it might be handy for future versions :)



  43. Peter says:

    Thanks for the feedback, Jean-Paul. I've now addressed both these issues in version 1.0.1.



  44. Jean-Paul Horn says:

    Thanks for the quick fix, Peter. Again, a very useful plugin!



  45. Daisy says:

    I see some others have requested this…but it would be really great to be able to assign an notification email to categories rather than lists of individual contributors. With 300+ contributors each reporting to a category editor it would make life much easier to not have to keep the groups continually updated.



  46. Peter says:

    I've just released Version 1.1.0 to include category-specific moderators.



  47. AndrewJ says:

    This plugin is great - super helpful to keep notes while i'm drafting a post so that I can outline and keep track of my thoughts…

    Are you planning on adding a feature where you can delete or modify existing notes? would be helpful so that i don't add so many notes that i fill up my screen : -)

    once again, thanks for the effort for developing!



  48. Peter says:

    Good idea regarding the ability to delete a note. I'll get that into the next version, whenever that will be ;)

    December 28, 2008 update: version 0.2 of the post notes plugin includes the ability to edit and delete a note.



  49. michael boldin says:

    Just tested this out in 2.7 - and it’s working perfectly!

    Only one question/request - is it possible to have it send out a notice that a post is published on “scheduled” posts?

    For example, a contributor submits a post for review on 12/17. I review the post on 12/17 and schedule the post for publication on 12/19 at 8:10am. Is there a way for the plugin to notify the contributor on 12/19 at 8:10am that their post was published?

    It only sends out mail at the moment I publish the post, but no email is being sent for posts scheduled for publication in the future.



  50. Peter says:

    Hi michael, it would be possible to “hook” into that transition. Perhaps a future release?



  51. Willy Galleta says:

    Hi. I've been using the plugin for some time and I translated and adapted the previous version. But when I actualized it, I lost the translation. Obvious.
    However I tried to localize it with de .po and .mo files, but when I upload the new .mo file, nothing changes.
    Am I missing something? I've tried in a new clean WP and it doesn't work either.
    I've used Poedit for generating the .mo.
    Thanks.



  52. Peter says:

    Hi Willy,

    I've discovered that WordPress defaults to the en_US locale, so you need to name the .mo file "peters_collaboration_emails-en_US.mo" or replace "en_US" if you have set the locale to something else. If you’re using a WordPress version earlier than 2.6, you should put the .mo file one level up, in the “plugins” directory.



  53. Daisy says:

    I have been using this plugin for some time now on a massively multi-author website and it's been a real help. I noticed, however, that contributors are only notified when their posts are published and not when they are scheduled to publish. I think it would be great to have them be notified that a post was scheduled, the date it was scheduled for, and then another notification when the post actually posts.

    I modified my installation to notify when status changes from pending to future but it would be great if the function were extended to cover all the possible post status transition possibilities.



  54. Peter says:

    Hi Daisy,

    Did you simply add another condition such as this?

    if ($pce_newstatus == 'future' && $pce_oldstatus == 'pending') {
    // code
    }

    If so, did you try something like this for the scheduled publication notification?

    if ($pce_newstatus == 'publish' && $pce_oldstatus == 'future') {
    // code
    }

    The "future" to "publish" transition is the one transition that isn't done by a user in the back-end interface, so you’ll have to remove the is_admin test that encapsulates most of the plugin.



  55. Daisy says:

    Thanks Peter,

    I pretty much just replaced the check for the pending to published transition to be pending to future instead. That more or less handles my immediate need for contributors to know that their post was accepted for publication. Sometime when I have time I might just tweak it a bit more to include the scheduled date/time that the post is scheduled to go live, that would serve just about as well as a second email to notify that the post went from future to publish.

    It would be nice to see the other options incorporated, though. I can see how having to remove the is_admin check might not be the greatest thing.



  56. Peter says:

    The is_admin checks whether you are in the administration interface, so in this case it's only for efficiency of code — for example, the management interface code doesn't need to be available on the front-end. If you (or I, if I get to it) implement the "future-to-publish" transition, it will be necessary — but not harmful — to expose the main plugin function to the front-end as well.

    Update: the discussed functionality has now been added to version 1.3.0.



  57. Daisy says:

    Just saw the new version is out. Thanks so much!



  58. Hector Parra says:

    Peter, since the last Wordpress 2.8 it seems like one gets emails even when editing as admin/editor other people's posts before publishing. Would it be easy to make it work as before so we don't get emailed about our own changes? Thanks and congratulations for this useful plugin! Hector

    Reply from Peter: Thanks for pointing that out. I have now released version 1.3.1, which does not send that “pending-to-pending” e-mail. I’m not sure why WordPress 2.8 internally considers that to be a so-called post transition, but we’ll work around that :)



  59. Bob Murray says:

    Hey Peter - thanks so much for this - it works right out of the box. I had been using Dagon Design's Draft Notification - and getting emails every time a contributor just opened the post page. Now, I just get bonafide posts notifications and the contributor gets alerted when I approve too. Thanks again! :)



  60. Matt says:

    We're having a problem where the notifications only work if just a single email address is entered. If there is more than one selected then no one gets the notifications. Is this expected behavior and if not is there some kind of workaround?

    Reply from Peter: if there is only one moderator per entry (you don’t enter something like “address1@gmail.com, address2@gmail.com” in one entry), and multiple moderators are checked, the plugin should work. If that’s not the problem, are you using another plugin that might change the way WordPress sends e-mails?



  61. Ellen says:

    This is a terrific plugin, but I have a unique problem I'm wondering if you can shed any light on, Peter:

    I'm using a separate plugin that enables custom post statuses (additional ones other than "Draft" or "Pending Review.") Unfortunately, when a post is approved and published while it's got one of these custom statuses (an example: "Ready to Publish"), the e-mail does not get triggered to send to the contributor. It appears that a post is only triggered to get sent to the contributor if it changes from "Pending Review" to "Published." (If it changes from "Ready to Publish" to "Published" then nothing happens.)

    I'm hoping this isn't a limitation of the Wordpress core functions, and maybe there is something that can be altered in your plugin to accommodate these custom post statuses. Unfortunately the custom statuses are very important to our approval workflow and we can't drop them.

    Reply from Peter: It depends on whether that plugin’s custom post statuses integrate with the same way WordPress handles its statuses. I have not looked into the pluggability of WordPress’s post statuses; however, my plugin hooks into the core WordPress filter transition_post_status() and then checks the new status and old status values. If your custom statuses are available in that filter, you can also trigger e-mails by following the same model as in my plugin’s code.



  62. Aren Cambre says:

    I installed this module and added three admins, including myself, to the "Default moderators" area. None of the Group or Category areas have any users.

    From the description of "Default moderators" ("These users will be e-mailed if none of the rules below match."), it appears that all three of these people should get all notifications, including but not limited to new users and comments awaiting moderation.

    I know there's no problem with my email address because I do get notifications if it's in the "Settings > General > E-mail address" field.

    I intended to use this module solely to have notifications sent to more than one person. Did I misinterpret its purpose?



  63. Aren Cambre says:

    I just realized I didn't state the problem in the prior comment: None of the three "Default moderators" get any notifications. Only the email in "Settings > General > E-mail address" gets notifications.

    Reply from Peter: Are you using any e-mail-related plugins? I did experience an issue once where WordPress did not support multiple recipients via SMTP. I wrote a post describing a fix.



  64. Aren Cambre says:

    Here's what I have installed:

    * Add to Any: Share/Bookmark/Email Button
    * Akismet
    * All in One SEO Pack
    * Google Analytics for WordPress
    * Peter's Collaboration E-mails
    * Viper's Video Quicktags
    * WP-reCAPTCHA

    I don't think these should interfere?

    I just did a fresh test of the plugin under two WP 2.8.4 environments — where PHP uses sendmail and where PHP directly uses SMTP. Unfortunately (for you) I was able to set up multiple moderators and successfully received multiple collaboration notifications. While I did not install your plugins, it is not obvious that they would cause any problems. My only other suggestions at this point are obvious ones: spam filters, syntax errors, version problems, etc.



  65. Aren Cambre says:

    What I don't get is why does the normal admin notification work but this doesn't?

    In case it matters, the customer's blog is hosted at godaddy–which blows, but that's a different story.



  66. Aren Cambre says:

    I disabled _all_ modules except Peter's Collaboration E-mails. I then created a special account with only Subscriber privileges, logged in to the blog using that special account, and left a comment on a blog post.

    My personal email is one of the "Default moderators", and I still did not receive an email. Yes, I did check my spam folder.

    Reply from Peter: Now that you say “left a comment” perhaps there is actually a misinterpretation of what the plugin does (and by re-reading your initial comment, I’m pretty sure I completely missed what you were asking). It e-mails so-called approvers when contributors submit new posts, not comments. You could definitely write a plugin to handle e-mailing around comments by hooking into the appropriate action. Feel free to continue this discussion via e-mail (my e-mail address is on the right sidebar).



  67. Aren Cambre says:

    Aww, shucks. I was hoping this module included comments, but I understand the limitation as comments are a lower order of content. Well, thanks anyway.



  68. jc says:

    I am getting my site ready, and have installed Collaboration Emails 1.3.3.

    I noticed this error message (see below) which is visible only when a user with collaborator status logs in. I am using WP 2.8.6, so I understand there may be issues….

    This notice appears on the Dashboard page, somewhat down the page in a box called "Collaboration notes"

    —————

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY notetime DESC LIMIT 5' at line 1]
    SELECT postid, author, notetime, notecontent FROM wp_collabnotes WHERE postid IN () ORDER BY notetime DESC LIMIT 5

    No relevant notes.

    ———–

    What do I need to do to resolve this issue, as I would really like to use your plugin at my new site to be…

    Update from Peter: This was actually an issue with the Post Notes plugin and fixed in the latest release of that plugin.



  69. Ali Erkurt says:

    Hello everyone! I've just translated the plugin to Turkish and it's ready to be downloaded. Peter, could you please add the .mo file to the plugin please? Here's the download link:

    http://www.allaboutali.com/dosyalar/peters_collaboration_emails-tr_TR.mo

    Thank you for that great plugin ;)

    Reply from Peter: Thanks! Is there also an accompanying .po file? I always include both .mo and .po in the releases so that users can edit the translations if needed.



  70. jc says:

    Peter,

    I love your collaboration and notes plugins and use them in a 2.8.6 php 5.1+ platform, they work flawlessly…but I would like my editor to be able to get emails for submissions even from those who have statuses higher than contributor, and yes I use the capabilities plugin.

    How can I do that? presently the collaboration settings only allows the selection of those who have collaborator status, and alas, the higher ups need editing supervision too.

    Reply from Peter: Presumably this means that you have some extra roles that don’t have “publish posts” capabilities? Using the default WordPress capabilities, an editor that does not have the permissions to publish his/her own posts cannot also publish other editors’ posts. Under that assumption, if you want to add other user roles to the contributor list in my plugin, you can edit the “switch” statement in the pce_usersoptions function and modify the $pce_contrib_approve_code “contributor” code to add other roles in a similar way to the “moderators” code directly below it.



  71. Erika Jurney says:

    I LOVE this plugin and have been using it for a while now. I've recently come up against a new situation and I'm wondering if the plugin could potentially handle it.

    I'm running a series of articles where I would really love to be able to put an email address in a custom field and have *that* address treated as if it were the post author's address.

    So when the post is scheduled and posted that address would get the mail.

    Does this make sense? Does it seem reasonable?

    Thanks very much,
    Erika

    Reply from Peter: This is certainly possible. If you look at this piece of code, you can replace $pce_thisuser->user_email with the contents of the custom field:

    // Send the notification e-mail for a previously-scheduled, now published post
    wp_mail($pce_thisuser->user_email, $pce_subject, $pce_body, $pce_headers);

    This custom field is probably accessed with something like get_post_meta( $pce_object->ID, 'name_of_field', true ); See the WordPress documentation on get_post_meta.



  72. ashley says:

    Hi there :)

    I'm considering a project for which this plugin might be useful, but it would be an absolute perfect fit if the Contributor could also be notified when their post was deleted. The situation would be that many people could contribute posts, but only one would be published per day, with the rest being deleted to save room in my DB (the posts would include media files). I'd love to let the unpublished Contributors know that their post is no longer in the running.

    I hope it's a feature you'd consider adding!

Speak your mind

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word