Search Result:
dinesh230 dinesh230
Email:
Owner:
User ID: 124904
maria maria
Email:
Owner:
User ID: 124905
sapna sapna
Email:
Owner:
User ID: 124906
rajeev0606 rajeev0606
Email:
Owner:
User ID: 125067
aishwarygupta aishwarygupta
Email:
Owner:
User ID: 125132
News Feed
Thatcruise · Published on 2024-11-23 04:27:49 (1 year ago )
please how to display site name and page link in lua
comment
Simple login page code using Lua scripting
UnitedMuslim · Published on 2024-11-22 03:56:49 (1 year ago )
Hello! I would like to share a simple code for a login page using Lua scripting. You are free to style the HTML codes however you want.
The code can be a little challenging to understand at first, but feel free to ask if you don't understand any part.
See also: Simple register page code using Lua scripting

How to use it:
  1. Log in to the Wapka Dashboard (https://web.wapka.org/dashboard);
  2. Select your website from the "Your services" list;
  3. Now create a new page called "login" (Basic Function > New Page) - you can skip this step if you already have a login page and want to use it.
  4. Now open the login page we created and go to Advanced function > Script, and finally paste the following Lua code into the textarea:

Code: Select all

if (env.userid ~= 0) then -- Check if the user is already logged in


url.redirect("/") -- If yes, redirect to the main page end if (req.method == "POST") then -- Checks if the login form has been submitted

error_message = nil -- Starts error message as null

username = req.post.username -- Gets the username from the POST request

password = req.post.password -- Gets the password from the POST request

continue = req.get.continue -- Useful if the user came from another page

if continue == nil then continue = "/" end -- Checks if a continue URL has been defined, if not, it is defined as the home page

if (username == "" and password == "") then -- Checks if the username and password are empty



error_message = "You must enter your username and password."

elseif (username == "") then -- Checks if username is empty



error_message = "You must enter your username."

elseif (password == "") then -- Checks if password is empty



error_message = "You must enter your password."

else -- Continue with login if username and password have been filled in



local param = { -- Sets the parameters for the API login method





username = username,





password = password



}



local is_ok, login, info, error_login = api.user_login(param)



if (is_ok) then -- Username and password are correct and login was successful





url.redirect(continue) -- Redirects to the destination defined in continue



else -- An error occurred while trying to login





error_message = error_login -- defines the error message as the one received in the login method



end

end

if (error_message) then -- Checks if any errors occurred and sets an error message div to display on the page



html_error = [=[<div class="error-message">%s</div>]=]



error_message = string.format(html_error, error_message)

end end local html_code = [=[ <h2>Log-in to your account</h2> %s <!-- This is where the error message will be --> <form method="post"> <div class="input"> <label for="username">Username:</label><br> <input type="text" name="username" value="%s" placeholder="Username" id="username"> </div> <div class="input"> <label for="password">Password:</label><br> <input type="password" name="password" value="%s" placeholder="Password" id="password"> </div> <div class="input-button"> <input type="submit" class="input-button" value="Login"> </div> </form> <div class="register-message"> Not registered yet? <a href="/register">Register</a> </div> ]=] print(string.format(html_code, error_message or "", username or "", password or ""))
Credit - francisco
comment
Wapka code block ip address
UnitedMuslim · Published on 2024-11-21 03:23:39 (1 year ago )
Rule:

:VAR(USER_AGENT).IFEQ(Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36).THEN(#DISABLE#);
comment
https://forum.wapka.org
UnitedMuslim · Published on 2024-11-19 18:12:31 (1 year ago )
https://forum.wapka.org
Wapka forum codes and Real updates about Wapka.org are available here.



Create your own WAP site simple and fast!


What is WAPKA?










Wapka is a platform which provides free service for users to create websites.
With Wapka you can create own professional looks WAP site simply and fast without knowledge of any programming language.
You can use many commands and pseudotags, which help you to create dynamic website.
You can use html, text, css, JavaScript, xml or JSON to make your website attractive.
If you don't know how to use tags & function you can just use default themes.
We are committed to help more users to have their own websites.
Creating website in Wapka, it does not require professional skills and server space.
We can be very easy to create our own website.
Using services on Wapka.org is absolute free, so start building your website just right now :)

















comment
Wapka Official Forum
UnitedMuslim · Published on 2024-11-19 17:13:59 (1 year ago )
	

https://forumm.wapka.co

Hey Wapka developers our first old Wapka forum site forum.wapka.co was restricted and down by the Wapka administration.
Whenever you search on google you will get most results from froum.wapka.co not from forum.wapka.org i think this is reason he let down the forum.wapka.co
today I am giving full authority to Wapka admin to control the link forum.wapka.co I have no objection thank you. i am going to replace the Domin name with https://forumm.wapka.co thank you

Important notice:
Due to Some reason
Real ChaTLook has been Removed
Real Dschat has been Removed
https://Forumm.wapka.co don't owe These Domin name anymore
comment
News Feed
rajeev · Published on 2024-11-18 03:25:23 (1 year ago )
I need blog theme like as worldprss theme blogsite ( blogsite ) on wapka can anyone provide me these type theme ?
comment
News Feed
francisco · Published on 2024-11-16 11:08:41 (1 year ago )
Hello! Good day, I hope everyone is doing well
comment
News Feed
mario · Published on 2024-11-11 08:32:45 (1 year ago )
  
comment
News Feed
mario · Published on 2024-11-10 10:32:32 (1 year ago )
[youtube]video url[/youtube][video]video url[/video][](https://)texttexttext
comment
News Feed
Katrina · Published on 2024-10-22 03:07:35 (2 years ago )
  
comment
www.ifunwap.com - ♥️1675577238.jpg Userdeleted · Published on 2023-02-05 06:07:17 (3 years ago )
Best wapsite on wapka site builder!
comment
Upchats1675570373.png charmingdc · Published on 2023-02-05 04:12:53 (3 years ago )
Upchats best online chatting site
#upchats
Upchats
comment
Upchats1675570239.png charmingdc · Published on 2023-02-05 04:10:39 (3 years ago )
Upchats best online I site
#upchats #keep #moving
Upchats
comment
chat4all1675471061.png amen08 · Published on 2023-02-04 00:37:41 (3 years ago )
latest chat4all version
comment
www.ifunwap.com 1673224083.jpg Userdeleted · Published on 2023-01-09 00:28:03 (3 years ago )
Visit www.ifunwap.com 
comment
Phlamez1672729667.jpg phlamez · Published on 2023-01-03 07:07:47 (3 years ago )
comment
Osman1672351328.mp4 kritika · Published on 2022-12-29 22:02:08 (3 years ago )
Gazi 
comment
new-idea-discovered-by-mashionmario1671985547.png mario · Published on 2022-12-25 16:25:46 (3 years ago )
hello new idea is launch. displayed newest message from footer to header build if you need these type of message lister for a years now in wapka just comment i know them.
comment
www.ifunwap.com 1671944448.jpg Userdeleted · Published on 2022-12-25 05:00:47 (3 years ago )
👉 http://www.ifunwap.com 😍
comment
finewap-v111670399640.png Salmonvikash · Published on 2022-12-07 07:54:00 (3 years ago )
Theme key:
[de15ffaccbbba3585f05be2914b77f21:398058]
comment