Scott Reilly
Forum Replies Created
-
Forum: Plugins
In reply to: [Restrict Usernames] Optimization for mobile devicesHi @airathalitov, thanks for the suggestion! I have released v3.7 of the Restrict Usernames plugin, which includes the implementation of the suggested improvement.
Cheers!
Forum: Plugins
In reply to: [Auto-hyperlink URLs] Undefined index on line 452@koem: Thanks for the bug report! I just released v5.2 of the Auto-hyperlink URLs plugin which should fix this issue.
Cheers!
Forum: Plugins
In reply to: [Auto-hyperlink URLs] Plug-in age warning@ixnyne: v5.2 of the Auto-hyperlink URLs plugin has just been released.
Cheers!
Forum: Plugins
In reply to: [Auto-hyperlink URLs] Telephone numbers to urls@simclone: Thanks, I’ve made a note to consider implementing the suggestion in the future. As you can probably imagine, there are a lot of formats to take into consideration for phone numbers (especially internationally) and their variant representations.
Forum: Plugins
In reply to: [Auto-hyperlink URLs] Works inside widgets?@apponboard: What plugin are you using to get your the “Upcoming Events” widget? Auto-hyperlink URLs is generally compatible with widgets, but it really depends on what the other plugin is doing to generate its widget content.
Forum: Plugins
In reply to: [Published By] Filter Category Not Showing Published By Option@princebhalani143: Thanks for the suggestions! You should be pleased to learn that v1.3 of Published By has been released. It includes a fix so that the “Published By” column appears even if the listing of posts is being filtered. It also implements your suggestion for a dropdown to filter the listing of posts by the published-by user.
It does not implement your suggestion to be able sort the listing by the published-by users. I’m not sure how useful that would be for most users. Being able to filter posts by published-by user is handier and should hopefully suffice.
Cheers!
@jeriksson: Hi, it’s been awhile since your request but I thought I’d let you (and anyone else who happens upon this thread) know that the just-released v2.2 of Never Moderate Registered Users facilitates your request.
The following code (if put into your active theme’s functions.php file, or ideally in a site-specific plugin) will allow the plugin to permit registered users to comment without being moderated unless they post a full URL.
/**
* Always moderate comments by registered users if they mention "Google".
*
* @param bool $approved Approval status. Accepts 1, 0, 'spam', WP_Error.
* @param array $commentdata Comment data.
* @param WP_User $user The commenting user.
* @return bool
*/
function c2c_moderate_registered_user_comments_with_url( $approved, $commentdata, $user ) {
if ( $approved && ( false !== stripos( $commentdata['comment_content'], 'http://' ) || false !== stripos( $commentdata['comment_content'], 'https://' ) ) ) {
$approved = 0;
}
return $approved;
}
add_filter( 'c2c_moderate_registered_user_comments_with_url', 10, 3 );
Forum: Plugins
In reply to: [Never Moderate Registered Users] Add new filter@jsmo: I know this response is coming late, but if you (or anyone that comes across this) still needs the solution, the following can be added to your active theme’s functions.php (or even better, a site-specific plugin).
/** * Require that a user have 'mbactive' capability in order to be * trusted enough not to be moderated. * * @param $args $caps Array of trusted capabilities. If blank, then any user registered on the site is trusted. * @return array */ function dont_moderate_mbactive( $caps ) { $caps[] = 'mbactive'; return $caps; } add_filter( 'c2c_never_moderate_registered_users_caps', 'dont_moderate_mbactive' );Forum: Plugins
In reply to: [Allow Multiple Accounts] GDPR compliance Questions@zulumaster: Yes, the plugin is GDPR-compliant. The answer to all your questions in the original post is “no”.
Cheers!
Forum: Reviews
In reply to: [Remember Me Controls] Misses a few things…@crawlinson: Thanks for the review!
Do you happen to know which login widget you were using? WordPress itself doesn’t include a login widget, so the widget you’re referring to was likely provided by a plugin or theme.
I’ve recently released v1.7 of the plugin which adds support for login widgets provided by some popular login widget plugins:
* BuddyPress
* Sidebar Login
* Login Widget With ShortcodeAlso, could you elaborate on the “extra white space and… gap”? Is this for the widget you’re talking about?
Forum: Reviews
In reply to: [Remember Me Controls] Still working great!@kent-brockman: Thanks for the review! I released v1.7 of the plugin recently.
Forum: Plugins
In reply to: [Years Ago Today] CSS Bleed on WordPress DashboardHey @beaulebens! Thanks for reporting the issue!
You were correct; one of the CSS rules omitted a plugin-specific specifier that was needed to prevent the rule from affecting other widgets. Fixed and released in v1.2.1 of the plugin.
Cheers!
Forum: Plugins
In reply to: [Optin Comment Notifications] Add option to other users' profilesAshod,
The email option provided by the plugin is completely separate from the email options provided by WordPress itself.
The email settings on the Settings > Discussions admin page, consisting of the two checkbox options in the “Email me whenever” section (“Anyone posts a comment” and “A comment is held for moderation”) are provided by WordPress and are unrelated to anything handled by the plugin. Those options are provided even if the plugin is not installed, and are not affected by the plugin when it is installed.
The plugin only provides the option “Email me whenever a comment is submitted to the site.” in a user’s profile (in the section “New Comment Emails”).
If you want the test user to receive email notifications for new comments, the user must visit their own profile (or you as the administrator need to edit their profile) to check the “Email me whenever a comment is submitted to the site.” setting.
The Settings > Discussions admin page only relate to the designated admin email address getting email notifications. (Which, again, is separate from anything this plugin handles.)
Does that help clarify things?
Forum: Plugins
In reply to: [Hide Broken Shortcodes] Seem not workHi @oanhtran1804,
The plugin has no settings page. It just works once activated. However, it only works for specific (documented) places: for post content, post excerpts, and widget text.
It does not work for text in menus. The Visual Composer plugin you appear to be using sounds like it enables shortcodes to work in menus, which is not default behavior for WordPress.
A few lines of code could be added by you to customize the Hide Broken Shortcodes plugin to work in other places (such as for menus), but it requires knowing the most appropriate hook for the field where you have put in shortcodes. The documentation for the filter ‘hide_broken_shortcodes_filters’ provides an example for what the code should be once the hook is known (which I don’t know enough about based on what you provided).
Cheers!
Forum: Plugins
In reply to: [Linkify Text] PHP 7 Compatibility – preg_replaceHi @dylanfitzger,
Thanks for the report! However, I believe the issue being reported is actually a shortcoming of the script or tool doing the validation.
The plugin file does not use the /e modifier, only /i, /u, /S.
More than likely the code scanner is looking at this line of code (line 302 of the current v1.8 release):
$text = preg_replace( "~{$regex}~{$preg_flags}", $new_text, $text, $limit );The code scanner is likely seeing the “e” in the variable
$preg_flags(which appears in the position a modifier is expected forpreg_replace()). But that’s simply a character in a variable.What code scanner are you using?
I have not encountered compatibility warnings or errors while running the plugin under PHP7. (There are some warning that will be fixed in the newest version, but aren’t due to PHP7.)