Hello, guest!
Chat
If you get an error during the chat, please Reload the page !
----------(Post-Search)---------->
----------(1-File-Search)---------->
----------(1-File-Search)---------->
----------(Post-Search)---------->
----------(Post-Search)---------->
----------(Post-Search)---------->
----------(Post-Search)---------->
----------(Post-Search)---------->
----------(Post-Search)---------->
New wapka code called (link target v1.0)
mario · Published on 2022-02-16 12:40:53 (3 years ago )
mario · Published on 2022-02-16 12:40:53 (3 years ago )
Lot of developers in wapka like to show content of div when link is click something like /index/?page=login but the page load true browser to make sure their :GET; function collect the page data called login. There is a shortcut to display div content like app without page loading... and you will enjoy it. Set your css .login,.register,.terms {display:none;} #login:target,#register:target,#terms:target {display:block;} link <a href="#login">Login Page</a> <a href="#register">Register Page</a> <a href="#terms">Terms Page</a> <div class="login" id="login">Login to your account here</div> <div class="register" id="register">Register your account here</div> <div class="terms" ="terms">You full terms and others content here</div>
comment |
----------(Post-Search)---------->
----------(Post-Search)---------->
----------(Post-Search)---------->
Check if logged user is an Admin
francisco · Published on 2022-02-15 20:51:53 (3 years ago )
francisco · Published on 2022-02-15 20:51:53 (3 years ago )
The following Wapka code can check if the logged user is an Admin:It returns "Is an Admin" if the user belongs to any of the following roles: Administrator, Master Admin, or Super Admin.:VAR(USER_ROLE).IFMATCH(Admin).THEN(Is an Admin).ELSE(Not an Admin);
Returns "Not an Admin" if the user belongs to any other role.
comment |
----------(Post-Search)---------->
Category
News Feed (686)
Wapka Codes 2021 (64)
Wapka Codes 2022 (47)