本帖最后由 otherbank 于 2012-10-31 17:56 编辑
QQ互联为简化注册流程,不强制用户填写密码,很多站长为保障QQ用户不登陆QQ的情况也能登录论坛,需要QQ互联注册时论坛账户密码必填的修改方法。(官方不推荐修改代码的方式实现个性化需求,会给升级等带来很多不便)
一﹑
打开文件source/plugin/qqconnect/template/module.htm
搜索- $('{$_G['setting']['reginput']['password']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['username']}').outerHTML += '$js1';
- $('{$_G['setting']['reginput']['password']}').required = 0;
- $('{$_G['setting']['reginput']['password2']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['password2']}').required = 0;
复制代码 更改为- //$('{$_G['setting']['reginput']['password']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['username']}').outerHTML += '$js1';
- $('{$_G['setting']['reginput']['password']}').required = 1;
- //$('{$_G['setting']['reginput']['password2']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['password2']}').required = 1;
复制代码 二﹑
打开文件 source/module/member/member_connect_register.php
搜索- C::t('#qqconnect#common_member_connect')->insert(array(
- 'uid' => $uid,
- 'conuin' => $conuin,
- 'conuinsecret' => $conuinsecret,
- 'conopenid' => $conopenid,
- 'conispublishfeed' => $conispublishfeed,
- 'conispublisht' => $conispublisht,
- 'conisregister' => '1',
- 'conisqzoneavatar' => $is_qzone_avatar,
- 'conisfeed' => '1',
- 'conisqqshow' => $is_use_qqshow,
- ));
复制代码 更改为- C::t('#qqconnect#common_member_connect')->insert(array(
- 'uid' => $uid,
- 'conuin' => $conuin,
- 'conuinsecret' => $conuinsecret,
- 'conopenid' => $conopenid,
- 'conispublishfeed' => $conispublishfeed,
- 'conispublisht' => $conispublisht,
- 'conisregister' => '1',
- 'conisqzoneavatar' => $is_qzone_avatar,
- 'conisfeed' => '1',
- 'conisqqshow' => $is_use_qqshow,
- ));
复制代码 三﹑
打开source\plugin\qqconnect\connect\connect_login.php
搜索- $utilService->redirect($referer);
复制代码 更改为- dheader('Location:member.php?mod=connect');
复制代码 转自安装试用区 64243354 的帖子,原帖《x2.5使用QQ互联注册跳转到完善用戶信息以及完善信息中强制输入论坛独立密码(更新新版)》
OK!
|