Ecshop 中用户注册项将QQ设置为必填项

在languages/zh_cn/user.php中找到/* user_passport.dwt js语言文件 */

新增: $_LANG['passport_js']['qq_empty'] = ‘-QQ不能为空’;
Js/user.js:
function register()在此函数中修改:
//不能为空
if (qq.length == 0)
{
  msg += qq_empty + ‘\n’;
}
//数字
else   if ((!Utils.isNumber(qq)))
{
msg += qq_invalid + ‘\n’;
  }
//个数限制 
else if (qq.length <5 )
{
  msg += qq_invalid + ‘\n’;
}
else if (qq.length >10)
{
msg += qq_invalid + ‘\n’;
}

Comments (2)

留恋十二月 18th, 2009 at 12:15 下午

这个不错。。可以联系买家了。

Domi屋四月 10th, 2010 at 1:45 下午

这样更可以方便的联系买家

Leave a comment

Your comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word