Discuz! X-discuz x2中QQ互联如何添加密码

Discuz! X-discuz x2中QQ互联如何添加密码

清晨说ぺ晚安 发布于 2017-06-12 字数 272 浏览 1047 回复 2

大家知道dz的QQ互联是无密码登录的
但是我在恐惧腾讯这样把用户都拦走了
慢慢的我们的用户就是云用户
但是云又不是我们控制
是腾讯在控制
我对腾讯的插件不是很感冒
大家赐教一下

其实大家解决了这个,能不能顺便把新浪插件的互联也修改了???

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

晚风撩人 2017-10-08 2 楼

腾讯在这点上确实不够厚道,不过可以在设置上要求客户输入密码进行登录。
1. 打开文件source/plugin/qqconnect/template/module.htm
(1) 查找
$('{$_G['setting']['reginput']['password']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
$('{$_G['setting']['reginput']['password']}').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;

2 打开文件 source/module/member/member_connect.php
查找
$ctl_obj->setting['ignorepassword'] = 1;
将它注释掉,或者删除
3 打开文件 source/module/member/member_register.php
查找
DB::query("INSERT INTO ".DB::table('common_member_connect')." (uid, conuin, conuinsecret, conopenid, conispublishfeed, conispublisht, conisregister, conisqzoneavatar, conisfeed) VALUES ('$uid', '$conuin', '$conuinsecret', '$conopenid', '$conispublishfeed', '$conispublisht', '1', '$is_qzone_avatar', '$user_auth_fields')");

修改成
DB::query("INSERT INTO ".DB::table('common_member_connect')." (uid, conuin, conuinsecret, conopenid, conispublishfeed, conispublisht, conisregister, conisqzoneavatar, conisfeed) VALUES ('$uid', '$conuin', '$conuinsecret', '$conopenid', '$conispublishfeed', '$conispublisht', '0', '$is_qzone_avatar', '$user_auth_fields')");

参考网络:http://www.orzcc.com/2011/07/641675.html

瑾兮 2017-09-20 1 楼

打开文件source/plugin/qqconnect/template/module.htm

(1) 查找

$('{$_G['setting']['reginput']['password']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
$('{$_G['setting']['reginput']['password']}').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;

2 打开文件 source/module/member/member_connect.php

查找

$ctl_obj->setting['ignorepassword'] = 1;

将它注释掉,或者删除

3 打开文件 source/module/member/member_register.php

查找

DB::query("INSERT INTO ".DB::table('common_member_connect')." (uid, conuin, conuinsecret, conopenid, conispublishfeed, conispublisht, conisregister, conisqzoneavatar, conisfeed) VALUES ('$uid', '$conuin', '$conuinsecret', '$conopenid', '$conispublishfeed', '$conispublisht', '1', '$is_qzone_avatar', '$user_auth_fields')");

修改成

DB::query("INSERT INTO ".DB::table('common_member_connect')." (uid, conuin, conuinsecret, conopenid, conispublishfeed, conispublisht, conisregister, conisqzoneavatar, conisfeed) VALUES ('$uid', '$conuin', '$conuinsecret', '$conopenid', '$conispublishfeed', '$conispublisht', '0', '$is_qzone_avatar', '$user_auth_fields')");