


Summarize the method of using Empire CMS to call the current member information and article information on the content page
When using Imperial CMS to create a membership system, it is often necessary to flexibly call member information and corresponding column list information on each page. This article describes how Imperial CMS implements content pages to call current member information and The specific steps for article information are as follows:
1. Call member information:
Add the following code to the content page template
The code is as follows:
<?php $userr=sys_ShowMemberInfo(0,''); ?> <span class="udate">注册时间:<?=$userr[registertime]==null?"":date('m-d',$userr[registertime])?></span> <span class="udate">会员积分:<?=$userr[userfen]?>分</span> <span class="udate">上传小说:<?=$empire->gettotal("select count(*) as total from phome_ecms_download where userid='$navinfor[userid]' and ismember=1")?>本</span> <span class="ptmem"><?=$userr[groupname]?></span>
recommends learning "Empire cms Tutorial"
2. Call article list information (articles submitted by members):
Call articles submitted by current members (5 items) ):
The code is as follows:
<?php $sql=$empire->query("select * from phome_ecms_download where userid='$navinfor[userid]' and ismember=1 order by newstime asc limit 5"); while($r=$empire->fetch($sql)) { $titleurl=sys_ReturnBqTitleLink($r);//链接 ?> <li><a href="<?=$titleurl?>" target="_blank" title="<?=$r[title]?>" ><?=esub($r[title],40)?></a></li> <?php } ?>
The above is the detailed content of Summarize the method of using Empire CMS to call the current member information and article information on the content page. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

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.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download
The most popular open source editor
