rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: rejetto on February 19, 2009, 02:57:32 AM

Title: Testing build #224
Post by: rejetto on February 19, 2009, 02:57:32 AM
so much to do, so little time.
i tried to update template macros documention. it should include everything (except symbols and events).

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

what's new
+ new template macro: pos, var length
+ new parameters 'include' and 'case' for {.substring.}
+ new template symbol: %bread-idx%
+ new event script: [download name] www.rejetto.com/forum/?topic=6657
+ by specifying [+section] instead of [section], the new text will not overwrite a previously existing [section] but will be appended
* {.substring.} is now case insensitive by default
* no more {.trunc.} use {.substring||.|number.} instead
- {.time.} broken in build #223
Title: Re: Testing build #224
Post by: SoKoOLz on February 19, 2009, 09:50:20 AM
so dedicated,

Thank you
Title: Re: Testing build #224
Post by: rejetto on February 19, 2009, 11:35:13 AM
i forgot to specify this additional news
Quote
+ by specifying [+section] instead of [section], the new text will not overwrite a previously existing [section] but will be appended

editing now
Title: Re: Testing build #224
Post by: luca69 on February 19, 2009, 12:32:35 PM
i forgot to specify this additional news
Quote
+ by specifying [+section] instead of [section], the new text will not overwrite a previously existing [section] but will be appended

editing now

Cool  :o :o :o
Title: Re: Testing build #224
Post by: rejetto on February 19, 2009, 03:59:46 PM
crazy boris moved to http://www.rejetto.com/forum/index.php?topic=6681.0
Title: Re: Testing build #224
Post by: chthonic on February 19, 2009, 11:19:16 PM
ok.. so far so good.... the previous two version were uneventful for me.... the only big issue with me is how  it handles streaming vid requests.. only in this version.. no one had trouble connecting.. they said the feed was slower.. but it worked...

also noticed that #224 is listig connection differently now.... I like it this way.. where its showing het login ID and all the related threads are listed under the login ID.. this is MUCH better.. it was crazy the other way around where they would all be inter mixed.. now I can see which thread is which
Title: Re: Testing build #224
Post by: FRENCH CAN CAN on February 20, 2009, 04:01:01 PM
HFS 224 is bad, it is impossible to install a template.
Title: Re: Testing build #224
Post by: to87al on February 21, 2009, 01:01:14 PM
HI
I'm new in this forum.
I like hfs very much but this build gives me an error when i try to change the template file.
The build #223 is OK
I have attached the log file.
Have a nice day :).
Title: Re: Testing build #224
Post by: SilentPliz on February 21, 2009, 06:24:50 PM
I did some testing with different templates, it seems to be the RAWR template which causing these errors cited above.
Perhaps also other templates, but I have not tested all templates.  :o

default.tpl is OK
Mine are OK
Title: Re: Testing build #224
Post by: SilentPliz on February 21, 2009, 07:03:26 PM
   
The culprit in the RAWR TPL is in this section:  ;)

[special:import]
{.add folder|real|template.}
{.set item|/template|hide.}
{.set item|/template|no log.}
{.dialog|
Thank you for installing RAWR-Template!
- Please ensure the 'template' folder imports to the top level of your HFS server.
- If it doesn't, maybe you didn't import the template from beside the hfs.exe.
- Please ensure you are using the latest Beta with RAWR-Designs templates.
.}


   
Installed manually and without this section ... everything is OK.
Title: Re: Testing build #224
Post by: rejetto on February 21, 2009, 09:08:38 PM
mars macro discussion moved to
http://www.rejetto.com/forum/index.php?topic=6683.0
archive discussion moved to
http://www.rejetto.com/forum/index.php?topic=6685.0
Title: Re: Testing build #224
Post by: SilentPliz on February 21, 2009, 09:25:17 PM
A bug, perhaps related to the messages above.
Template HTML menu > Restore default does not refreshed... the menu is still active.

We must save the options and reload hfs for applied it.

Edit: The reverse is also true ... load a different template ... restore default option is still grayed out.

Title: Re: Testing build #224
Post by: rejetto on February 21, 2009, 11:45:38 PM
i'm sorry guys, i will soon publish 225 fixing this template problem
Title: Re: Testing build #224
Post by: Mars on February 21, 2009, 11:46:40 PM
The bug told by silentpliz comes since this post

