Last update at :2024-03-16,Edit by888u
Empire’s comments do not display avatars or comment content by default. Fortunately, the official provides such a plug-in, but it only displays member names and comment content. How can I display member avatars?
It's very simple, just use the following code where you want to display the avatar:
fetch1("select userpic from phome_enewsmemberadd where userid='$r[userid]'"); ?>
The Imperial CMS member center and control panel call member field information, for example, directly call member field information on the modify information page.
Member avatar:
=empty($addr[userpic])?"":"".htmlspecialchars(stripSlashes($addr[userpic])).""?>Real name:
=$ecmsfirstpost==1?"":htmlspecialchars(stripSlashes($addr[truename]))?>Mobile phone number:
=$ecmsfirstpost==1?"":htmlspecialchars(stripSlashes($addr[phone]))?>The calling method for other member fields is the same, just modify the field name.
Recommended site searches: domain name query, how to rent a server, website domain name IP address query, website registration information, Chinese domain name Guangdong server rental, Hong Kong server, IP address search, large bandwidth server rental, PHP virtual space,
发表评论