Discuz 判断登录

DZ判断登录的代码。

1
2
        <!--{if $_G['uid']}-->
<!--{/if}-->

举例,只对登录会员显示搜索框。

1
2
3
<!--{if $_G['uid']}-->
<!--{subtemplate common/pubsearchform}-->
<!--{/if}-->

Leave a Reply

You must be logged in to post a comment.

RSS feed for comments on this post. TrackBack URL