点评:正如标题所言织梦dedecms会员注册成功后,直接跳转到验证的邮箱地址,按照下面的验证即可实现邮箱验证,有类似需求的朋友不要错过
打开members下templets下这段代码:代码如下:
<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 <?php echo $cfg_cmspath; ?>/member/index_do.php?fmdo=email_tiao&email=<?php echo $email;?>" target="_blank">立刻进入邮箱验证</a> <a <?php echo $cfg_cmspath; ?>/member/">马上进入会员中心</a> <a <?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==''){ $url="?"; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ echo '走QQ邮箱了'; $url="?err=1&svcid=47&backurl=http%3A%2F%%2F"; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } else if($email_b==''){ $url=""; ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); } }即可实现邮箱验证