Linux 软件免费装
Banner图

Restrict Usernames

开发者 coffee2code
更新时间 2018年6月21日 13:36
捐献地址: 去捐款
PHP版本: 4.7 及以上
WordPress版本: 4.9
版权: GPLv2 or later
版权网址: 版权信息

标签

privacy security registration buddypress multisite signup users coffee2code username restrictions

下载

1.0 1.1 3.0 3.0.1 3.1 3.2 3.3 3.4 3.4.1 3.5 3.5.1 3.6 3.7

详情介绍:

This plugin allows you to restrict the usernames that new users may use when registering for your site. If open registration is enabled for your site (via Settings -> General -> Membership ("Anyone can register")), WordPress allows visitors to register for an account on your blog. By default, any username they choose is allowed so long as it isn't an already existing account and it doesn't include invalid (i.e. non-alphanumeric) characters. Possible reasons for wanting to restrict certain usernames: When attempting to register with a restricted username, the visitor will be given an error notice that says: ERROR: This username is invalid. Please enter a valid username. NOTE: This plugin does not put any restrictions on usernames that the admin chooses for users when creating user accounts from within the WordPress admin. This only restricts the names that users choose themselves when registering for your site. SPECIAL NOTE: Many membership plugins implement their own user registration handling that often bypasses checks (and hooks) performed by WordPress. As such, it is unlikely that the plugin is compatible with them without special plugin-specific amendments. Compatible with Multisite and BuddyPress as well. Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

安装:

  1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting
  2. Install via the built-in WordPress plugin installer. Or download and unzip restrict-usernames.zip inside the plugins directory for your site (typically wp-content/plugins/)
  3. Activate the plugin through the 'Plugins' admin menu in WordPress. In Multisite, Network Activate the plugin.
  4. Go to the 'Users' -> 'Name Restrictions' admin settings page (which you can also get to via the 'Settings' link next to the plugin on the 'Manage Plugins' page) and specify username restrictions. On a Multisite install, go to 'My Sites' -> 'Network Admin' -> 'Users' -> 'Name Restrictions'.

屏幕截图:

  • A screenshot of the plugin's admin settings page.

升级注意事项:

3.7 Recommended minor update: bugfix for BuddyPress & Multisite; bugfix to make restricted usernames and conditions case-insensitive; updated plugin framework to v048; compatibility is now WP 4.7-4.9; updated copyright date (2018); added README.md; and more. 3.6 Recommended update: improved support for localization; verified compatibility through WP 4.5; removed compatibility with WP earlier than 4.1; updated copyright date (2016) 3.5.1 Recommended bugfix release: fixes compatibility for versions of WordPress older than 4.1 3.5 Minor update: fixed bug with error message reporting; added more unit tests; updated plugin framework to 039; noted compatibility through WP 4.1+; added plugin icon 3.4.1 Recommended bugfix: fixed bug that caused admin error/notice messages to appear twice 3.4 Recommended update: minor bug fixes; added ability to enforce username minimum and maximum length; added unit tests; updated plugin framework; compatibility now WP 3.6-3.8+ 3.3 Recommended update. Fixed bug with partial username restrictions; added filter to allow adding custom restrictions; added tool to test username restrictions; noted compatibility through WP 3.5+; and more. 3.2 Recommended update. Added Multisite compatibility; noted WP 3.3 compatibility; dropped support for versions of WP older than 3.1; updated plugin framework; and more. 3.1 Recommended update. Added BuddyPress compatibility; noted WP 3.2 compatibility; dropped support for versions of WP older than 3.0; updated plugin framework; and more. 3.0 Recommended update. Highlights: re-implementation using custom plugin framework; full localization support; misc non-functionality documentation and formatting tweaks; renamed class; verified WP 3.0 compatibility; dropped support for versions of WP older than 2.8.

常见问题:

So if I restrict a username from being registered, does that mean that username can't be used at all?

No. The plugin only prevents the usernames visitors can use when registering for an account. An admin that has user creation privileges can still create a user account, from within the admin, using any otherwise valid username. Username restrictions don't apply to admins.

Does this plugin provide any default username restrictions?

No. = If I specify restricted usernames and a required username substring, must all criteria be matched by potential usernames? Yes.

What if I define username restrictions that some existing user accounts would violate?

Nothing happens to those accounts. The plugin does not do anything with existing accounts. Existing usernames are not checked against any username restriction rules; that only happens for accounts being newly registered on the front-end.

Does the plugin inform users about restrictions when they are about to register for the site?

No. A future version will likely add a way for you to optionallly specify a message to be displayed to those registering for a user account.

Does the plugin indicate what specific restriction was violated for a failed registration?

No. A generic "ERROR: This username is invalid. Please choose another." is reported.

Does this work with the membership plugin I have running on my site?

Most likely not. Many membership plugins implement their own user registration handling that often bypasses checks (and hooks) performed by WordPress. As such, it is unlikely that the plugin is compatible with them without special plugin-specific amendments.

Is this Multisite compatible?

Yes.

Is this BuddyPress compatible?

Yes, for at least BuddyPress 1.2+ through 2.6+, and perhaps other versions.

Does this plugin include unit tests?

Yes.

更新日志:

3.7 (2018-06-19) Highlights: Details: 3.6 (2016-05-03) Highlights: Details: 3.5.1 (2015-04-16) 3.5 (2015-02-20) 3.4.1 (2014-01-15) 3.4 (2014-01-14) 3.3 3.2 3.1 3.0.1 3.0 2.0.1 2.0 1.1 1.0