Quote
BUILD 223
Rejetto. This method checks if the external template file has changed? Am I right? So, why dont to check in that time when a request arrives to the server from a user?
Title: Re: Testing build #224
Post by: rejetto on February 21, 2009, 11:52:08 PM
also noticed that #224 is listig connection differently now.... I like it this way.. where its showing het login ID and all the related threads are listed under the login ID.. this is MUCH better.. it was crazy the other way around where they would all be inter mixed.. now I can see which thread is which

i don't remember having touched that...
i know it can be largely improved
Title: Re: Testing build #224
Post by: rejetto on February 21, 2009, 11:53:14 PM
The bug told by silentpliz comes since this post
Quote
BUILD 223
Rejetto. This method checks if the external template file has changed? Am I right? So, why dont to check in that time when a request arrives to the server from a user?

you are right. i decided to give up with it, and just make the check once per second. ;)
Title: Re: Testing build #224
Post by: rejetto on February 21, 2009, 11:57:00 PM
i'll try to publish 225 before i go bed, but not sure.
i have to finish the archive selection.
i will now watch a film with my girlfriend now.
;)
Title: Re: Testing build #224
Post by: Mars on February 22, 2009, 12:02:52 AM
i make a come back to this bug

hfs.ini in sources

Quote
tpl-file=hfs.tpl
tpl-editor=C:\Programmi\PSPad editor\pspad.exe
delete-dont-ask=no
To by-pass this type of probleme, it is enough to modify the following procedure
Quote
function getTplEditor():string;
begin
result:=or_([
  if_(fileExists(tplEditor),nonEmptyConcat('"', tplEditor, '"'),''),
//  nonEmptyConcat('"', tplEditor, '"'),
  loadregistry('SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad++.exe', '', HKEY_LOCAL_MACHINE),
  'notepad.exe'
])
end;

This other version obliges to correct therecorded but not found editor.

Quote
function getTplEditor():string;
begin
  if (tplEditor>'') and not fileExists(tplEditor) then
  begin
  msgdlg('TPL Editor not found, select another one or correct the path of '+CRLF+tpleditor, MB_ICONWARNING,'EDITOR NOT FOUND');
  mainfrm.ChangeEditor1Click(NIL);
  end;  result:=or_([
    nonEmptyConcat('"', tplEditor, '"'),
    loadregistry('SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad++.exe', '', HKEY_LOCAL_MACHINE),
    'notepad.exe'
  ])
end;

My preference goes for this second version, because it facilitates those who have neither notepad ++, nor notepad
 ;)
Title: Re: Testing build #224
Post by: Mars on February 22, 2009, 01:05:34 AM
Quote
you are right. i decided to give up with it, and just make the check once per second.

Having made some small searches, a reffreh all the seconds does not seem necessary, the additions in two macro following ones give satisfaction

Quote
procedure TmainFrm.Changefile1Click(Sender: TObject);
begin
if selectFile(tplFilename, 'Change template file', 'Template file|*.tpl', [ofPathMustExist, ofCreatePrompt]) then
  setNewTplFile(tplFilename);
keepTplUpdated();  //mars
end;
--------------
procedure TmainFrm.Restoredefault1Click(Sender: TObject);
begin
if msgDlg('Continue?', MB_ICONQUESTION+MB_YESNO) = MRNO then exit;
tplFilename:='';
tplLast:=-1;
setStatusBarText('The template has been reset');
keepTplUpdated();  //mars
end;

Rejetto, by pity, say I that for once I am 100 % in the truth ;)
Title: Re: Testing build #224
Post by: rejetto on February 22, 2009, 02:52:03 AM
  if_(fileExists(tplEditor),nonEmptyConcat('"', tplEditor, '"'),'')

i like it, but this version.
i don't think it's worth to warn the user, his attention will be catched anyway when he sees a different editor than the expected one, but the functionality will remain (an editor is running and he can edit).
Title: Re: Testing build #224
Post by: rejetto on February 22, 2009, 02:56:30 AM
Quote
you are right. i decided to give up with it, and just make the check once per second.

Having made some small searches, a reffreh all the seconds does not seem necessary, the additions in two macro following ones give satisfaction

that's exactly what i did at first. my decision came later.
i disliked it: the call must be in so many places, it's against a good design principle, it makes the code harder to maintain.
if you must, you do, but if you can avoid is better.
so i decided that a call every second is not hurting anyone, and i prefer it.
There are many truths, and some are more convenient than others. :)
Title: Re: Testing build #224
Post by: chthonic on February 22, 2009, 04:52:18 PM
just caught up with all the posts on this... and I never had any trouble withe  RAWR template.. of course.. I am still using TOG 3.0 ...... the newer ones don't have the login option


so there might bea specific dif in how HFS handles the code between teh two