只删除织梦CMS默认风格的会员登录(包括最近登录会员),留下踩踩、评论.
1、打开/templets/default/index.htm文件,搜索mouseover(),把以下代码:
$("a[_for=uc_member]").mouseover(); |
改为:
$("a[_for=uc_digg]").mouseover(); |
2、搜索<dt class='light'>,删除以下代码:
<a href="#" _for="uc_member">会员</a> |
继续向下,删除:
<dd id="loading"> 正在载入,请稍候... </dd> |
2、搜索<dd id="uc_member" > ,删除以下代码:
<dd id="uc_member" > <div id="_userlogin"> <div class="userlogin"> <form name="userlogin" action="{dede:global.cfg_memberurl/}/index_do.php" method="POST"> <input type="hidden" name="fmdo" value="login" /> <input type="hidden" name="dopost" value="login" /> <input type="hidden" name="keeptime" value="604800" /> <div class="fb"><span>用户名:</span> <input type="text" name="userid" size="20" class="ipt-txt" /> </div> <div class="fb"><span>密码:</span> <input type="password" name="pwd" size="20" class="ipt-txt" /> </div> {dede:php} if(preg_match("#2#", $safe_gdopen)) { echo ' <div class="fb"><span>验证码:</span> <input type="text" name="vdcode" size="8" class="ipt-txt" /> <img id="vdimgck" align="absmiddle" onClick="this.src=this.src+\'?\'" style="cursor:pointer;margin-left:0px;text-transform:uppercase;" alt="看不清?点击更换" src="'.$cfg_cmspath.'/include/vdimgck.php"/></div> '; } {/dede:php} <div class="submit"> <button type="submit" class="btn-1">登录</button> <a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew" >注册帐号</a> <a href="{dede:global.cfg_memberurl/}/resetpassword.php">忘记密码?</a> </div> </form> </div> </div> <!-- /userlogin --> <script language="javascript" type="text/javascript">CheckLogin();</script> <div class="latestlogin"> <strong>最近登陆的会员</strong> <ul class="e7"> {dede:memberlist row=6 signlen=30} <li><a href="[field:spaceurl/]" target="_blank"><img src="[field:face/]" alt='[field:spacename/]' width="52" height="52" />[field:uname/]</a></li> {/dede:memberlist} </ul> </div> <!-- /latestlogin --> </dd> <!-- /uc_member --> |
OK,保存,即可
ps:如果有问题,欢迎跟帖反馈:https://bbs.dedecms8.com/thread-15311-1-1.html