rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: rejetto on March 24, 2015, 11:28:38 PM

Title: New version: 2.3e
Post by: rejetto on March 24, 2015, 11:28:38 PM
Please go to:
Menu > updates > check for news/updates

what's new
Small fixes


in details
+ upload: multiple file selection
+ search accounts by typing the first letter
+ smarter speed measure in the log
* using jquery's CDN instead of google's
- delete not working after archive http://www.rejetto.com/forum/bug-reports/2-3d-(292)-delete-after-archive-repeats-the-archive-download-again/
- getUri problem http://www.rejetto.com/forum/programmers-corner/last-beta-sources/msg1059938/#msg1059938
- a big MD5 file can hang http://www.rejetto.com/forum/bug-reports/hfs-hangs-on-access/
Title: Re: New version: 2.3e
Post by: MarkV on March 26, 2015, 11:43:26 AM
Congratz,

it's still going on after all these years. Awesome.
Title: Re: New version: 2.3e
Post by: rejetto on March 29, 2015, 12:01:08 PM
thanks markv, you too are a durable one :D
Title: Re: New version: 2.3e
Post by: SilentPliz on March 30, 2015, 02:35:12 PM
"+ upload: multiple file selection"....

Niiiiiiiiiiiccccccceeeeee !!!!

 ;)
Title: Re: New version: 2.3e
Post by: bigfan on April 12, 2015, 08:55:09 AM
Please go to:
Menu > updates > check for news/updates

what's new
Small fixes


in details
+ upload: multiple file selection
+ search accounts by typing the first letter
+ smarter speed measure in the log
* using jquery's CDN instead of google's
- delete not working after archive http://www.rejetto.com/forum/bug-reports/2-3d-(292)-delete-after-archive-repeats-the-archive-download-again/
- getUri problem http://www.rejetto.com/forum/programmers-corner/last-beta-sources/msg1059938/#msg1059938
- a big MD5 file can hang http://www.rejetto.com/forum/bug-reports/hfs-hangs-on-access/

Thank you rejetto!

2.3e runs great, but sometimes my browser stuck at "waiting for code.jquery.com...", I guess it's because the CDN thing? I'm not sure whether jquery's CDN is reliable as google's, but I didn't have this issue before.  :)
Title: Re: New version: 2.3e
Post by: LeoNeeson on April 13, 2015, 06:06:23 AM
2.3e runs great, but sometimes my browser stuck at "waiting for code.jquery.com...", I guess it's because the CDN thing?
You are right! Frankly speaking, there is no point having "jQuery" hosted somewhere, when we are running a HTTP server.

It would be a good idea that Rejetto include this file in the next HFS release, so that not needed to be connected to internet (for example, when you run it on a local LAN without internet access). What do you think Rejetto?, would that be possible?... Thank you... ;)

(To make it easier for you, looking in the source code, there are references to jQuery, hosted online, in: default.tpl, hfs.tpl and login.tpl)
Title: Re: New version: 2.3e
Post by: SilentPliz on April 13, 2015, 04:36:14 PM
Hi all!

jquery.min.js is already included in the hfs executable ... it is used when jquery is not be found online.

For quick operation (LAN, for example), it can be useful to put the file in the VFS root (hidden).

In this case, change in the template the following line :

<script type="text/javascript" src="//code.jquery.com/jquery-1.4.4.min.js"></script>


by :

<script type="text/javascript" src="/jquery-1.4.4.min.js"></script>


http://code.jquery.com/jquery-1.4.4.min.js   is the link to the file.  ;)
Title: Re: New version: 2.3e
Post by: LeoNeeson on April 14, 2015, 08:40:58 AM
Good to know. I didn't know "jquery.min.js" was included "inside" the HFS executable (I did found that file in the source code, but I thought it was there only as a backup). I was always downloading the file and editing the template. Thanks for the tip.

In that case, it would be great to have an option (in the HFS menu), to use it permanently, in case I always want to use the internal "jquery.min.js" (instead the online one). Something like: "Always use internal jQuery", or "Always use own hosted jQuery", etc. or something similar...
Title: Re: New version: 2.3e
Post by: Mars on April 14, 2015, 01:18:37 PM
as say silentpliz,  jquery is included in hfs resources

it's possible to change the external request inside template to always use jquery.min.js

Quote
   <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
        <script> if (typeof jQuery == "undefined") document.write('<script type="text/javascript" src="/?mode=jquery"></'+'script>'); </script>

replace it  by
Quote

        <script>document.write('<script type="text/javascript" src="/?mode=jquery"></'+'script>'); </script>
Title: Re: New version: 2.3e
Post by: SilentPliz on April 15, 2015, 02:58:37 PM
Thank you rejetto!

2.3e runs great, but sometimes my browser stuck at "waiting for code.jquery.com...", I guess it's because the CDN thing? I'm not sure whether jquery's CDN is reliable as google's, but I didn't have this issue before.  :)

To retrieve the old settings (without CDN):

Right-click on the vfs root (home) > Properties ...> Diff Template tab

Paste this:

[+special:strings]
options.loadFromCDN=0
Title: Re: New version: 2.3e
Post by: rejetto on May 01, 2015, 10:13:01 PM
ok, i didn't think of the timeout problem in case of no-internet.
i will just remove it.
Title: Re: New version: 2.3e
Post by: Fysack on May 08, 2015, 10:34:30 PM
hmm..
Title: Re: New version: 2.3e
Post by: SilentPliz on May 26, 2015, 01:34:52 PM
Hi !  :)

Bug or not bug? (Or syntax changes that would have escaped me.)
 
Since a long time I use groups like this in my templates:

[special:alias]
#administration#=member of|#administration#

[special:import]
{.new account|#administration#|enabled=1|is group=1|notes={.convert|utf-8|ansi|FRENCH TEXT INFORMATIVE NOTE.}.}


With these releases (#292, #293 ), notes no longer appear in Option > Account > Note
----------------------------------------------------------------------

This works normally :

{.new account|#administration#|enabled=1|is group=1|notes=ENGLISH TEXT INFORMATIVE NOTE.}

The problem seems to come from this code:

scriptlib.pas

    if name = 'force ansi' then
      if satisfied(md.tpl) and md.tpl.utf8 then
        result:=noMacrosAllowed(UTF8toAnsi(p))
      else
        result:=p;


Title: Re: New version: 2.3e
Post by: rejetto on May 29, 2015, 08:14:09 PM
i tried running the supposedly-not-working code in #293 (through debug > run script) and it worked, i mean: the text was showing in account>note
Title: Re: New version: 2.3e
Post by: SilentPliz on May 31, 2015, 11:51:11 AM
Strange ... it stopped working on this template for example.
Title: Re: New version: 2.3e
Post by: Mars on June 01, 2015, 04:43:09 PM
Salut à toi Silentpliz

I watched your template, the problem would it not the use accented characters?

has renamed an item:={.force ansi|a renommé un élément :.}
has created this folder:={.force ansi|a créé ce dossier :.}
Moving item(s) to={.force ansi|Élément(s) déplacé(s) vers.}

Title: Re: New version: 2.3e
Post by: SilentPliz on June 03, 2015, 01:38:25 PM
Hi Mars! ;)

Non, ce n'est pas ça... jusqu'à présent cela marchait parfaitement; maintenant les notes ne sont plus visibles quand on utilise convert|...

No, that's not it ... until now it worked fine; Now the notes are no longer visible when using convert| ..
Title: Re: New version: 2.3e
Post by: rejetto on June 11, 2015, 09:40:27 AM
the noMacrosAllowed must stay, as there is a security problem without it.
Anyway, why are you converting to ansi if your .tpl file is already ansi?
If you remove {.convert.} it works
You should pay attention at the encoding of your file.
I try to use utf-8 when possible.
Title: Re: New version: 2.3e
Post by: Fysack on October 01, 2016, 06:46:13 PM
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

.. i cant say for sure i saw this post im my last reply wisit link.

So are we doing likes now?

..and how do you do it  ;D ;D ;D