In the beta1 version of PamelaWare for WordPress, the following features were added/modified from Kim Cameron’s original code:
- Code was turned into an official WordPress plugin, able to be activated from the plugin management menu.
- Database alterations are now part of plugin activation.
- Debug print statements have been replaced with a call to a ‘printDebug’ function — currently this function just prints to screen, but this could now be altered in a single place to write to a file, or to check the incoming IP address before writing.
- An error handler was created.
- User messages were altered to follow the standard WP look & feel.
- Localization has been taken into consideration – all printed statements have been written with the _e() function, and large html chunks such as error messages and user messages are grouped by language code.
- The infocard-post.php file was chunked up into separate task-related functions – hopefully this will aid collaboration, as each chunk can be separately examined and improved.
- User-facing messages have been split up into 3 files, roughly approximating a model-view-control method. One file contains a bare html template – this template calls out to a class file for dynamic functionality. Design is done through CSS, stored in a separate file.
General Notes:
- My apologies in advance for the horrible CSS, hopefully someone a little more artistic can spruce up the pages later
- Beta1 now works with WordPress v2.1 – this site is an example.
- This version has not fixed the code such that users can simultaneously possess a username/password combination and an Information Card. Right now, the best way to use this plugin is still as Cards only. This will be fixed soon.
- See the to-do list for all the other things I can’t wait to add to this version
