rejetto forum

The Throwback (retro) template. With large folder and mobile support.

danny · 129 · 61786

0 Members and 2 Guests are viewing this topic.

Offline danny

  • Tireless poster
  • ****
    • Posts: 192
    • View Profile
Throwback for HFS2.4 RC5 added at the first post.
It works for RC4, RC5, etc

See also HFS2.4 RC5

Hot tip:  Choose what folder you see after login
Menu (not in easy mode)
Other options
User accounts
group (can change password)
After login, redirect to
/


Edit: Re-uploaded with a better login for phone/mobile.   Thanks DJ!!!


Offline danny

  • Tireless poster
  • ****
    • Posts: 192
    • View Profile
I browsed a folder with 1200 photos with your tpl, enabled thumbnails, and got no errors, all loaded at first attempt.  I repeated the test while a script was bombing with tens of requests per second on the same address (127.0.0.1), no errors and the photos continued to be downloaded and watched.
Glad to hear that the newly revised image lazyload script is working as expected. 


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
you asked for the "top speed" of the graph, but it is not good for you, IMO.
it is the top speed of the stuff you see in the chart, and it is reset now and then.
You, instead, probably want to keep the top until restart.
You should build this information with events.
Something like

[every 1 sec]
set|#top| max|#top|%speed-out%


Offline danny

  • Tireless poster
  • ****
    • Posts: 192
    • View Profile
...[every 1 sec]
set|#top| max|#top|%speed-out%

Thought I would do %sym-speed% positioned after loading page/script.
Also [sym-speed]
{.set|#top| max|#top|%speed-out%.}

Unfortunately, {.^#top.} output is not numeric. 
Output is the word  max

P.S. Not using events file because this project uses only 1 file, which is only the template.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
Thought I would do %sym-speed% positioned after loading page/script.

if you do that, you will measure just what's the speed of the server at the time a list is ready to be sent (before) to the browser. The very first time it will likely be zero, because nothing is sent yet. And even after it will not be meaningful, and in the worst case will never consider the speed generated by files download.
These commands happen on the server, so a command  put "after" is still "before" for the client.
HFS itself calculates the speed each second, so sampling it each second should produce a good result.

as a side note, don't use sym- to load a section, it's deprecated, a v2.2 thing, will likely be removed soon. Use {.$nameOfTheSection.} instead, which is a shortcut for the 'section' command'.


Quote
Unfortunately, {.^#top.} output is not numeric.  Output is the word  max

max is a command and requires its brackets
{.set|#top| {.max|{.^#top.}|%speed-out%.} .}

Quote
P.S. Not using events file because this project uses only 1 file, which is only the template.

i hope we'll have a solution to this in the near future
« Last Edit: June 30, 2020, 09:26:15 AM by rejetto »


Offline danny

  • Tireless poster
  • ****
    • Posts: 192
    • View Profile
if you do that, you will measure just what's the speed of the server at the time a list is ready to be sent (before) to the browser. The very first time it will likely be zero, because nothing is sent yet.
Thanks!!  The numeric result helps.  And, I was just thinking that it would be necessary to add validation, such as if <1 then set #top to 122 (1 megabit) to get it started. I haven't made anything reliant on this metric yet--I just want the information available. 


Offline danny

  • Tireless poster
  • ****
    • Posts: 192
    • View Profile
Today is the 2nd Anniversary of Throwback template + DJ's original music shuffle player.

Two years ago, I wanted Hfs to work for any sort of connection and for any size folder.  After that got done, I wanted it to rock (or other music).  By now, it has rocked for 365*2 = 730 days so far.  Fault tolerant and sure to play music. . .  Thanks DJ!

Here is Throwback 2nd Anniversary release (which also begins the XHTML update).  For Rejetto's HFS 2.4 RC5 and HFS 2.4 RC7.

Edit:  I've posted a copy of this file as Throwback14v2-for-HFS2.4.tpl at Post#1.  Future versions will be based on this.


Offline easyspot

  • Occasional poster
  • *
    • Posts: 10
    • View Profile
this template is good n fast but it will be better can display folder.jpg as folder icon
btw how to make the music player not going shuffled? changed to shuffle=0 but still shuffled. thanks.
« Last Edit: September 10, 2020, 11:30:57 AM by easyspot »


Offline danny

  • Tireless poster
  • ****
    • Posts: 192
    • View Profile
this template is good n fast but it will be better can display folder.jpg as folder icon btw how to make the music player not going shuffled? changed to shuffle=0 but still shuffled. thanks.
The usual option is to click the icon next to the music filename, and then it should play that particular file first.