The MO Label Inside module was created by Made to Order Software Corporation.
MO Label Inside does not depend on any other modules, however, it requires the use of a newer version of jQuery to work satisfactorilly. At this point we use the same version as found in Drupal 7.
misc/jquery.js version 1.4.4 misc/jquery.form.js version 1.3.2
Without those version, you will get errors and the expected functionality will not show up... From what we can tell, upgrading to the newer version of jQuery has no side effect on other modules (it is expected to be 99% backward compatible.)
In order to install this module:
Once the jQuery library was upgraded and the MO Label Inside module was installed, you need to go to the module settings to make use of it. By default, nothing will be changed.
We created this module to change the user forms. By default the administration forms are unchanged and we suggest you leave it that way so you can always go to the settings without having to tweak your database manually (just in case something went wrong.)
The installation settings include 3 parts:
The administration flag should not be changed.
The list of input widget patterns is documented in the administration screen. There are examples of what you can write in the list of input element patterns:
user|edit-name|focused_label=enter your login name user/login|edit-name|unfocused_label=click to enter your login name *|edit-mail|layout=front|focused_color=#999|undocused_color=#444
The current version supports a path, including <front>, one or more identifiers separated by commas, and the following optional variables:
The defaults available in the settings window can be used instead of these variables (especially useful if the majority, if not all of the input elements must be defined in the same way.)
Note that the input behavior as defined by the MO Label Inside module for Drupal 6.x is to match all the possible paths and mark all of those input as affected. If you define the same input element multiple times on the same page, the effects of this module are then undetermined.
There is no known security issue with this module. By default, only the administrator has access to the settings panel (there is a specific permission to allow/disallow users from editing the settings.)
Obviously, changing the label to something that is misleading is not a good idea, but it won't change the functionality of the text fields.
The module prints out errors whenever an invalid parameter is found. If you can, work out the patterns to enter in the "List of input elements to transform" text area on a website that's is not your main website. Once they work to your liking, copy and paste the new patterns.
* Initial version
http://www.m2osw.com/mo_label_inside contact@m2osw.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.