Home > Article > CMS Tutorial > How to use DedeCMS global tag memberinfos
Tag name:
memberinfos
Function description:
User information related to the document
Applicable scope:
Only content template article_*.htm
Basic syntax:
{dede:memberinfos mid = '' /}
Related functions :
File\include\taglib\memberinfos.lib.php line 6
function lib_memberinfos(&$ctag,&$refObj)
Parameters Description:
mid = '' 用户ID
Underlying template fields:
dede_member all fields and spacename (space name), sign (user signature)
Usage example:
This tag is used to call the specified member information. We can view the content page part of the default template:
us View the template file \templets\default\article_article.htm of the article content page. You can view line 254
<div> {dede:memberinfos} <dl> <dt><strong>发布者资料</strong></dt> <dd> <a><img src="/route/skin/img/pic-6.jpg" / alt="How to use DedeCMS global tag memberinfos" ></a> <a>[field:uname/]</a> <span> <a>查看详细资料</a> <a>发送留言</a> <a>加为好友</a> </span> <span><small>用户等级:</small>[field:rankname /]</span> <span><small>注册时间:</small>[field:jointime function="MyDate('Y-m-d H:m',@me)"/]</span> <span><small>最后登录:</small>[field:logintime function="MyDate('Y-m-d H:m',@me)"/]</span> </dd> </dl> {/dede:memberinfos} </div>
. Here is the information of the user who currently publishes the article. Of course, you can also specify the mid attribute to call different user information. .
Recommended tutorial: dedecms tutorial
The above is the detailed content of How to use DedeCMS global tag memberinfos. For more information, please follow other related articles on the PHP Chinese website!