cojennin
Forum Replies Created
-
Forum: Plugins
In reply to: [Edit Flow] I think this just crashed my site?Do you have access to the PHP error logs for your test site? Would be helpful in diagnosing the issue.
Forum: Plugins
In reply to: [Edit Flow] I think this just crashed my site?Did the site crash immediately after disabling a plugin? If so, do you remember the name of the plugin you disabled that caused it to crash?
Forum: Plugins
In reply to: [Edit Flow] Normal "Post Status" not showing upIf you create a new post with the status of “Draft”, does the “Post Status” column show up?
Forum: Plugins
In reply to: [Edit Flow] Edit Flow adds Category to Geodirectory causing 404 errorDo you have other plugins enabled on your site? If you disable all of them except Edit Flow, does the issue still occur?
Forum: Plugins
In reply to: [Edit Flow] Exclude category or author from calendar view and storyHere’s an example of a plugin that extends Edit Flow to exclude the user with the ID “2” from the Calendar and Story Budget. Do you know the user ID of the user you want to exclude? You could replace the “2” with the user ID of that user and it should exclude them from the Calendar and Story Budget.
There’s some possibility in this idea. It might be nice to easily exclude/include certain user’s or user groups from the calendar or story budget as a user preference (similar to a screen option). Will think more on it.
Let me know if you need more help!
Forum: Plugins
In reply to: [Edit Flow] Pupils=grouped contributors, teacher=group's editorThat should work, but you’ll have to extend Edit Flow.
You can create multiple User Groups with one Editor and many pupils. When a pupil creates a post, you can auto-subscribe the Editor of their User Group to that post. This code auto-subscribes the whole Edit Flow User Group. You would need to look for the Editor of that User Group and only subscribe the Editor to follow that post. If you subscribed the whole User Group, other pupils would get emails.
Does that help?
Forum: Plugins
In reply to: [Edit Flow] Exclude category or author from calendar view and storyYou should be able to create a plugin that adds a filter on ef_calendar_posts_query_args.
Forum: Plugins
In reply to: [Edit Flow] Add User to User groupUnfortunately I am not very familiar with BuddyPress.
By default, only a user with the “Administrator” role can add users and remove users from an Edit Flow User Group (in the Edit Flow settings screen). By default, user’s with level_0 do not appear in the list. If you’d also like user’s with level_0 to appear, you can install https://gist.github.com/cojennin/f6f181287fd48beb3df91bdaf4a22288 as a plugin.
By default only a user with the “Administrator”, “Editor” or “Author” role can add and remove Edit Flow User Groups and User’s in the “Notifications” section of a WordPress post. If you’d also like user’s with the “Contributor” role to add and remove Edit Flow User Groups and User’s, you can install https://gist.github.com/cojennin/d4c49f20bcc4365edd8de8c050f8e4f7 as a plugin.
Does that help?
Forum: Plugins
In reply to: [Edit Flow] Add User to User groupI created a new usergroup and added two users (not admins).
What are the roles of the two users you added to the usergroup?
Forum: Plugins
In reply to: [Edit Flow] Notification to author to write postHeh, sounds like the same gripe of every editor I’ve ever met.
Have you tried https://wordpress.org/plugins/email-reminder/? Have not used it myself so can’t vouch for it, but looks like it might get you somewhat of the way there.
Forum: Plugins
In reply to: [Edit Flow] Notification to author to write postDid you take a look at the section on extending Edit Flow? There’s a section on auto-subscribing usergroups to follow a post when the post is saved as a certain status.
In that example, when the post is saved with a status of “draft”, it will subscribe the usergroups to which the author of the post belongs to receive notifications.
An example for it’s usage in a plugin can be found here: https://gist.github.com/cojennin/fa17eaca6e290f1086cc12ef9da138d3 (when any post is saved with a status of “pending”, this plugin will subscribe the default “Copy Editors” usergroup that comes with Edit Flow to receive notifications)
and another example here: https://gist.github.com/cojennin/45ac4c91d6319f8f51060a5320d28f86 (when any post is saved with a status of “pending”, this plugin will subscribe every user with the WordPress role “editor” to receive notifications for that post).
Do either of these plugins satisfy your requirements for receiving a reminder about posts your authors are working on?
Forum: Plugins
In reply to: [Edit Flow] Email Nofitication based on rolesAh, gotcha.
Edited the gist: https://gist.github.com/cojennin/45ac4c91d6319f8f51060a5320d28f86
That should subscribe all users with the WordPress role of ‘editor’ to the post being saved as pending. Want to give it a test?
Misunderstood what you were trying to do. You were close with your code snippet, just need to use
save_post_following_usersinstead offollow_post_usergroupssince you want to follow WordPress roles.Forum: Plugins
In reply to: [Edit Flow] Image Upload NotificationOoph. Caught red-handed.
It’s something that definitely needs work. There’s a section on the website with code snippets for extending Edit Flow, but standard documentation is lacking.
If you ever have a few minutes and wish to pay this one forward, would be great to have a PR to kick off the documentation process. Maybe just documenting one of the functions in that gist
get_usergroup_byorget_following_usergroups.Bare bones, I’d imagine in Github the documentation structure might look like:
- common - language - modules - tests - docs - edit_flow.md (documenting functions, their arguments, return values and use cases) - modules - notifications.md (documenting functions, their arguments, return values and use cases) - user-groups.md (documenting functions, their arguments, return values and use cases)But open to suggestions.
Forum: Plugins
In reply to: [Edit Flow] Image Upload NotificationGotcha. Updated the gist: https://gist.github.com/cojennin/31c877280c803d7cc747edd36ca3a7ef
That should grab all the user groups (note: it does not grab individually subscribed users) on the post and send emails to every individual in a user group that is subscribed to the post.
It also checks to make sure the notifications and user groups modules are enabled. If one or the other is disabled, it won’t send notifications.
edit: clarification
Forum: Plugins
In reply to: [Edit Flow] Image Upload NotificationIf you want to notify a certain usergroup when an attachment is added to a post, you could try something like https://gist.github.com/cojennin/31c877280c803d7cc747edd36ca3a7ef.
This would (fingers crossed, haven’t tested it) notify all my copy editors that an attachment has been added to a post (the attachment is not necessarily an image!).
Would something like that suffice? How do you see a notification on an image being uploaded to a post fitting into your current workflow?