<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DEDECMS注册成功页面加入马上激活链接转向注册邮箱登录地址

时间:2020-12-09

DEDECMS注册成功页面,如果需要邮件验证,就需要去打开注册邮箱的网站去登陆,还得手动输入网站,本功能是在注册成功页面加入马上激活链接,点一下就能直接到所注册邮箱所在的网站,比如XXX@163.com转向mail.163.com,XXX@qq.com转向mail.qq.com。

 

步骤一:打开member/templets/reg-new3.htm,找到:

1 <a href="<?php echo $cfg_cmspath; ?>/member/">马上进入会员中心</a>

在其后面加入
 

1 <a href="http://mail.<?php echo substr(strrchr($email,'@'),1); ?>" target="_blank"><font color="red">马上激活</font></a>
 

  原理是读出用户注册时填写的email,利用字符串截取后缀,例如qq.com,或者163.com,然后加上http://mail.组成邮箱的主网站。如果用户注册时所填写的邮箱是XXX.163.com那么注册成功后马上激活的转向地址就是http://mail.163.com。QQ邮箱同理为http://mail.qq.com。

  注:此方法有一定的局限性,只适合mail.qq.com等以mail开头的邮箱地址。如有更好的方法,欢迎您来交流。

 

0
首页
案例
关于
联系