allthebest 發表於 2020-6-3 16:27:20

Discuz x 3.2-3.4,解决手机注册邮箱验证死循环问题。

手机版开启邮件地址验证注册会出现死循环的问题。就是总是在注册,总是向邮箱地址发验证邮件,点击邮件里面的注册地址,又会重新发一份邮件到邮箱。<br /><br />打开文件template\default\touch\member下的register.htm文件,或你手机版模板对应的文件。<br /><br />在手机端的代码中修改,通常是:&nbsp;&nbsp;touch--member---register.htm<br /><br />搜索下面内容:<br /><br /><ol><li>&lt;input type=&quot;hidden&quot; name=&quot;agreebbrule&quot; value=&quot;$bbrulehash&quot; id=&quot;agreebbrule&quot; checked=&quot;checked&quot; /&gt;</ol><br /><br />在这句话的下面添加:<br /><br /><ol><li>&lt;!--{if $_G['setting']['sendregisterurl']}--&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;input type=&quot;hidden&quot; name=&quot;hash&quot; value=&quot;$_GET&quot; /&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;!--{/if}--&gt;</ol><br /><br />然后把文件上传覆盖,更新缓存,再测试手机注册就可以了。<br />手机<em>, </em>注册<em>, </em>邮件<em>, </em>文件<em>, </em>地址
頁: [1]
查看完整版本: Discuz x 3.2-3.4,解决手机注册邮箱验证死循环问题。