雨哲插件

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
  • 全部资料
  • 查看资料

会员权限判断

2018-4-23 04:42|分类: 超强嵌入点扩展组件 |发布用户: 雨哲

201804/23/044228xgg4yozrubofpooo.jpg

组件名称:论坛 首版 当前位置下面 热门标签

组件变量:index_top

手机嵌入:否

组件类型:string

模板内容:

<font style="font-weight: normal">(
{if $_G['uid']}
  <font color="red">{echo $_G[member][username]}</font> 您好,
  {oneif $_G['groupid'] && $_G['cache']['usergroup_'.$_G['groupid']][allowposttag]}
    您可以在发表帖子的时候设置主题标签
  {oneelse}
    您在发表帖子的时候没有设置主题标签的权限,<a href="home.php?mod=spacecp&ac=usergroup" target="_blank">查看权限</a>
  {/oneif}
{else}
  {oneif !empty($_G['cookie']['loginuser'])}
    <font color="red">{echo dhtmlspecialchars($_G['cookie']['loginuser'])}</font> 您好,
    {twoif $_G['groupid'] && $_G['cache']['usergroup_'.$_G['groupid']][allowposttag]}
      您可以在发表帖子的时候设置主题标签
    {twoelse}
      您在发表帖子的时候没有设置主题标签的权限,<a href="home.php?mod=spacecp&ac=usergroup" target="_blank">查看权限</a>
    {/twoif}
  {oneelse}
    {twoif !$_G[connectguest]}
      <font color="red">游客</font> 您好,登录后体验本站更多功能!已有账号 <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href, 'get', 1, {'cover':0})" target="_blank">登录</a>!没有账号 <a href="member.php?mod={echo $_G[setting][regname]}">注册</a>!
    {twoelse}
      <font color="red">{echo $_G[member][username]}</font> 您好,
       {threeif $_G['groupid'] && $_G['cache']['usergroup_'.$_G['groupid']][allowposttag]}
        您可以在发表帖子的时候设置主题标签
       {threeelse}
        请 <a href="member.php?mod=connect" target="_blank" title="体验本站更多功能">完善帐号信息</a> 或 <a href="member.php?mod=connect&ac=bind" target="_blank" title="使用QQ帐号快速登录本站">绑定已有帐号</a> 体验本站更多功能
      {/threeif}
    {/twoif}
  {/oneif}
{/if}
)</font>


插件介绍:雨哲超强嵌入点 插件是一款平台插件,通过后台添加在前台显示(基于模板的hook位置)指定内容的功能。

下载地址:http://addon.discuz.com/?@yuzhe_hook.plugin

分享到: 手机访问 分享给QQ好友 分享到QQ 分享到QQ空间 QQ空间 分享到新浪微博 新浪微博 分享到人人 人人网
企业微信 : 雨哲手机扫描添加到联系人手机扫描直接访问

QQ|关于我们|Archiver|手机版|小黑屋|雨哲插件

GMT+8, 2024-5-20 18:53 , Processed in 0.055673 second(s), 9 queries , Xcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

返回顶部