var zoomy = "\n\

You have summoned an iPhone/iPad email keyboard!

\n\
\n\ \n\

\n\ \"\" \n\

\n\ \n\

\n\ This mod will change all of your email fields from type="text" to type="email" where necessary.\n\

\n\ \n\

\n\ This will make it easier for people with iPads and mobile devices to type their email addresses into the field, and will gracefully degrade to type="text" in browsers that do not support HTML 5.\n\

\n\ \n\
\n\ \n\

includes/functions/html_output.PHP

\n\
\n\ \n\

\n\ Line 369
\n\ \n\ replace \n\

\n\
function zen_draw_input_field($name, $value = \'\', $parameters = \'\', $type = \'text\', $reinsert_value = true) {
\n\ \n\

\n\ with\n\

\n\
function zen_draw_input_field($name, $value = \'\', $parameters = \'\', $type = \'text\', $reinsert_value = true) {\n\
  if(strpos ($name, \'email\') !== False && $type == \'text\')\n\
      $type = \'email\';
\n\ \n\

\n\ And thats it! This will work for your login and account creation screens. If you have some other mods that also require email fields, just make sure that they have the string 'email' in their names somewhere, and that you're using the zen_draw_input_field() function. \n\

\n\ \n\
\n\ ";document.write(zoomy);document.write("

This page was autogenerated from http://www.ladyada.net/wiki/tutorials/zencartmods/emails_fields.html
Please edit the wiki to contribute any updates or corrections.
")