修改个人资料页游客状态下只有特定用户组能显示
需要游客状态下只显示自定义的用户组个人空间资料,比如只显示21,22用户组,其他用户组的会员就显示无此账号;登录状态下查找就按正常的显示。求教怎么增加判断。个人资料页主要代码页如下。由于发帖字数限制,完整代码放不下,整个文件到吗我放附件里面了。求技术解答哦。<?php echo '';exit;?>
<!--{if $_GET['mycenter'] && !$_G['uid']}-->
<!--{eval dheader('Location:member.php?mod=logging&action=login');exit;}-->
<!--{/if}-->
<!--{template common/header}-->
<!--{if !$_GET['mycenter']}-->
<style type="text/css">
.dz_tbys {background: rgba(0,0,0,0.1);}
</style>
<div class="dz_hykj <!--{if $space}-->dz_hykjw<!--{else}-->dz_hykjb<!--{/if}-->">
<div class="dz_tbys cl">
<a href="javascript:void(0);" class="fhan">返回</a>
<div class="kjcd">菜单</div>
<ul id="demo_ul_2" class="dz_kjtcnr">
<!--{if empty($personalnv['banitems']['profile'])}-->
<li><a href="home.php?mod=space&uid=$space&do=profile" class="kjcdsy">首页</a></li>
<!--{/if}-->
<!--{if $_G['setting']['allowviewuserthread'] !== false && (empty($personalnv['banitems']['topic']))}-->
<li><a href="home.php?mod=space&uid=$space&do=thread&view=me&from=space" class="kjcdzt">主题</a></li>
<!--{/if}-->
<!--{if empty($personalnv['banitems']['blog']) && helper_access::check_module('blog')}-->
<li><a href="home.php?mod=space&uid=$space&do=blog&view=me&from=space" class="kjcdrz">日志</a></li>
<!--{/if}-->
<!--{if empty($personalnv['banitems']['album']) && helper_access::check_module('album')}-->
<li><a href="home.php?mod=space&uid=$space&do=album&view=me&from=space" class="kjcdxc">相册</a></li>
<!--{/if}-->
</ul>
</div>
<script src="template/zhikai_n5mobi/touch/style/js/jquery.popmenu.js"></script>
<script>
$(function(){
$('.dz_tbys').popmenu({'background':'rgba(0,0,0,0.8)','focusColor':'#fff','borderRadius':'0'});
})
</script>
<div class="dz_txdh cl">
<div class="dz_txdhb cl">
<div class="dz_kjtx z cl">
<!--{avatar($space,middle)}-->
</div>
<div class="dz_kjdh z cl">
<h2>$space <!--{if $space['gender'] == 1}--><span class="dz_nan"> </span><!--{elseif $space['gender'] == 2}--><span class="dz_nv"> </span><!--{else}--><!--{/if}--></h2>
<p><!--{if $sightml = strip_tags($space['sightml'])}-->{$sightml}<!--{else}-->该用户懒到没有签名!<!--{/if}--></p>
</div>
</div>
</div>
</div>
<!--{hook/global_kongjian_mobile}-->
<div class="dz_wdkjzt cl">
<div class="dz_hykjzl cl">
<ul>
<li><i class="dz_fbztlj"><a href="home.php?mod=space&uid=$space&do=thread&view=me&from=space">$space个</a></i><a>发布主题</a></li>
<li><i>{$space}<!--{if !empty($space['groupexpiry'])}--> {lang group_useful_life} <!--{date($space, 'Y-m-d H:i')}--><!--{/if}--></i><a>当前等级</a></li>
<li><i class="dz_fbztlj"><a href="home.php?mod=space&uid=$space&do=share&view=me&from=space" class="hyewm"> </a></i><a>二维码</a></li>
<li><i>$space {lang hours}</i><a>累计在线</a></li>
<li><i>$space</i><a>{lang last_visit}</a></li>
<li class="wdwdx"><i>$space</i><a>{lang regdate}</a></li>
</ul>
</div>
<div class="dz_hyzlcz cl">
<ul>
<!--{if $space}-->
<li class="dz_hyzlly"><a href="home.php?mod=spacecp&ac=profile">编辑资料</a></li>
<!--{else}-->
<!--{if $space != $_G}--><li class="dz_hyzlhy"><a href="home.php?mod=spacecp&ac=pm&touid={$space}">{lang send_pm}</a></li><!--{/if}-->
<li class="dz_hyzlly"><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$space&handlekey=addfriendhk_{$space}" id="a_friend_li_{$space}">{lang add_friend}</a></li>
<!--{/if}-->
</ul>
</div>
</div>
<script type="text/javascript">
function toshare(){
$(".dz_dbtstc").addClass("am-modal-active");
if($(".sharebg").length>0){
$(".sharebg").addClass("sharebg-active");
}else{
$("body").append('<div class="sharebg"></div>');
$(".sharebg").addClass("sharebg-active");
}
$(".sharebg-active,.share_btn").click(function(){
$(".dz_dbtstc").removeClass("am-modal-active");
setTimeout(function(){
$(".sharebg-active").removeClass("sharebg-active");
$(".sharebg").remove();
},300);
})
}
</script>
<div id="dz_dbcd">
<a href="portal.php?mod=index" class="bottom_index">聚焦</a>
<a href="forum.php?mod=guide&view=hot" class="bottom_history">话题</a>
<a class="bottom_tansuo"><span></span></a>
<a href="forum.php?mod=misc&action=nav" class="bottom_post">发布</a>
<a href="<!--{if $_G}-->home.php?mod=space&uid=$_G&do=profile&mycenter=1<!--{else}-->member.php?mod=logging&action=login<!--{/if}-->" class="<!--{if $space}-->bottom_member_on<!--{else}-->bottom_member<!--{/if}-->">我的<!--{if $_G}--><i> </i><!--{/if}--></a>
</div>
<div class="dz_dbcdy"></div>
<div class="dz_dbtstc">
<!--{template common/dz_ts}-->
</div>
<!--{else}-->
<div class="dz_tbys cl">
<a href="javascript:void(0);" class="fhan">返回</a>
<span class="dqym">个人中心</span>
<a href="home.php?mod=space&uid={$_G}&do=profile&view=me&mobile=2" class="grzy">空间首页</a>
</div>
<div class="dz_tbxj"></div>
<!--{hook/global_geren_top_mobile}-->
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->
页:
[1]