Author Topic: Introducing: The really fast Throwback (retro) template. Updated.  (Read 10802 times)

0 Members and 1 Guest are viewing this topic.

Offline Mars

  • Operator
  • Insane poster
  • *****
  • Posts: 1830
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #15 on: May 25, 2018, 06:48:59 AM »

To force a date to specific format , use  the Macro   time | new format | when=date

%item-modified% use by default  the system format, it is necessary to have universal format  by using
%item-modified-dt% or %item-added-dt%

example:
%item-modified% => 05/25/16 15:00:56
%item-modified-dt% => 42515.6256593403


{.time|mm/dd/yy|when=%item-modified-dt%.}


http://rejetto.com/wiki/index.php?title=HFS:_Time_format#Text_formatting

Code: [Select]
[+file]
<td>%item-size%B<td>{.time|mm/dd/yy|when=%item-modified-dt%.}<td>%item-dl-count%

[+folder]
<td class='nosize'>folder<td>{.time|m/d/yy|when=%item-modified-dt%.}<td>%item-dl-count%

it is possible to have the date and time on two lines using separate macros

Code: [Select]
[+file]
<td>%item-size%B<td>{.time|mm/dd/yy|when=%item-modified-dt%.}<p>{.time|hh:nn:ss|when=%item-modified-dt%.}<td>%item-dl-count%

[+folder]
<td class='nosize'>folder<td>{.time|mm/dd/yy|when=%item-modified-dt%.}<p>{.time|hh:nn:ss|when=%item-modified-dt%.}<td>%item-dl-count%

by creating a personal alias this can give more clarity to the template

[+special:alias]
mtime=time|mm/dd/yy|when=%item-modified-dt%
htime=time|hh:nn:ss|when=%item-modified-dt%

Code: [Select]
[+file]
<td>%item-size%B<td>{.mtime.}<p>{.htime.}<td>%item-dl-count%

[+folder]
<td class='nosize'>folder<td>{.mtime.}<p>{.htime.}<td>%item-dl-count%

one to preserve the standardized format using the macro cut proposed by LeoNeeson

[+special:alias]
mtime=cut||10|%item-modified%
htime=cut|12||%item-modified%

there are multiple possibilities  ;)
« Last Edit: May 25, 2018, 07:29:03 AM by Mars »

Follow members gave a thank to your post:


Offline danny

  • Experienced poster
  • ***
  • Posts: 42
    • View Profile
Re: Throwback (retro) template (experimental revision)
« Reply #16 on: May 25, 2018, 08:32:39 AM »
...
I still have to see how to hide columns on small screen sizes (too much work for today, perhaps I'll do it on the next few days).  (I've uploaded a new revision, here. Report any bugs, if you find them)
I have rewritten it to do what you described, not by slower macros, but by speeding it up with some old school HTML4T, utilizing the table logic anchored diagonally.  The stopwatch likes this solution. 
Extra columns get out of the way, and filenames display on one line. 
I also took the liberty of changing the color theme to match Royale Noir. 

Edit:
This was incorporated into release 7 after revising the delete and upload functions. 
« Last Edit: May 27, 2018, 03:24:31 PM by danny »

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 785
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #17 on: May 25, 2018, 03:52:20 PM »
Hey Danny,

thought it was worth a mention
* Required downloading a php exe and set cgi /cli path
http://php.net/manual/en/migration5.cli-cgi.php

https://windows.php.net/download/

Although, php is somewhat aviable, but not officially supported, but is capable:
http://rejetto.com/forum/index.php?action=profile;u=9522;area=showposts;sa=topics;start=30

thx raybob
« Last Edit: May 29, 2018, 02:05:27 AM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline danny

  • Experienced poster
  • ***
  • Posts: 42
    • View Profile
Update. Phone friendly.
« Reply #18 on: May 26, 2018, 06:19:15 AM »
Updates are usually located at the first post in this thread.

Throwback7.tpl has single-line listings and will move extra columns out of the way, as needed.     

Kudos and thanks to LeoNeeson for samples and ideas. 

Edit: Saved here for reference
« Last Edit: July 19, 2018, 08:40:25 PM by danny »

