How to change the zblog PHP administrator's avatar and name

Li Yang's Blog 2023-09-11 3.08 K Reading 0 Comments

Tips: This article has exceeded two hundred and twenty-nine No update in days, please note whether relevant content is still available!

A lot of people really asked me about this question. I never thought that changing the avatar was a problem. On the contrary, it should be blamed on the official. It was clear that an interface could be set and had to be written dead. As a result, many white people who had just come into contact with zbp could not figure out how to change it. Take this opportunity to talk about how to improve the administrator's avatar and name, as shown in the figure below:

 How to change the zblog PHP administrator's avatar and name Page 1

change the avatar

The method is simple, as shown in the following figure. Right click the avatar and view the properties. We can see the catalog of avatars:

 How to change the zblog PHP administrator's avatar and name Page 2

Another method: You can also log in to the background directly, and click the avatar on the right, as shown in the figure below:

 How to change the zblog PHP administrator's avatar and name Page 3

Enter the editing interface. There is a default avatar at the bottom,

Default avatar: https://www.hlwlb.com/zb_users/avatar/0.png

To record this path, we just need to find the appropriate avatar, change the name, and change the number "0" to the user ID. For example, if the administrator is generally 1, we will change it to "1. png" and then directly use FTP Software , upload to the directory "/zb_users/avatar/". Change the administrator's avatar to the current position course It's over. It's very simple, isn't it? The official can add an upload interface and upload by themselves. Why do users have to upload manually?

Another question, maybe you will ask if my website has thousands of users, can't everyone have to upload their own pictures? Isn't that tired? Actually, it's not necessary. The official has a head plug-in unit It's called "Gravatar Head", as shown in the figure:

 How to change the zblog PHP administrator's avatar and name Page 4

After downloading and enabling the plug-in, we enter the configuration file and directly click the address in the "Optional Value". For example, if we select the "Seven Bull Gravatar" link, it will be automatically added, as shown in the figure:

 How to change the zblog PHP administrator's avatar and name Page 5

Then select "Registered members have priority to search local mailboxes" to open, which means that if the user center is used, QQ avatar or other associated avatars will be automatically called. If the default avatar is not displayed, we don't need everyone to upload the picture avatar, unless individual users save after setting, in fact, the theme has integrated QQ avatar display, Of course, it is for comment users. This avatar plug-in is also for comment users. There are not only this plug-in, but also many others. You can download and use it on demand, and search in the background by yourself.

PS: The administrator's avatar must be replaced manually. If some user centers are installed, they usually have interfaces to upload directly.

Change administrator name

The customer also has some questions about whether it is OK not to display "admin". The answer is yes, or the background home page. Click the avatar on the right to find the "alias" as shown in the figure below:

 How to change the zblog PHP administrator's avatar and name Page 6

After finding it, we set an alias, click the bottom to submit and save, and refresh the foreground to see the effect, as shown in the figure:

 How to change the zblog PHP administrator's avatar and name Page 7

Finally, the following questions are extended. Some friends may have different articles, comments, and views. For example, there are 10 background articles, but only 3 are displayed on the foreground. At this time, we click "Clear cache and recompile template" on the background home page, as shown in the figure:

 How to change the zblog PHP administrator's avatar and name Page 8

After updating the cache and compiling, go back to the foreground to refresh and see if the effect is the same as the actual situation. If it is different, just empty the cache and compile more. This method can basically solve the problem, including that the content of the sidebar module is not displayed. In some cases, if the total number of categories is not correct, edit the current category. Just edit and submit it, and nothing needs to be modified, As for why I have to do this, I don't understand. I have to ask our "stainless steel pig". After all the tutorials are completed, ask me again if I don't understand, and I will write another tutorial if necessary!

Article copyright notice: unless otherwise noted Lao Li's Notes For original articles, reprints or copies, please use hyperlinks and indicate the source.

Comment

Quick reply: expression:
 Addoil Applause Badlaugh Bomb Coffee Fabulous Facepalm Feces Frown Heyha Insidious KeepFighting NoProb PigHead Shocked Sinistersmile Slap Social Sweat Tolaugh Watermelon Witty Wow Yeah Yellowdog
Comment List (No comment yet, three thousand and seventy-seven People around)

No comment yet, let me say something

 cancel
 WeChat QR code
 WeChat QR code
 Alipay QR code