K9 通用版 博客版 主题版 地方门户版 企业版 |   企业(ASP) 分类 使用 分享 疑问 模板 建议 帮助 错误 其他
+新建主题 [Ajax]
填写帐号密码即可完成注册
+新建话题 最新回复排序 最新主题排序 精华帖子

怎么在首页输入用户密码登录呢?

12Next >

xineni 发表于:11-07-13 10:14 [添加收藏] 楼主 [回复] #Top#
xineni 人气:13 积分:56 金币:389
如题,

copy了珲春123 顶部的登录代码,用不了 。。求帮助
气象万千 发表于:11-07-13 10:19 沙发 [回复] #Top#
气象万千 人气:140 积分:902 金币:4255
KC元老
直接复制代码估计没用的,他用的是标签输出(相当于函数)

这个标签输出有时会有问题的,我用的KC3.0版,用户导航模块经常出不来。
Gougliang 发表于:11-07-13 10:32 编辑于:07-13 10:33 板凳 [回复] #Top#
Gougliang 人气:1401 积分:11242 金币:13771
VIP 管理团队 灌水狂人
表单Action部分参考默认的模板语句。

登陆之后的状态转变参考:http://help.kingcms.com/tag/user.html
xineni 发表于:11-07-13 11:10 4楼 [回复] #Top#
xineni 人气:13 积分:56 金币:389
Reply: 板凳
验证码不出现了,这个 。。?
xineni 发表于:11-07-13 11:13 5楼 [回复] #Top#
xineni 人气:13 积分:56 金币:389
怎么在首页输入用户密码登录呢?[图1]

看看这个,代码应该怎么弄  
Gougliang 发表于:11-07-13 11:14 6楼 [回复] #Top#
Gougliang 人气:1401 积分:11242 金币:13771
VIP 管理团队 灌水狂人
不把代码贴上来,贴个截图上来干嘛……
xineni 发表于:11-07-13 11:51 7楼 [回复] #Top#
xineni 人气:13 积分:56 金币:389
<div class="login">
        <div class="login_mune"><a href="#"><img src="{config:system.inst/}qixian/images/L2_1.jpg" width="256" height="39" /></a></div>
        <div class="login_cen">
          <form action="" method="post" id="login">
            <table width="256" height="164" border="0" cellspacing="7" cellpadding="0">
              <tr>
                <td width="67" height="31" align="right">用户名:</td>
                <td width="168"><input style=" border:0; background:url(qixian/images/L2-4.jpg) no-repeat; width:150px; height:27px; padding-left:6px; line-height:27px;" type="text" id="username" name="username" value="" maxlength="15" /></td>
              </tr>
              <tr>
                <td height="31" align="right">密码:</td>
                <td><input style=" border:0; background:url(qixian/images/L2-4.jpg) no-repeat; width:150px; height:27px; padding-left:6px; line-height:27px;" type="password" id="userpass" name="userpass" maxlength="30" /></td>
              </tr>
              <tr>
                <td height="31" align="right">验证码:</td>
                <td>
                <input style=" border:0; background:url(qixian/images/L2-5.jpg) no-repeat; width:59px; height:27px; text-align:center; line-height:27px; float:left;" type="text" maxlength="4" name="k_verify" id="k_verify"/>
                </td>
              </tr>
              <tr>
                <td height="31" colspan="2">
                <input style=" width:76px; height:25px; border:0; cursor:pointer; background:url(qixian/images/L2-7.jpg) no-repeat; margin-left:15px;" type="submit" value=" " onclick="$.kc_ajax({URL:'/user/manage.php',CMD:'login',FORM:'login'});return false;" />
                <input style=" width:76px; height:25px; border:0; cursor:pointer; background:url(qixian/images/L2-8.jpg) no-repeat; margin-left:35px;" type="submit" value=" " onclick="return false;" /></td>
              </tr>
            </table>
          </form>
        </div>
        <div><img src="{config:system.inst/}qixian/images/L2_3.jpg" width="256" height="12" /></div>
      </div>



na,看看 。。
Gougliang 发表于:11-07-13 11:58 8楼 [回复] #Top#
Gougliang 人气:1401 积分:11242 金币:13771
VIP 管理团队 灌水狂人
<input style=" border:0; background:url(qixian/images/L2-5.jpg) no-repeat; width:59px; height:27px; text-align:center; line-height:27px; float:left;" type="text" maxlength="4" name="k_verify" id="k_verify"/>

后面加:

<input type="hidden" name="k_verify_salt" id="k_verify_salt" /><input type="hidden" name="re" id="re" value=""/>
Gougliang 发表于:11-07-13 12:06 编辑于:07-13 12:06 9楼 [回复] #Top#
Gougliang 人气:1401 积分:11242 金币:13771
VIP 管理团队 灌水狂人
登陆之后可用的标签:

{king:user.info userid='(king:userid/)'}
<p>所属用户组:
{king:user.group gid="(king:gid/)"}
{king:name/}
{/king:user.group}
</p>
<p>{lang:portal.user.name/} : {king:username/}</p>
<p>{lang:portal.user.mail/} : {king:usermail/}</p>
<p>{lang:portal.user.nickname/} :{king:nickname/}</p>
<p>{lang:portal.user.realname/} :{king:realname/}</p>
<p>{lang:user.common.point/} :{king:userpoint/}</p>
{/king:user.info}


重置密码:<a href="#" class="k_user_resetpwd">{lang:user.title.resetpwd/}</a>
安全信息设置:<a href="index.php?action=safe">{lang:user.title.safe/}</a>
编辑个人信息:<a href="index.php?action=edit">{lang:user.title.edit/}</a>
我的订单:<a href="index.php?action=orders">{lang:user.title.orders/}</a>
编辑头像:<a href="index.php?action=head">{lang:user.title.head/}</a>(尚未开放的功能)
退出登陆:<a class="k_user_logout">{lang:system.login.logout/}</a>

以上标签在动态或者伪静态页面才会被解析。如果要在静态页面输出,需要转成js输出。
xineni 发表于:11-07-13 13:35 10楼 [回复] #Top#
xineni 人气:13 积分:56 金币:389
怎么不能用呢,有没有做过的 ?

12Next >

发表回复

帐号 匿名发布 审核后可见 [加载完整在线编辑器]
内容
验证码
KingCMS 内容管理系统

关于我们 联系我们 广告报价 付款方式 站点导航

Copyright © 2004-2015 Focuznet All rights reserved.

广州唯众网络科技有限公司 粤ICP备08008106号