Page 1 of 1
LUA API SCRIPTING DOCUMENTATION
Posted: Fri May 29, 2026 9:22 am
by Nobletech
Please Admin I don't where to find the Lua api. documentation how do you we use it properly?
Like some of the methods we don't actually know how to access it like (parameters) Like the API data Lister in lua always returns nil. Please we need clarification
Re: LUA API SCRIPTING DOCUMENTATION
Posted: Fri May 29, 2026 10:39 pm
by Lamismaxkria
Hace años abandoné lua, muy básico.
Code: Select all
local tags = [=[ <center> <div class="container" id="small-video" style="margin: 8px; width: 95%; height: auto; background-color: ffffff; color: #000000; text-align: left;"> <embed src="/avatar?id=%userid%" class="icon" style="width: 90px; height: 90px; border-radius: 50%; float: left;"/> <br> cargado por <a href="/user/?id=%userid%"> <b> %username% </b> </a> <small style="color: blue; float: right;"> {{VALUE(%date%)@DATE(AGO)}} <br> %format% %category% </small> <br> Carpeta: <a href="/category/%dir%/{{SLUG(%dirname%)}}"> <b> %dirname%</b> </a> <br> Tamaño: <b>%size% </b> <br> <div> <table> <tr><td> <img rel="follow" class="img" src="%thumb%" title="%name%" name="%name%" alt="%name%" width="auto" height="auto" style="border-radius: 6px; width: auto; height: auto; float: left;" onerror="this.src='https://i.imgur.com/qRjNfma.png';"/> </td><td> <h4 style="padding: 4px; color: #000000; -webkit-text-stroke-width: 0.4px; font-weight: 100;"> %name%.%format% </h4> </td></tr></table> </div> <br> <a href="/pst/?id=%id%&uid=%userid%" class="comment-btn" style="float: left;"> <b>🔗 Reproducir en línea ⏩</b> </a> <br><br> </div></center> ]=] local param = { limit = 10, order = "id_desc" } local is_ok, list = api.file_info(param) if is_ok then print('\n \n') print(html.render_tag(tags, list, true)) print('\n \n') end
Re: LUA API SCRIPTING DOCUMENTATION
Posted: Sat May 30, 2026 11:43 am
by Nobletech
what of the api data lister