操作开始!将这段代码放入head.htm顶部模版最上面。
Copy code
<table border="0" width="100%" bgcolor="#99CC00" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#99CC00">
<div id="_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" style="width: 811; height: 39">
<p align="left"><font color="#808080">用户名:</font><input type="text" name="userid" size="18" class="ipt-txt" />
<font color="#808080">
密码:</font><input type="password" name="pwd" size="18" class="ipt-txt" />
<font color="#808080">
验证码:</font><input type="text" name="vdcode" size="8" class="ipt-txt" />
<img align="center" src="{dede:global.cfg_cmsurl/}/include/vdimgck.php" />
<button type="submit" class="btn-1">登录</button>
<a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew">注册帐号</a>
<font color="#808080"> <a href="{dede:global.cfg_memberurl/}/resetpassword.php">忘记密码?</a> <font>##/form>
</div> <!-- /userlogin -->
<script language="javascript" type="text/javascript">CheckLogin();</script> </tr>
</table>
下一步就是修改登陆后的代码!找到member/ajax_loginsta.php,修改一下!
Copy code
<?php
require_once(dirname(__FILE__)."/config.php");
AjaxHead();
if($myurl == '')
{
exit('');
}
$uid = $cfg_ml->M_LoginID;
$face = $cfg_ml->fields['face'] == '' ? $GLOBALS['cfg_memberurl'].'/images/nopic.gif' : $cfg_ml->fields['face']; |