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:
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:
Another method: You can also log in to the background directly, and click the avatar on the right, as shown in the figure below:
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:
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:
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:
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:
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:
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!