Hôm bữa có ông bên tiaxgame giới thiệu cho ace về wapka hàng shopee, thế là mình lặn lội qua đó xem nó có dùng ổn ko. Sau một đêm say giấc nồng, mình đã nghịch được một em shoutbox chạy bằng gạo, tuy ko được autoload nhưng tốc độ load của nó khá ổn. Nhân tiện ace cho mình xin ít gạch để xây nhà nhé :cheems:
Chức năng:
- Đăng ký, đăng nhập, hộp chat đơn giản
- Cập nhật 18:07, 22/8/2021: thành viên có thể upload file
- Cập nhật 24/08/2021:
+) chuyển tệp css về wapka (sửa css tại page main-css)
+) thêm mục blog (chưa sửa được bài viết)
+) thêm trang cá nhân
+) sửa lại hộp chat (ko auto load gửi, chỉ auto load nội dung chat vì mình nhận thấy là chat ở wapka khá nhanh, sửa lại nội dung chuẩn bị load tại page list-chat)
+) trực tuyến
Chỉnh sửa template: Web > Pages > Codes (hoặc Tags and Functions)
Đăng ký (User Registration)
Enter code:
<div class="phdr"><i class="fa fa-user-plus" aria-hidden="true"></i> Đăng ký</div>
:IFSET(%notify%).THEN(<div class="rmenu">);
:VALUE(%notify%).IFEQ(User name already exists).THEN(Tài khoản đã tồn tại).ELSE();
:VALUE(%notify%).IFEQ(Token expired try again).THEN(Vui lòng điền đầy đủ thông tin).ELSE(%notify%);
:IFSET(%notify%).THEN(</div>);
<div class="menu">
<form action="/registration" method="post"> <b>Tên tài khoản:</b><center><input type="text" placeholder="Nhập tên tài khoản" name="username" class="w3-input" required></center><b>Email:</b><center><input type="email" placeholder="Email của bạn" class="w3-input" name="email" required> </center><b>Mật khẩu:</b><center><input type="password" placeholder="Tối thiểu 8 kí tự" class="w3-input" name="password" required> </center> <div style="text-align:center;margin-top:10px"><button type="submit" class="button" style="padding:10px;width:30%">Đăng ký</button></div> </form>
</div>
:VALUE(Đăng ký).SET(title).NULL;
Enter config:
<USERNAME>:POST(username);</USERNAME><EMAIL>:POST(email);</EMAIL><PASSWORD>:POST(password);</PASSWORD><TYPE>Active</TYPE><ROLE>Subscriber</ROLE>
item will be visible for:
Visitor
------
Đăng nhập (User Login)
Enter code:
<div class="phdr"><i class="fa fa-sign-in" aria-hidden="true"></i> Đăng nhập</div>
:IFSET(%notify%).THEN(<div class="rmenu">);
:VALUE(%notify%).IFEQ(Username or email required).THEN(Thông tin đăng nhập không chính xác).ELSE();
:VALUE(%notify%).IFEQ(Token expired try again).THEN(Vui lòng điền đầy đủ thông tin).ELSE();
:VALUE(%notify%).IFEQ(Wrong password).THEN(Mật khẩu không chính xác).ELSE(%notify%);
:IFSET(%notify%).THEN(</div>);
<div class="menu" style="padding:2%;text-align: center;">
<img width="110px" src="https://i.imgur.com/7ZBCcIm.png"/>
</div>
<div class="menu" style="padding:2%;">
<form action="" method="post">
<b>Tên đăng nhập:</b><br />
<input class="w3-input" id="login-nick" placeholder="Tên đăng nhập" type="text" name="username" value="" maxlength="32" /><br />
<b>Mật khẩu:</b><br />
<input class="w3-input" id="login-password" placeholder="Mật khẩu" type="password" name="password" maxlength="32" /><br />
<center>
<button type="submit" class="button">Đăng nhập</button>
</center>
</div>
:VALUE(Đăng nhập).SET(title).NULL;
Enter config:
<USERNAME>:POST(username);</USERNAME><PASSWORD>:POST(password);</PASSWORD>
item will be visible for:
Visitor
------
FONT CHỮ TRÁI TIM ([USER=33]@Nhox49[/USER])
https://cdn.wapka.org/003py4/83f4e938866e460fbe7e0d23836f3118/zviet.otf
------
TẢI XUỐNG:
Bạn cần phải đăng nhập để xem nội dung này
[UWSL]wapka.org: Control panel > Pre-build Themes > Restore[/UWSL]
[UWSL]nhập tệp json đã tải về và chọn restore[/UWSL]
-------
Sửa lỗi:
Pages > index > Codes > API Data Creator > Ô thứ 2, sửa THEM thành THEN (lỗi của mình trong khi soạn thảo)