Peter
Forum Replies Created
-
Yes, using the “Moderators by post type and taxonomy” area on the settings page, you can choose to specify moderators by category.
The only possible causes that come to mind on that are either: your version of the plugin is older than 2.6.0 (in which case be sure to upgrade!); or that you need to include the opening and closing “[variable]” tags.
Hi Karl,
Exact syntax for the URL box is essentially this:
[variable]http_referer[/variable]
Are you having trouble with referrer redirecting only or with any redirects?
Forum: Plugins
In reply to: [Peter's Collaboration E-mails] How to Stop Getting Post to ReviewDisabling the plugin should be sufficient. Removing the plugin files would for sure do the trick.
If you’re still receiving e-mails, then it’s for some reason still enabled, the e-mails are coming from somewhere else, or there’s a problem with the mail server.
Hi, I suggest asking the author of the Red Rokk plugin to define the $user object, and then add the $user object as the third parameter of the function call on line 1526 of login.php. They’ll have to best determine the exact call to define the object, as they are most familiar with the surrounding code.
Forum: Plugins
In reply to: [Peter's Collaboration E-mails] Per-post email notificationsAre you referring to getting an e-mail notification when an already public post is updated? I would guess that there are other plugins out there that would do such a thing. They would capture the general page update action, not the “status transition” that is closer to the collaboration system.
Hi, I would suggest checking out this plugin: http://wordpress.org/extend/plugins/peters-login-redirect/
Forum: Plugins
In reply to: [LoginWP (Formerly Peter's Login Redirect)] Redirect based on user Group.Currently the plugin only supports roles and capabilities. Are you using a plugin to create user groups? Any redirect logic would have to be customized to fit that other plugin, and you could extend the redirect plugin to add extra logic:
http://wordpress.org/extend/plugins/peters-login-redirect/other_notes/
Hi,
On Line 60 of the latest version, there this setting, and you can add other roles to it so that they can receive e-mails:
// Which roles on your site can approve posts // Typically you do not have to edit this unless you have custom roles and capabilities $pce_moderator_roles = array(); $pce_moderator_roles[] = 'administrator'; $pce_moderator_roles[] = 'editor';(It’s been available since version 1.4.0, but the line numbers will be different)
Thanks for sharing! I should make that optional in a future release.
BuddyPress might have its own login redirect function, similar to how it handles post-registration redirect. You probably have to implement a solution similar to this one, but for the login hook (which I haven’t looked into):
Unfortunately not. This plugin only deals with redirecting upon login; not with the underlying permissions. However, there are likely lots of other plugins that focus on the permission side of things.
Great! Thanks for… collaborating on this 🙂
Looks like you’re using BBPress. Try adding this to the bottom of the login redirect plugin file (before the closing “?>” tag:
// For overriding BBPress redirect add_filter( 'bbp_user_register_redirect_to', array( 'rulRedirectPostRegistration', 'post_registration_wrapper' ), 10, 1 );Great tip on using has_term()!
I’ll look at rewriting pce_get_post_type_moderators() to use has_term() instead of checking POST variables directly. I’ll have to carve out some time to implement it and test all of the cases, so that will take a while. However, this is the first version:
function pce_get_post_type_moderators( $post_object ) { global $wpdb, $pce_db_collabrules; $post_type_moderators = array(); // Preserve this post object no matter what type it is so that we can check taxonomies $current_post_object = $post_object; // Get this post's taxonomies // First, find out its post type // If post type is a revision, fetch the post's parent if( 'revision' == $post_object->post_type ) { $post_object = get_post( $post_object->post_parent ); } // Get moderators for $post_object->post_type $post_type_rules = $wpdb->get_results( 'SELECT taxonomy, term, moderators FROM ' . $pce_db_collabrules . ' WHERE post_type = \'' . $post_object->post_type . '\'', OBJECT ); if( $post_type_rules ) { foreach( $post_type_rules as $post_type_rule ) { // Note that terms are case sensitive! if( 'all' == $post_type_rule->taxonomy || has_term( $post_type_rule->term, $post_type_rule->taxonomy, $current_post_object ) ) { $post_type_moderators[] = $post_type_rule->moderators; } } } return $post_type_moderators; }