本帖最后由 skymens 于 2012-9-25 02:08 编辑
不多说了自己看效果,其实制作很简单
点击登陆的效果
登陆后的效果
将以下代码粘贴到header.htm的 <div class="z">
<!--{loop $_G['setting']['topnavs'][0] $nav}-->
<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->$nav- <!--{/if}-->
- <!--{/loop}-->
- <!--{hook/global_cpnav_extra1}-->
- </div>
- 后面
- [free]<!--开始-->
- <!--{if $_G['uid']}-->
- <a href="home.php?mod=space&uid=$_G[uid]">个人资料</a>
- <strong class="vwmy{if $_G['setting']['connect']['allow'] && $_G[member][conisbind]} qq{/if}"><a href="home.php?mod=space&uid=$_G[uid]" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
- <!--{if $_G['group']['allowinvisible']}-->
- <span id="loginstatus">
- <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" class="xi2"></a>
- </span>
- <!--{/if}-->
- <!--{hook/global_usernav_extra1}-->
- <span class="pipe">|</span><!--{hook/global_usernav_extra4}--><a href="home.php?mod=spacecp">{lang setup}</a>
- <span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}</a>
- <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
- <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><span class="pipe">|</span><a href="home.php?mod=task&item=doing" id="task_ntc" class="new">{lang task_doing}</a><!--{/if}-->
- <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
- <span class="pipe">|</span><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
- <span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']}-->
- <span class="pipe">|</span><a href="admin.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a>
- <!--{/if}-->
- <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
- <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
- <!--{/if}-->
- <!--{hook/global_usernav_extra2}-->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- <!--{hook/global_usernav_extra3}-->
- <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
- <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} class="showmenu"{/if}>{lang credits}: $_G[member][credits]</a>
- <span class="pipe">|</span><a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2"{/if}>$_G[group][grouptitle]</a>
- <!--{elseif !empty($_G['cookie']['loginuser'])}-->
- <strong><a id="loginuser" class="noborder"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=login">{lang activation}</a>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- <!--{elseif !$_G[connectguest]}-->
- <!--{template member/login_simpleB}-->
- <!--{else}-->
- <!--{avatar(0,small)}-->
- <strong class="vwmy qq">{$_G[member][username]}</strong>
- <!--{hook/global_usernav_extra1}-->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- <a href="home.php?mod=spacecp&ac=credit&showcredit=1">{lang credits}: 0</a>
- <span class="pipe">|</span>{lang usergroup}: $_G[group][grouptitle]
- <!--{/if}-->
- <!--结束--> [/free]
- 在member目录中新建login_simpleB.htm文件,代码如下:
- [code]<!--{if CURMODULE != 'logging'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}logging.js?{VERHASH}"></script>
- <a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href);hideWindow('register');" style="background:none">登 录</a>
- <span class="pipe">|</span>
- <a href="member.php?mod=register">立即注册</a>
- <!--{/if}-->
复制代码 最后将header.htm中的以下代码删除:- <!--{if $_G['uid']}-->
- <div id="um">
- <div class="diynav">
- <div style="display: inline;">
- <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}--><a id="sslct" href="javascript:;" onmouseover="delayShow(this, function() {showMenu({'ctrlid':'sslct','pos':'34!'})});">{lang changestyle}</a><!--{/if}-->
- <!--{if check_diy_perm($topic)}-->
- $diynav
- <!--{/if}-->
- <!--{hook/global_usernav_extra1}-->
- <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
- <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu">{lang credits}: $_G[member][credits]</a>
- </div>
- <p>
- <!--{hook/global_usernav_extra2}-->
- <a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}</a>
- <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
- <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><span class="pipe">|</span><a href="home.php?mod=task&item=doing" id="task_ntc" class="new">{lang task_doing}</a>
- <!--{/if}-->
- <span class="pipe">|</span><a href="home.php?mod=space&uid=$_G[uid]" target="_blank" title="{lang visit_my_space}" id="umnav" class="showmenu" onmouseover="showMenu({'ctrlid':this.id,'ctrlclass':'a'})">{$_G[member][username]}</a>
- <ul id="umnav_menu" class="p_pop nav_pop" style="display: none;">
- <!--{loop $_G['setting']['mynavs'] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
- {eval $nav[code] = str_replace('style="', '_style="', $nav[code]);}
- <li>$nav[code]</li>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{hook/global_usernav_extra3}-->
- <li><a href="home.php?mod=spacecp">{lang setup}</a></li>
- <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
- <li><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a></li>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
- <li><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a></li>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']}-->
- <li><a href="admin.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a></li>
- <!--{/if}-->
- <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
- <li><a href="admin.php" target="_blank">{lang admincp}</a></li>
- <!--{/if}-->
- <!--{hook/global_usernav_extra4}-->
- <li><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a></li>
- </ul>
- </p>
- </div>
- </div>
- <!--{elseif !empty($_G['cookie']['loginuser'])}-->
- <p>
- <strong><a id="loginuser" class="noborder"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <!--{elseif !$_G[connectguest]}-->
- <!--{template member/login_simple}-->
- <!--{else}-->
- <div id="um">
- <p>
- <strong class="vwmy qq">{$_G[member][username]}</strong>
- <!--{hook/global_usernav_extra1}-->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <p>
- <a href="home.php?mod=spacecp&ac=credit&showcredit=1">{lang credits}: 0</a>
- <span class="pipe">|</span>{lang usergroup}: $_G[group][grouptitle]
- </p>
- </div>
- <!--{/if}-->
复制代码 |