Today, I want to make a button visible for login. I found it on the sidebar of the default template of zblog. ZBLOG itself has this function. I believe many kids know this function as well as I do!
Before and after login:
code:
{if $user.ID>0} Welcome: {$zbp ->user ->StaticName}/<a href="User Center Address">User Center</a><-- Here is the content displayed after the user logs in --> {else} <a href="Login Address">Login</a><a href="Registered Address">Register</a><-- Here is the content displayed when the user has not logged in --> {/if}
The style depends on your website template. If you don't understand it, you can contact the Jack blogger to pay for it!
Text label: ZBLOG Login Registration User Center
A little Jack https://lkba.cn
The blogger focuses on Z-Blog website construction, website optimization, computer troubleshooting, reinstallation, optimization, maintenance system, etc., QQ/WX: 2126245521 (please specify the purpose)
Copyright © 2020-2023 Jack's works Reserved.
Powered By Z-Blog Sitemap | Shu ICP Bei No. 2023025269 - 1
Processed : 0.055 SQL : 25