Hello, as we all know the new HTML5 and I came to know it already has email validation built in it. Now I've got to add it into my SMF, just follow these steps to do yours :)
Goto Themes>default>Register.template.php and edit it
Search for:
<input type="text" name="email" id="smf_autov_reserve1" size="30" tabindex="', $context['tabindex']++, '" value="', isset($context['email']) ? $context['email'] : '', '" class="input_text" />
And replace with:
<input type="email" name="email" id="smf_autov_reserve1" size="30" tabindex="', $context['tabindex']++, '" value="', isset($context['email']) ? $context['email'] : '', '" class="input_text" />
And we are all done, the submit button won't submit till a valid email is input :)
I just changed <input type="text" to <input type="email" :)
Hope it helps...
Except it will cause other issues because SMF is not using HTML5 for the rest of its pages, but XHTML 1.0 which does not support that.
But it works fine with mine :)
Still not going to get added in SMF 2.x.
yea, okay :)