While trying to write an options page and leverage persistent, admin-configurable settings for “JP User Registration Blacklist“, I found a maze of conflicting standards and options.
This is my attempt to provide a simple, straightforward, and comprehensive example, with source code that you can copy and implement with your own plugin.
WordPress Plugin: JP User Registration Blacklist
Check out my first WordPress plugin, which you can view here:
JP User Registration Blacklist
The main purpose is to prevent spammers from registering as a user of the site.
- (Version 1.7) E-mail confirmation token
- Asks a simple math problem during registration
- If the user’s e-mail or IP address is listed in the Comments Blacklist (Discussion Settings), it prevents them from registering.
- Lists the user’s IP address in the “website” field, allowing the user to see the IP from which the user registered.
Let me know what you think!
How to embed a PDF or other type of document inside of a WordPress post.
There are multiple WordPress plugins that use Google Doc Viewer or some other third party to display PDF content. Each (modern) browser has PDF viewing capability built in, or there is a browser plugin that can view the content inline. For example, both Adobe Reader and Foxit Reader have the capability to view a PDF document if you paste the URL in to the address bar.
In the event that the browser does not have PDF viewing capability, the user will simply be prompted to download the PDF