search
HomeCMS TutorialDEDECMSHow to use DedeCMS global tag memberinfos

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:

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="/static/imghwm/default1.png"  data-src="/route/skin/img/pic-6.jpg"  class="lazy"   / 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>

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

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools