Search found 13 matches

by leedalgoo
Wed Mar 13, 2024 10:52 am
Forum: Ask any question
Topic: I Need help about make forum search system.
Replies: 3
Views: 21537

Re: I Need help about make forum search system.

Add this somewhere <form method="get"> <input type="text" name="search" value=""> <input type="submit"> </form> Just add attribute 'action' in form if you want to redirect it to other page then in forum lister code, add this <a href="/forum.html...
by leedalgoo
Mon Feb 26, 2024 2:02 pm
Forum: Problems
Topic: [Fixed] Bug When Restoring Themes
Replies: 2
Views: 17237

[Fixed] Bug When Restoring Themes

As you know, Lua code only works in Advanced Function » Script. It won't works when you put them on Basic Function » New Codes or Advanced Function » New TAG Code. When i restored a theme that mostly use Lua code inside it, the lua code went to Basic Function » New Codes instead of Advanced Function...
by leedalgoo
Mon Feb 26, 2024 10:36 am
Forum: Ask any question
Topic: How to create Paging using Lua?
Replies: 4
Views: 24994

Re: How to create Paging using Lua?

Somehow, I found a temporary solution to make paging with lua. The code is super messy, if you know another way, this thread is open for discussion. if (req.get.page == nil) then pagenumber = "1" else pagenumber = req.get.page end local param_paging = { page = pagenumber + 1, limit = 10, o...
by leedalgoo
Sun Feb 25, 2024 9:56 am
Forum: Ask any question
Topic: How to create Paging using Lua?
Replies: 4
Views: 24994

How to create Paging using Lua?

I take a guess that html.paging() is used to create paging right?
But how about the parameters and tags for paging function? I try to treat it like html.render_tag() but it's not working.
by leedalgoo
Sat Feb 24, 2024 6:43 am
Forum: Ask any question
Topic: How to make url slug using LUA?
Replies: 3
Views: 20529

Re: How to make url slug using LUA?

Thank you so much :o , so the keypoint is we can use lua function inside the double brackets by using this delimiter

Code: Select all

%tag|function%
by leedalgoo
Sat Feb 24, 2024 2:26 am
Forum: Ask any question
Topic: How to make url slug using LUA?
Replies: 3
Views: 20529

How to make url slug using LUA?

I know there is url.slug() function and i know how to use it too. I will give you the example of my problem cause i don't know how to explain it local param_post = { limit = 10, order = "id_desc" } local is_ok, postlist = api.post_info(param_post) local post_index_html = [=[ blah blah <a h...
by leedalgoo
Wed Feb 07, 2024 8:39 am
Forum: Problems
Topic: Can anyone tell me how to use this api new method
Replies: 23
Views: 77509

Re: Can anyone tell me how to use this api new method

I think they clearly said that m.wapka.org is no longer maintained, so you have to use web.wapka.org
by leedalgoo
Wed May 03, 2023 1:31 am
Forum: Newbies questions
Topic: Post list with thumbnail, also with comment section
Replies: 7
Views: 316532

Re: Post list with thumbnail, also with comment section

Pin2 wrote: Tue May 02, 2023 11:06 am Hello bro I am new in this site please help me ? How to add new page in site ?
Image

Well, it's clearly written in dashboard 'new page' :roll:
by leedalgoo
Wed May 03, 2023 1:26 am
Forum: Ask any question
Topic: How to add automatic login to my wapka site? Please help
Replies: 6
Views: 298631

Re: How to add automatic login to my wapka site? Please help

Maliexswizzer wrote: Tue May 02, 2023 6:41 pm Bro, it has been updated, please help me
Codes :

Code: Select all

<input type="checkbox" name="autologin" value="True"/> Remember me
Config :

Code: Select all

<AUTOLOGIN>{{POST(autologin)}}</AUTOLOGIN>