Offline LeoNeeson

  • Insane poster
  • *****
  • Posts: 466
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: Update. Phone friendly.
« Reply #19 on: May 27, 2018, 03:15:35 AM »
@Mars: thanks for the explanation! (I've found very interesting how '[+special:alias]' work, especially on how we can combine macro code with an alias (an alias that works almost the same as a 'variable'). It surely gives endless possibilities and makes the code more easy to handle.

@Danny: I've tested the new Throwback7.tpl and this is getting better and better (that gradient background looks great). By the way, I don't see any more enhancements available without slowing down the server, so, it's done for me, at least for now.

Cheers,
Leo.-
• HFS ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Offline Chris Harris

  • Regular poster
  • **
  • Posts: 22
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #20 on: May 27, 2018, 10:51:40 AM »
I just installed this template. It works except for one folder whose name is "1" all the sub folders the folder names and the file names (except one) are NOT shown. The folders and files are there with an icon. If I hover the cursor over the icon, the correct folder/file name is shown and and clicking the icon gives the correct response.

In the lower folders most of the folder/file names are also NOT shown.

What have I done wrong?

Chris

Offline danny

  • Experienced poster
  • ***
  • Posts: 42
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #21 on: May 27, 2018, 04:09:19 PM »
What browser are you using?  Phone, Tablet, PC, Mac?  Which specific template file are you using?   
Try adding a{color:#8D8} to the bottom of the [style] section in the template.
Try version 4 or 6 of this template, to see if there's a difference.
« Last Edit: May 29, 2018, 07:48:43 PM by danny »

Offline Chris Harris

  • Regular poster
  • **
  • Posts: 22
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #22 on: May 28, 2018, 08:47:13 AM »
I was using Throwback7.tpl. I tried Throwback6x.tpl with same effect.

I see the problem on Android 7.1 with Google Chrome and Samsung Internet and on Windows 10 with Google Chrome and Microsoft Edge.

I tried adding a{color:#8D8} to the style section of Throwback7.tpl  will same problem.

I am going back to using mobil-light_wo_pic.zip  from http://rejetto.com/forum/index.php?topic=11754. I added the text to the diff template the root directory. This provides a responsive screen and I can turn the menu on and off.

Chris

Follow members gave a thank to your post:


Offline danny

  • Experienced poster
  • ***
  • Posts: 42
    • View Profile
error
« Reply #23 on: May 29, 2018, 12:56:25 AM »
. . . I see the problem on Android 7.1 with Google Chrome and Samsung Internet and on Windows 10 with Google Chrome and Microsoft Edge.. . . diff template the root directory.. . .
Thanks Chris! 
I found possibilities for the error.  It doesn't happen in normal conditions.  Version 7 didn't have contingencies to handle rare events, such as unclassified items in diff template and adaptive tables still drawing after css finishes.  Those are possible.

To remedy this, I've added fallback code and rewritten the css to half size for version 8.
That took all day. 
And still working on it.

For preview, here is the version 8 core.
Because it is a re-write, the extra features haven't been added at this time.
(A macro that provisions a delete feature costs 28% of the speed. It is not added yet) 
So, if you want to find out how fast HFS is supposed to go, try this:

Edit: Basic "core" of version 9 added here, because similar.   
The add-on diff txt for upload folder features, works with both.
« Last Edit: July 17, 2018, 10:10:17 PM by danny »

Offline Chris Harris

  • Regular poster
  • **
  • Posts: 22
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #24 on: May 29, 2018, 11:41:09 PM »
I tired TB6-phone.tpl. Some problem.

I think the problem starts with a folder called "1". For any reason could this cause a problem?
Chris

Follow members gave a thank to your post:


Offline Chris Harris

  • Regular poster
  • **
  • Posts: 22
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #25 on: May 29, 2018, 11:44:58 PM »
Still a problem with TB8-Core.tpl

Offline danny

  • Experienced poster
  • ***
  • Posts: 42
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #26 on: May 30, 2018, 07:08:38 AM »
I tired TB6-phone.tpl. Some problem. I think the problem starts with a folder called "1". For any reason could this cause a problem?...Still a problem with TB8-Core.tpl
Thanks Chris! 

The most likely trouble is a diff-template has blocked some display rendering. 

First: right-click the root folder, properties, remove anything in the diff-template tab. 
Second: right-click the 1 folder, properties, remove anything in the diff-template tab.
Third: Menu, Save file system.

How to:
The throwback is a replacement main template (not for use as a diff-template). 
To use a new main template, you'd save the tpl file in the same folder as hfs.exe, and then:
Menu
HTML-template
Change-file
Throwback7.tpl

« Last Edit: May 30, 2018, 07:25:34 AM by danny »

Offline Chris Harris

  • Regular poster
  • **
  • Posts: 22
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #27 on: May 30, 2018, 09:08:28 AM »
Hi

I just checked, I have used TB8-Core.tpl as main template. It is in the hfs directory and changed the template file to it.

I checked that there is nothing in the diff template area for the root or any other directories

The problem seem to happen on one subfolder of the listed folder. Most BUT not all folders and files have no names shown. .mp3, .mp4 , .mkv and .flv files have names displayed.


Chris

Offline danny

  • Experienced poster
  • ***
  • Posts: 42
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #28 on: May 30, 2018, 07:56:55 PM »
If you have a file named hfs.diff.tpl or hfs.filelist.tpl, in that "1" folder, it will display differently.
Are you using an up to date HFS build 299 or 300 (2.3K or 2.3L)?
299-1/2:  https://drive.google.com/open?id=12GRINYSKe8H-VZtpsbvJkabvdTrB48F3
 
So, if I understand correctly, ordinary file types and folders fail the css/style color in your folder named "1" but not in your other folders and not on other HFS servers. That may be in the VFS, possibly fixable by making a new folder and copying the content into it.

Since the hover color works, but the main color doesn't, you can try this: 
Edit the [file] section. 
replace %item-name%
with <font color="#88DD88">%item-name%</font>

More specifically.
Find this:  <a href="%item-url%"><font color="white">&#9671;</font>&nbsp;%item-name%</a></td>
Change to: <a href="%item-url%"><font color="white">&#9671;</font>&nbsp;<font color="#88DD88">%item-name%</font></a></td>
Or: <font color="white">&#9671;</font>&nbsp;<a href="%item-url%" style="color:#88DD88">%item-name%</a></td>

That latter method with the inline style is preferred, because the hover/highlight color still works.

Offline Chris Harris

  • Regular poster
  • **
  • Posts: 22
    • View Profile
Re: Introducing: The really fast Throwback (retro) template. Updated.
« Reply #29 on: May 31, 2018, 06:54:34 AM »
Oops!!

I just found file hfs.diff.tpl in "1". I deleted it and now I can see everything.
My apologies.

Chris

Follow members gave a thank to your post: