How to call member avatar in phpcms v9 template?
Calling phpcms member avatar:
This is the code: {get_memberavatar($r['userid'],1,45)}
As long as userid can be called, this code can be used anywhere: homepage, column page, article page.
Here I use get to call the userid field in the member table.
{pc:get sql="select * from v9_member order by regdate desc" num="6"} /*这里就可以获取到userid并且安装注册顺序了排列*/ {loop $data $r} <img src="/static/imghwm/default1.png" data-src="{get_memberavatar($r[userid],1,90)}" class="lazy" style="max-width:90%" style="max-width:90%" alt="{$r[username]}" target="_blank" /> /*这里可以按照自己的要求来设计显示样式。*/ {/loop} {/pc}
PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!
The above is the detailed content of How to call member avatar in phpcms v9 template. 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

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

SublimeText3 English version
Recommended: Win version, supports code prompts!

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver Mac version
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
