rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: rejetto on November 05, 2007, 06:20:21 AM

Title: Testing build #140
Post by: rejetto on November 05, 2007, 06:20:21 AM
sorry for double publishing :(

download @ www.dovedove.it/hfs/hfs140.exe

what's new
- ?filter was not working recursively on virtual folders
- incorrect behaviour accessing /~
Title: Re: Testing build #140
Post by: ELEVENNNN on November 05, 2007, 06:27:40 AM
I feel so proud finding both :| Can this be?

This was a waste of a post, I just wanted to post of my mad bug finding, ehm delphi coding skills.

-Kurt
Title: Re: Testing build #140
Post by: TSG on November 05, 2007, 06:32:29 AM
:) search is sexy, i'll begin creating a form for it.
Title: Re: Testing build #140
Post by: ELEVENNNN on November 05, 2007, 06:45:37 AM
I'll be jacking that form ;)

Haha, Rejetto this is honestly very great... as of even a week ago I thought this was still at least a few months out. this was a great surprise and it works perfectly thus far.  Thank you for staying up so late and doing all you do to help people with HFS while still continuing to have a life..

I'll bet you will enjoy sleeping...

I LOVE THE SEARCH YEAAAA ?recursive&filter=*tool*... and for the other way around... ?filter=*tool*&recursive
yeaaaa

-Kurt
Title: Re: Testing build #140
Post by: TSG on November 05, 2007, 09:03:07 AM
There is a bug with files-filter, it shows all the folders, then the files you are searching for.

folders-filter appears to not work locally for me... just hangs, might be just me doing it wrong though.

Form javascript completed :D checking for bugs atm. Coupla things to add still, but the basic search functionality is there.
Title: Re: Testing build #140
Post by: Comrade Elisey on November 05, 2007, 12:05:19 PM
i wanna create search on server? but i don't know javascript =(
please help me with it :'(
Title: Re: Testing build #140
Post by: TSG on November 05, 2007, 12:20:21 PM
Wait until we have debugged it then i will post a generic version everyone can use.
Title: Re: Testing build #140
Post by: rejetto on November 05, 2007, 03:01:55 PM
There is a bug with files-filter, it shows all the folders, then the files you are searching for.

it is not a bug. you just filter the files, not the folders. rethink it. that is not a search, it is a filter.
if you want to search a file with "zoot" but not folders, then
?files-filter=*zoot*&folders-filter=\*

Quote
folders-filter appears to not work locally for me... just hangs, might be just me doing it wrong though.

it works to me. let me know if you find something about your problem. try the temp reset options.
Title: Re: Testing build #140
Post by: TSG on November 05, 2007, 03:54:56 PM
All good, i must missed that one completely.
Title: Re: Testing build #140
Post by: Alons0 on November 05, 2007, 07:14:32 PM
How is search working or maybe how will it working in the other templates? I wanna know how i can search :-\
Title: Re: Testing build #140
Post by: ELEVENNNN on November 05, 2007, 11:14:31 PM
Alans0, before the actual GUI (if you could call it that) that TSG is finishing up is made generic, you can just use directives in your URL such as:

http://alans0site.com/?recursive&filter=*term*
                                 ^^^                 ^^
                         Search everything     Keyword

Also you can do:

http://alans0site.com/?recursive&filter=*term*.mp3   so it searches for the word term and only .mp3 files are shown.

-Kurt
Title: Re: Testing build #140
Post by: rejetto on November 06, 2007, 02:25:05 AM
maybe it's a good idea to have ?search=XXX that behaves as an alias for ?recursive&filter=*XXX*
what you think ?
Title: Re: Testing build #140
Post by: maverick on November 06, 2007, 02:30:36 AM
maybe it's a good idea to have ?search=XXX that behaves as an alias for ?recursive&filter=*XXX*
what you think ?

I think it is a good idea.  It might make it easier for some to understand what it's for.
Title: Re: Testing build #140
Post by: Foggy on November 06, 2007, 05:58:05 AM
maybe it's a good idea to have ?search=XXX that behaves as an alias for ?recursive&filter=*XXX*
what you think ?

Its a good idea but I cant really see any use for it unless you are searching directly from the address bar because its safe to say that any new templates from now on will have a search form built in.
Title: Re: Testing build #140
Post by: ELEVENNNN on November 06, 2007, 06:40:45 AM
Yes, I don't see any downsides to ?search=TERM for the standard searches that can't be resolved by other filters. This would be a good idea imo. 

-Kurt
Title: Re: Testing build #140
Post by: TSG on November 06, 2007, 07:35:06 AM
The filters give more control. Having ?search= would make things more understandable, ?search = ?filter returning all items in the database, a generic search you could say. ?search-files = ?files-filter (but you don't have to filter folders out with folders-filter=\), search-folders = ?folders-filter (but you don't have to filter files out with files-filter=\).

I also like how we have the option of recursive and non-recursive search, and this is where the terminology crosses over, without ?recursive, you basically FILTER the current content on the page, whereas using ?recursive acts more like a search of the database.

