rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Funboss on August 12, 2009, 10:59:12 AM

Title: HFS doesn't load dirs with lots of files
Post by: Funboss on August 12, 2009, 10:59:12 AM
Hello,

Problem
I've got some directories containing lots of files. When dirs contain lots (read: too many) files, HFS doesn't load the page.

I couldn't find neither this problem nor a solution, so I wrote this message. Is there a solution? I thought about a script which seperates the dir into pages with a defined number of files per page.

Now I just split my dirs into pieces, but that's no solution to me.
Title: Re: HFS doesn't load dirs with lots of files
Post by: bacter on August 12, 2009, 12:20:04 PM
HFS creates the pages with (too) many files - the problem are the browsers that can't display so large pages.

The solution to split very huge directories in different pages can be done with macros - and is already done so in some templates. See for example:

http://www.rejetto.com/forum/index.php?topic=5045.0 (http://www.rejetto.com/forum/index.php?topic=5045.0)

http://www.rejetto.com/forum/index.php?topic=5353.90 (http://www.rejetto.com/forum/index.php?topic=5353.90)

Title: Re: HFS doesn't load dirs with lots of files
Post by: Funboss on August 13, 2009, 01:50:22 PM
Thanks for your answer.

Is it true that it doesn't work with the latest stable version available (2.2F) yet? That would mean I should use an beta version in order to accomplish working with several pages? The file 'new from mars.tpl' says that i've got to use version 2.3+

My French is not that good. I've attached an example. Just downloaden build #242 (2.3beta) and changed template (new from mars.tpl).

Greetings.
Title: Re: HFS doesn't load dirs with lots of files
Post by: rejetto on August 13, 2009, 01:58:32 PM
try disabling
menu > virtual file system > use system icons
Title: Re: HFS doesn't load dirs with lots of files
Post by: Funboss on August 13, 2009, 10:48:05 PM
Still the same output...

I do not understand what the system icons have to do with this problem. However, you are 'the man' when it comes to HFS.
I downloaded build #242 (latest beta) and I only changed the template (new from mars 29-12-2007 1h24.tpl) and I disabled the usage of system icons.

When I remove '[special:begin]' from the template, the output is different (see attachment). Doesn't look like 'just a wrong adjustment' to me?
Title: Re: HFS doesn't load dirs with lots of files
Post by: SilentPliz on August 13, 2009, 11:23:46 PM
   
I don't understand clearly your problem, so I don't see how to fix it.
What is certain is that if you removed the section [special:begin] without knowing what you do, it's normal that you have a corrupt display ... you destroyed the code.  :-\

The default template of the beta version, without modification, does not work?
You have perhaps given incorrect permissions for your files (?)

If it's Internet Explorer 8 that you used, try to click as shown in the image.

You never know, on a misunderstanding, it can run.  ::)
Title: Re: HFS doesn't load dirs with lots of files
Post by: rejetto on August 14, 2009, 08:21:33 AM
my suggestion was related to the first problem, not the one with mars' template.

the problem with this template is that it's old and needed an update.
i made it for you: http://www.rejetto.com/forum/index.php?action=dlattach;topic=5353.0;attach=4390
this won't improve your french knowledge anyway ;)

coming back to my suggestion,
listing files with system icons takes 5-10 times more than without.
you said "doesn't load", and i thought it may have been "it takes forever".
you should try.
Title: Re: HFS doesn't load dirs with lots of files
Post by: Funboss on August 14, 2009, 09:53:19 AM
@ SilentPliz: You are right, I was just trying some things. I just don't want to ask everything to you guys! ;)

@ Rejetto: You made my day again. It clearly needed to be updated. It's not there yet, but I've got something to work with! (see attachment)

I need to apologize. I wasn't very clear about the problem. The page loaded, but it took so long that I think MAX EXEC TIME was exceeded, so I received an error page.

I certainly will use two (new) options: search and pages. I hope I can integrate my old template (HFS 2.2F) with this new one and use build #242 on my Linux server.

As you can see, with less than 7 pages, the script isn't perfect (yet). Would it be a solution to make it like this: Prev - Next - Page 2/5.

I want to thank you both for helping me out! I couldn't do it without you.
Title: Re: HFS doesn't load dirs with lots of files
Post by: Funboss on August 14, 2009, 03:19:02 PM
I quite don't understand the usage of '{.next.}'. Something to do with the development of language files?
I tried to replace it with 'next' and the pages-script/search still worked. I searched the website but haven't figured it out yet.

Macro's are used many times, but '{.next.}' doesn't work? (see attachment from last post)

Greetings from the Netherlands.
Title: Re: HFS doesn't load dirs with lots of files
Post by: SilentPliz on August 14, 2009, 03:36:31 PM
{.!text.}

This is for translation into different languages.
   
Normally they should not be visible. :o

You can remove them without worry.  ;)

eg:

{.!text.}
{.!English.}

[special:strings]
text=texte
English=Anglais


-------------------------------------------------------------------------
http://www.rejetto.com/wiki/index.php/HFS:_Template_macros#Localization

http://www.rejetto.com/wiki/index.php/HFS_Documentation_%28English%29
Title: Re: HFS doesn't load dirs with lots of files
Post by: Funboss on August 14, 2009, 09:06:07 PM
Thank you for all help. I made progress integrating both templates.

Now only struggling with that page-script, which does not work yet. If I fail I'll let you know..  ;) :P
Title: Re: HFS doesn't load dirs with lots of files
Post by: rejetto on August 17, 2009, 11:46:01 AM
This is for translation into different languages.
Normally they should not be visible. :o

i had a closer look: it's a problem of the template.
mars enclosed those parts in {:quotings:}, thus prevenging macro/translation.