POST TIME:2017-11-13 00:42
{dede:memberinfos}會員頭像:<a href="[field:spaceurl /]" class="userface"><img src="[field:face/]" width="52" height="52" /></a>會員用戶名:<a href=’[field:spaceurl /]‘ class="username">[field:uname/]</a>會員詳細(xì)資料:<a href="[field:spaceurl /]" class="useract-vi">查看詳細(xì)資料</a>給他留言:<a href="[field:spaceurl /]&action=guestbook" class="useract-pm">發(fā)送留言</a>加為好友:<a href="[field:spaceurl /]&action=newfriend" class="useract-af">加為好友</a>用戶等級:[field:rankname /]注冊時間:[field:jointime function="MyDate('Y-m-d H:m',@me)"/]最后登錄:[field:logintime function="MyDate('Y-m-d H:m',@me)"/]{/dede:memberinfos}
function GetMemberInfos($fields,$mid){global $dsql;if($mid <= 0){$revalue = "Error";}else{$row=$dsql->GetOne("select * from dede_member where mid = ‘{$mid}’");if(!is_array($row)){$revalue = "Not user";}else{$revalue = $row[$fields];}}return $revalue;}
{dede:arclist row=’10′ titlelen=’25′}<li>標(biāo)題:[field:title/] 昵稱:[field:mid function="GetMemberInfos('uname',@me)"/]</li>{/dede:arclist}