I like how we have the control to search files, folders and both. I see the progression this feature has had, and essentially it is only ever going to be used as a search, but then it isn't a search but rather a filter of the content, i guess you could say we are stuck between terminologies.
Title: Re: Testing build #140
Post by: TCube on November 06, 2007, 09:35:46 AM
Salut Rejetto ! thks for 140 [jumped from 126 to 140 - no more pblm with "login" under 128]
 flashback on pblm (http://www.rejetto.com/forum/index.php?topic=4952.0)
Title: Re: Testing build #140
Post by: Foggy on November 06, 2007, 09:41:03 AM
The filters give more control. Having ?search= would make things more understandable, ?search = ?filter returning all items in the database, a generic search you could say. ?search-files = ?files-filter (but you don't have to filter folders out with folders-filter=\), search-folders = ?folders-filter (but you don't have to filter files out with files-filter=\).

I think it would be a lot more simpler that way and how TSG has described not needing to filter out folders/files is how I originally thought the search would work until I learnt otherwise.
Title: Re: Testing build #140
Post by: Giant Eagle on November 07, 2007, 10:53:03 AM
maybe it's a good idea to have ?search=XXX that behaves as an alias for ?recursive&filter=*XXX*
what you think ?

Yes, that would really help. Makes it possible to create a non-js search form aswell.
Title: Re: Testing build #140
Post by: Garphy on November 07, 2007, 12:23:20 PM
1."Open in browser" fail...it shows the folder where hfs.exe is

2.new new URL parameters is needed to seach in the subfolders
but i suggest:
Quote
<FORM action="~search" method="POST">
<select name=filter>
<OPTION value=0>both</OPTION>
<OPTION value=1>folders</OPTION>
<OPTION value=2>files</OPTION>
</select>
<INPUT TYPE="checkbox" NAME="subfolder" VALUE="1" checked="checked"> Search in the subfolders
<INPUT TYPE="text" NAME="keyword" SIZE="41" MAXLENGTH="100" VALUE="">
<INPUT name="Send" type="submit" value="Search">
</FORM>

~search build in the hfs
Title: Re: Testing build #140
Post by: TSG on November 07, 2007, 01:36:17 PM
Open in browser is fine.

Whats your point with the second part? I already have this working with the filter params, rejetto is contemplating changing the terminology thats all.
Title: Re: Testing build #140
Post by: rejetto on November 07, 2007, 06:30:52 PM
URLs with ~ are going to disappear in the future. (maybe in HFS3)
they will be replaced by ?commands.
this is much more close to the standards.
Title: Re: Testing build #140
Post by: Mars on November 07, 2007, 06:44:18 PM
Quote
new URL parameters is needed to seach in the subfolders

Rejetto factory of the tools, to you to use them to build what you want in your templates, some lines of code in hfs allow to avoid some pages of javascript, but you should not to ask in hfs to know how to make everything ...

Rejetto fabrique les outils ( filter, files-filter, sort, recursive ....), à vous de les utiliser pour construire avec ces outils ce que vous voulez dans vos templates, quelques lignes de code en delphi suffisent parfois, là où quelques pages de javascript seraient nécessaires, mais on ne peut demander à hfs de savoir faire toute les choses qu'on voudrait lui voir faire...

it was not directly to you rejetto but to all ask to you making this or this, somes limits are necessary.

Sample : can you transform hfs, i would like to go on MOON with it( Mars(ch), I know soon it   ;D ;D ;D)
Title: Re: Testing build #140
Post by: rejetto on November 07, 2007, 07:04:25 PM
i didn't understand you, mars
when you write me you can use french, better than an automatic translation
Title: Re: Testing build #140
Post by: Mars on November 07, 2007, 11:20:16 PM
rejetto

HFS --> other options-->default sorting ->> select 'by extension' don't work,  'by name' is always activated

Quote
code source

foldersBefore:=mainfrm.foldersbeforeChk.checked;
if defSorting = 'time' then sortBy:=SB_TIME
else if defSorting = 'size' then sortBy:=SB_SIZE
else if defSorting = 'hits' then sortBy:=SB_DL
else if defSorting = 'extension' then sortBy:=SB_EXT          //this line is missing
else sortBy:=SB_NAME;
with TconnData(conn.data).params do
  begin
  v:=values['sort'];
  rev:=indexOf('rev') >= 0;
  end;
if v > '' then
  case v[1] of
    'n': sortBy:=SB_NAME;
    'e': sortBy:=SB_EXT;
    's': sortBy:=SB_SIZE;
    't': sortBy:=SB_TIME;
    'd': sortBy:=SB_DL;
    end;
Title: Re: Testing build #140
Post by: rejetto on November 08, 2007, 12:06:40 AM
thank you for pointing me
i applied the fix
Title: Re: Testing build #140
Post by: Foggy on November 08, 2007, 10:58:03 AM
This build thinks it is build #139 and offered to upgrade me to #140
Title: Re: Testing build #140
Post by: rejetto on November 08, 2007, 12:49:55 PM
garphy topic moved to www.rejetto.com/forum/?topic=5159
Title: Re: Testing build #140
Post by: rejetto on November 08, 2007, 12:50:47 PM
This build thinks it is build #139 and offered to upgrade me to #140

this problem is only for those who downloaded the build few minutes after the publishing.
already solved.