正如标题所言织梦dedecms会员注册成功后,直接跳转到验证的邮箱地址,按照下面的验证即可实现邮箱验证,有类似需求的朋友不要错过
打开members下templets下reg-new3.htm这段代码:
代码如下:
<div class="bor"><div class="<?php echo ($cfg_mb_reginfo == 'Y')? '' : 's';?>tip3"></div>
<p class="success" style="margin-top: 25px;">注册成功!<?php echo $uname=empty($uname)? '' : '您的用户名:<font color="#ff6600">'.$uname.'</font>,';?>您已成为本站的正式会员!
<?php if($cfg_mb_spacesta=="-10") echo '<font color="#ff6600">由于系统开启了邮件审核机制,因此你的帐号需要审核后才能发信息!</font>
';?>
<font color="#ff6600"><span id="loadtime" style=" font-weight:bold">10</span></font>秒钟后自动转到会员中心!
<a href="<?php echo $cfg_cmspath; ?>/member/index_do.php?fmdo=email_tiao&email=<?php echo $email;?>" target="_blank">立刻进入邮箱验证</a>
<a href="<?php echo $cfg_cmspath; ?>/member/">马上进入会员中心</a> <a href="<?php echo $cfg_cmspath; ?>/">返回网站首页</a></p></div>
点击立刻进入邮箱验证的时候,传值,到index_do.php,新建一个else if
代码如下:
else if($fmdo=='email_tiao')
{
$email=$_GET['email'];
$email_arr=explode("@",$email);
$email_b=$email_arr[1];
if($email_b=='qq.com'){
$url="?";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='163.com'){
$url="http://mail.163.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='vip.163.com'){
$url="http://vip.163.com/?b10bpj1yhsy";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='sina.com'){
$url="http://mail.sina.com.cn/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='vip.sina.com'){
$url="http://mail.sina.com.cn/cgi-bin/viplogin.php";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='sohu.com'){
$url="http://login.mail.sohu.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='tom.com'){
echo '走QQ邮箱了';
$url="http://pass.tom.com/login.php?err=1&svcid=47&backurl=http%3A%2F%2Ftom.com%2F";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='163.net'){
$url="http://mail.163.net/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='263.net'){
$url="http://mail.263.net/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='21cn.com'){
$url="http://public.webmail.21cn.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='yahoo.com.cn'){
$url="";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='126.com'){
$url="http://mail.126.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='eyou.com'){
$url="http://www.eyou.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='xinhuanet.com'){
$url="http://mail.xinhuanet.com/portal/mail.xinhuanet.com/index.jsp?locale=zh_cn";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='hotmail.com'){
$url="";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='msn.com'){
$url="";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
}
即可实现邮箱验证
如果本文对你有帮助,欢迎打赏本站