点评:本文详细介绍了如何调用会员
调用12个企业会员 按 注册时间排序代码如下:
{dede:sql sql='select * from dede_member where mtype="企业" order by mid limit 0,12'}
<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>
{/dede:sql}
代码如下:
{dede:sql sql='select * from dede_member where mtype="个人" order by mid limit 0,12'}
<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>
{/dede:sql}
代码如下:
{dede:sql sql='select * from dede_member order by mid limit 0,12'}
<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>
{/dede:sql}
代码如下:
{dede:sql sql='select * from dede_member order by logintime limit 0,12'}
<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>
{/dede:sql}
代码如下:
{dede:sql sql='select * from dede_member where length(face)>0 order by logintime limit 0,12'}
<a href=../member/index.php?uid=[field:userid/] target='_blank'><img src=[field:face/] /></a>
{/dede:sql}
代码如下:
{dede:sql sql="SELECT mid,mtype,userid,uname,matt,face
FROM dede_member
where matt = 1 and mtype='个人'
LIMIT 0 , 10"}
头像:<img src="[field:face runphp='yes']
if(!@me)@me = '';
[/field:face]" />
用户名:<a [field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:uname/]</a>
{/dede:sql}
[field:face runphp='yes']
if(!@me)@me = '';
[/field:face]
代码如下:
[quote]
{dede:sql sql="Select mid,userid,uname,scores From dede_member order by scores desc limit 0,10"}
<dd><span class="name"><a [field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:uname/]</a>
</span><span class="jifen">积分[field:scores/]</span></dd>
{/dede:sql}