织梦如何调用会员详细信息:
在include/extend.func.php
function GetMemberInfos($fields,$mid){
global $dsql;
if($mid <= 0){
$revalue = "Error";
}
else{
$row=$dsql->GetOne("sele ct * from dede_member_person where mid ='{$mid}'");
if(!is_array($row)){ $revalue = "Not user";
}
else{ $revalue = $row[$fields];
} }
return $revalue;
}
比如要调用对应会员的QQ信息,需要哪个就调用哪个字段:
调用代码:
{dede:field.mid function="GetMemberInfos('qq',@me)"/}