Home > CMS Tutorial > DEDECMS > body text

How to use DedeCMS global tag memberinfos

王林
Release: 2019-11-08 13:27:50
Original
2012 people have browsed it

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 = '' /}
Copy after login

Related functions :

File\include\taglib\memberinfos.lib.php line 6

function lib_memberinfos(&$ctag,&$refObj)
Copy after login

Parameters Description

mid = '' 用户ID
Copy after login

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:

How to use DedeCMS global tag memberinfos

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(&#39;Y-m-d H:m&#39;,@me)"/]</span>
<span><small>最后登录:</small>[field:logintime function="MyDate(&#39;Y-m-d H:m&#39;,@me)"/]</span>
</dd>
</dl>
{/dede:memberinfos}
</div>
Copy after login

. 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template