header_userstatus.htm文件註釋
- <!--{if $_G['uid']}--><!--這段代碼是用於判斷會員是否登陸了的,不能刪除啊,切記-->
- <div id="um"><!--會員信息展現區開始-->
- <!--下邊的代碼是會員頭像的-->
- <div class="avt y"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G[uid],small)}--></a></div>
2javascript
- <!--這個P標籤裏面是咱們一些會員信息,聽我一一道來-->
- <p>
- <!--用戶名-->
- <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>
3php
- <!--用戶狀態(在線,離線等)-->
- <!--{if $_G['group']['allowinvisible']}-->
- <span id="loginstatus">
- <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
- </span>
- <!--{/if}-->
4html
- <!--這個是重要的嵌入點啊,咱們的QQ快捷登陸用的就是這個嵌入點-->
- <!--{hook/global_usernav_extra1}-->
- <span class="pipe">|</span>
- <!--{hook/global_usernav_extra4}--><!--插件嵌入點-->
- <!--個人菜單,有下拉菜單彈出,(帖子,收藏,好友)-->
- <a href="javascript:;" id="myitem" class="showmenu" onmouseover="showMenu({'ctrlid':'myitem'});">{lang myitem}</a>
- <span class="pipe">|</span>
5java
- <!--設置菜單-->
- <a href="home.php?mod=spacecp">{lang setup}</a>
6消息ajax
- <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" class="a showmenu{if $_G[member][newprompt]} new{/if}" onmouseover="showMenu({'ctrlid':'myprompt'});">{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a>
-
- <span id="myprompt_check"></span>
-
- <!--{if empty($_G['cookie']['ignore_notice']) && ($_G[member][newpm] || $_G[member][newprompt_num][follower] || $_G[member][newprompt_num][follow] || $_G[member][newprompt])}--><script language="javascript">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><!--{/if}-->
- <!--{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}-->
7門戶或者羣組管理cookie
- <!--門戶管理菜單,只有管理員登陸後能看到啊-->
- <!--{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}-->
8post
- <!--管理菜單,只有管理員登陸後才能看到效果-->
- <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
- <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
- <!--{/if}-->
9ui
- <!--{hook/global_usernav_extra2}--><!--插件潛入點-->
- <span class="pipe">|</span>
- <!--退出按鈕-->
- <a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
10this
- <!--{hook/global_usernav_extra3}--><!--插件潛入點-->
- <!--會員積分-->
- <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>
11spa
- <!--會員用戶組-->
- <a href="home.php?mod=spacecp&ac=usergroup" id="g_upmine" class="showmenu" onmouseover="delayShow(this, showUpgradeinfo)">{lang usergroup}: $_G[group][grouptitle]<!--{if $_G[member]['freeze']}--><span class="xi1">({lang freeze})</span><!--{/if}--></a>
12
- <!--若是用戶登陸過時-->
- <!--{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>
13
- <!--若是沒有登陸就加載簡潔登陸框-->
- <!--{elseif !$_G[connectguest]}-->
- <!--{template member/login_simple}-->
- <!--{else}-->
14
- <!--下邊的代碼用於QQ會員登陸後-->
- <div id="um">
- <!--用戶頭像-->
- <div class="avt y"><!--{avatar(0,small)}--></div>
- <p>
- <!--用戶名,通常就是你的QQ名稱-->
- <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>
- <!--用戶組,通常是QQ遊客-->
- {lang usergroup}: $_G[group][grouptitle]
- </p>
- </div>
歡迎關注本站公眾號,獲取更多信息