Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 教你删除X2的右侧的登陆框

[复制链接]
qingqt 发表于 2012-3-22 18:49:56 | 显示全部楼层 |阅读模式
本帖最后由 qingqt 于 2012-3-22 18:52 编辑

打开如下路径的文件,最好用Notepad2编辑器打开,那样代码会清晰很多
template\default\common\header.htm
在header.htm文件夹找到如下代码
  1. <!--{if $_G['uid']}-->
  2. <div id="um">
  3. <div class="avt y"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G[uid],small)}--></a></div>
  4. <p>
  5. <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>
  6. <!--{if $_G['group']['allowinvisible']}-->
  7. <span id="loginstatus">
  8. <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
  9. </span>
  10. <!--{/if}-->
  11. <!--{hook/global_usernav_extra1}-->
  12. <span class="pipe">|</span><a href="home.php?mod=spacecp">{lang setup}</a>
  13. <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>
  14. <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>
  15. <!--{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}-->
  16. <!--{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))}-->
  17. <span class="pipe">|</span><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a>
  18. <!--{/if}-->
  19. <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
  20. <span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a>
  21. <!--{/if}-->
  22. <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
  23. <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
  24. <!--{/if}-->
  25. <!--{hook/global_usernav_extra2}-->
  26. <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  27. </p>
  28. <p>
  29. <!--{hook/global_usernav_extra3}-->
  30. <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
  31. <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} onmouseover="delayShow(this, showCreditmenu);" class="showmenu"{/if}>{lang credits}: $_G[member][credits]</a>
  32. <span class="pipe">|</span>{lang usergroup}: <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2" onmouseover="delayShow(this, showUpgradeinfo)"{/if}>$_G[group][grouptitle]</a>
  33. </p>
  34. </div>
  35. <!--{elseif !empty($_G['cookie']['loginuser'])}-->
  36. <p>
  37. <strong><a id="loginuser" class="noborder"><!--{echo htmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
  38. <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a>
  39. <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  40. </p>
  41. <!--{else}-->
  42. <!--{template member/login_simple}-->
  43. <!--{/if}-->
复制代码
删除即可
因为没有权限在文件帮助版块发帖,请版主帮忙转到文件帮助的版块吧。
yahooren1 发表于 2012-3-22 18:50:58 | 显示全部楼层
没有演示吗?什么登陆框?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-26 21:29 , Processed in 0.026927 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表