This article is a mirror article of machine translation, please click here to jump to the original article.

View: 109|Reply: 0

Optimization of user status in Discuz x3.4 post in guest mode

[Copy link]
Posted on7 days ago | | | |
Requirements: Posts on Discuz x3.4, the left side will display the user's status information, such as: current offline, points, etc. In fact, it is meaningless to display these when the user is not logged in (guest mode), it is a waste of bandwidth resources, how to get rid of it?

The user profile on the left side of the post,Hover display (hover is not displayed in guest mode, but the html source code will be there, which is even more meaningless), as shown in the figure below:



In fact, the main thing is to delete the html source code similar to the following:
Delete the scheme, find the template\default\forum\viewthread_node.htm file, add the logic, and modify it as follows:
Main logic:




Previous:Linux virtual memory swap partition configuration tutorial
Next:[Playwright] (3) Automated testing to catch error exceptions
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com